oracle forms 10g multiple records data block showing records on demand - oracleforms

I want to create a sale order form. For which the form should allow insertion of line items. I dont want to restrict the number of line items. I decided to display 4 empty records in which user is allowed to type line items. If he wants to type the 5th line item then i have to make the 5th empty row visible to the user. using a scroll bar he should be able to see the first record also.
How to do this in oracle forms 10g.
Any help will be appreciated.

Set the Number of Records Displayed property of the line item block to 4 and the Show Scrollbar property to Yes.

add text item based on your table (in the proprety
database-yes ,and write ehich table the item base)
on the property of the block do the scrollbar property to yes.
add simple button to the forms and wrie commit_form.
try it

Related

how do I hide parent row when child rows expanded?

I have a data set that consists of the gross dollar amount on row 1, 1-n number of rows of various details then a last row that shows the gross dollars minus the various row amounts. I am trying to replicate some expand/collapse functionality used in an internal ASP report page where the initial row is the NET value (collapsed). When expanded, the gross, detail, and net rows show up in a "expand up" action.
I have been able to so far get the parent row to show the NET values when collapsed, but I am trying to find a way to hide the contents of the parent row once expanded so that the NET values are not displayed twice.
Is there some kind of "is hidden" property I can use in an expression to hide the data in the cells? not sure how else I can accomplish this. Any help would be appreciated.
thanks!
The only thing I can think of that might help is inscope(). You can use something along the lines of:
iif(inscope("ChildGroup") = TRUE ...
This will test to see if the current item is within the scope of the grouping, which means that you can test if the current group is expanded or collapsed.
See https://technet.microsoft.com/en-us/library/ms156490(v=sql.100).aspx for more information on inscope().
so after much research it appears this cannot be done thanks to SSRS producing a static report once rendered. The inscope function allowed me to set the initial state of the row, but does not give functionality to update report properties after rendering occurs. my only options would be then to create a second parent group (grand parent?) or insert an action that calls the report over again passing in a hidden parameter.
thank you for your help!
I believe you can do this, but you'll need to make some adjustments.
A. You can't put your gross dollar amount in the row you'll be using to expand/collapse.
B. Don't use group visibility to expand/collapse. You'll need to use row visibility. (This can get tricky and I don't recommend it if you have nested groups. It becomes unmanageable.)
Row 1: Toggle
Row 2: Gross Dollar Amount, default visible
Row 3-n: Various row Dollar Amounts, default hidden;
Set rows 2-n to toggle based on Row 1.
When you the report initially renders, Row 2 will be visible, Row 3n are not. When you toggle, Row 2 will hide, row 3n will be visible.

SSRS grouping columns to toggle visibility

I have an SSRS report with several columns - 3 of the columns had visibility set such that it could be toggled by a particular cell. The report was a single tablix with headings at the top and row groups set up below those headings. My toggle item was in the headings - i.e. outside any row groups. There are no column groups - I just want to be able to hide a few columns on demand. It worked fine but...
When a new requirement arose to throw a page within one of the groups, I had to move the headings such that they were within the highest level group. Since then I continue to get the error message:
"Toggle items must be text boxes that share the same scope as the hidden item or are in a scope that contains the hidden item, and cannot be contained within the current report item unless current grouping scope has a parent"
I have tried removing the toggle and starting again from scratch but I continue to get the message. I have also tried viewing the XML in case there is any stray toggle logic hanging around but it appears not. Any suggestions as to how I might resolve this would be greatly appreciated.
The best I could come up with is to add a new row at the very top of the tablix outside any groups and immediately above the headings (themselves within a group) and put the toggle textbox in that row. That seemed to do the trick (for Excel output anyway).

Page Break on Change of Column Value

I have a simple customer history report that has the following elements:
Header that contains the customer name and customer ID pulled from 1 of 2 datasets
Rectangle that contains a list which provides some details order items like date ordered date shipped invoice number and such.
Sub report placed within the list area that contains table with order details.
This report functions fine if I call one customer at a time. I need to print multiple customers at a time so I have multiple values for my parameter. When I try to call more then one customer I get the following results:
The header prints with the first customer data and shows it on all pages. The list renders as designed but pulls all customers data so it appears there is just one customer.
What I need is a page break for each customer. When I new page starts I need the customer name to be shown on all of the pages that group will print. Placing the name at the top of the first page only does not work for my situation. I have tried placing pages breaks after the list. I have placed page breaks after the containing rectangle and I have created another rectangle and nested the original rectangle within this new parent with a page break on the new parent but none of these will work. I have also tried placing the customer info in the header but all I get is the information from the first record in the dataset.
This seems like a simple report but I just cannot seem to get the page break to fire when the customer ID changes.
In the properties of your List object, go to PageBreak, and set BreakLocation to "End".
Make sure Disabled is set to "False".
I was able to solve my problem by using the information at these 2 sites
Solved the problem of getting the page to break after the list
This allowed me to have a page break for each customer. It placed another row in the tablix that contained the group on field, which in my case was the name. I had to make a modification to hide this new row so I changed it's width to a very small space and set it property to hidden. I then placed a text box above my list to show the name there.
Solved name at top of every page in the group

Set max lines displayed in WebI BO report

How would I set a maximum lines to display in a BO 4 report? On each page, I'd like to show 20 account numbers in column 1 with item counts in the next columns. There are some good discussions on limiting the rows retrieved in a query (e.g., Limit number of result or rows returned in BO using WebI). Some suggestions include using sections with RowIndex()/20 to limit the lines to 20, so I tried adding a variable =Floor(RowIndex()/20). However, the lines in my report contain aggregated variables, and the row index counts all records retrieved. Thoughts?
One option:
Add a column on the far left of the block. Use the following formula:
=Floor(RunningCount([Account Number])/10)
(assuming, of course, that your dimension is named [Account Number])
Create a break on this column. (Report Element -> Table Layout -> Break -> Add Break). Go back to the same menu and click Manage Breaks. Click the "Start on a new page" checkbox.
This will create a block with a maximum of 20 rows per page. Unfortunately, there's no direct way to hide a column in WebI, so you'd be stuck with this ugly column. What you can do, however, is remove all borders, change the font to white-on-white, and reduce its width as much as possible.

Access 2007 - Display text fields in drop down list while bundling to an ID

in Access 2007 how can I display text fields in drop down list while bundling to an ID? not while selecting (we can do this by plying with the width field. but what I need after selecting?
Do we create a hidden field that stores the ID?
Your description of how a combo box works is correct. Keep in mind that while you're setting the first column and display length to zero, that means the combo box will then search by the second text column. The combo box will display by that second text column after you select a value. In fact in all cases for typing in a value, even partial matching as you type, a simple select of a value will ALL BE done by the displayed text column but in ALL CASES it will save the actual ID (the first column) into the table that the form is bound to.
So no additional coding or anything if need be done on your part to achieve the above goal and in fact this is pretty much the default as to how combo boxes work inside of ms access.
What makes the combo box is somewhat unique inside of Access is you can have more then 2 columns. And, in the combo box settins you can choose what column is to be selected and saved into the table. And, the combo box has both before update (with a cancel), and after update and also a Not in List event that fires in the case of a user tyring to type in a value that not in the list.
So, the Access combo box is quite flexible. The source for the list or members displayed in the combo box can be based on a table, on a query, or you can even type in a value list that is saved inside of the property sheet. And, another option is to fill the combo box is by using call backs (so, again quite a few ways to fill out the list of memebers for selectiogn).
So, keep in mind there is two aspects to the combo box. There's a so called row data source or how you feed the members that will display in the combo box. Then there is the underlying column (field) that you bind that control to when you select a value. That is in the case when the combo box is bound.
As mentioned, the bound column setting is another property in terms of inside the combo box, and you don't need to write any additional code to achieve that above goal in your question.
Albert Thank you for this excellent explanation.
I found out that the bound column has no effect. Acces take the first visible field and bound to it regardless of what you have in the bound column property.
All good thanks
Omar ( hostitwise.com)