Setting breaks in tabular forms
Has anyone had any luck with setting breaks in tabular forms. It seems so straight forward, yet it does not work for me.
I have a report with the first column called tail_number followed by many other fields.
I set the break formatting to
Breaks = First Column
Display the text on report breaks... = Total: #SUM_COLUMN_HEADER#
For Repeat Heading Breaks: <b>Details for Tail: #COLUMN_VALUE#<b/>
This all came straight from the book Pro Oracle Application Express.
Any ideas?
Sandra
Hi Sandra,
I created a report against 'select tailnumber, serialnumber, itemnumber from aircraftitems'
I am showing all columns and have a sum on itemnumber.
Using theme Red and region template Reports Region (maybe some templates are temperamental on this)
In Break Formatting...
Display this text when printing report sums = null
Breaks = First Column
Display this text on report breaks...= Total: #SUM_COLUMN_HEADER#
When displaying a break row...= null
When displaying a break column...=null
When displaying a break row...= null
Identify how you would like your breaks = Repeat Headings on Break
For repeat headings breaks use...= Details for Tail: #COLUMN_VALUE#
And this worked as expected for the break and summary row.
Break Test
Details for Tail: N148FJ
AIRCRAFTSERIALNUMBER ITEMNUMBER
074 9
074 5
074 2
074 3
074 4
074 5
Total: TAILNUMBER 28
Similar Messages
-
How to set a default tabular form value?
I am trying to set a default value for a tabular form.
In Tabular Form Element:
========================
Display as: Date Picker
Formet: Date Picker (DD-MON-RR)
Default Type: Item (application or page item name)
Default P2_DATE
My item P2_DATE is set as:
==========================
Date Picker (DD-MON-RR)
However when I try to add a row with a default date I get this error:
report error:
ORA-01790: expression must have same datatype as corresponding expression
Any ideas?
Regards,
Pawel.Sorry for spamming but found a solution:
which was to change the type into PL/SQL Expression like so:
to_date(:P301_PROJECT_XFR_DATE,'DD/MM/YYYY')
This is the format I used in P2_DATE...
Regards. -
How to set maxWidth in tabular form Text Field
Text Fields do not have maxWidth property in tabular forms. Is there any way to set maxWidth using the Element Attributes field? Or at least create a Validation process to let the user know why an error appears if he/she enters more than the allowed characters in a text field.
Thanks
Francisco.>>
This information should appear in the user'smanual.
Francisco.There should be a working MAXLENGTH attribute that
defaults to the correct length based on the data
dictionary.Hi,
been trawling through the forums for the same problem, found this solution which works a treat (thanks! ). But agree that the software should actually allow you to define this anyway, rather than bodge, fool, amend, bridge or circumnagivate (sp?) the software. -
apex 4.2
I trigger javascript on a page with a tabular form.
after the javascript fires the page reloads.
I tired setting a dynamic action on page load that
set focus
jquery selector
[name=f02]:last
which should set focus to the f02 field of the last record in the tabular form..
but it doesnt work..
any other ideas
I just want the focus to go to the bottom of the pagenevermind, found a way that works..
in javascript
$('input.addfocus:last').focus();in column element attribute: class="addfocus" -
Set value in tabular form field with dynamic action
Hi Guys,
I have a dummy field in a tabular form which I am trying to use to populate another field in the tabular form when it is changed.
In the tabular form I have an ITEM_ID field. Each item_id has an ITEM_NAME which is the dummy field as it is not a field in the database table.
When the user enters an item name, I would like something like a dynamic action to fire, populating the ITEM_ID.
e.g User enters part no ABC into the dummy field. When they tab out, I want the value to the item_id field on the tabular form row to be populated based on a SQL query in a similar fashion to how it can be done with dynamic actions on text items on a form.
I am using APEX v4.0.0
Thanks in advance
ChrisHello Chris,
Why can't you use Select List Item on tabular form, which will display all item_names and return item_ids?
If the list is huge and you need users to type & search, then you can use Pop-up LOV item.
Regards,
Hari -
Not null validaton in tabular form --Apex3.2
Hi,
i am working with apex_3.2.
i am working on tabular form. I want to set validation on tabular form column , Column value cannot be null.How i can do this?
Thanks & Regards
Vedant.Vedant wrote:
Hi,
Thanks it is working. i Need some more help regarding this. I have set the validation on add row button. If i keep the particular field empty on which i have set the validation , and click on add row button, it clear to the complete record. value should not be clear when click on the add row button it just show the massage, Field (Active_FLG) )cannot be empty.
Thanks & Regards
VedantI am not clear; when do you trigger the validation? On submit? If yes, then it will not retain your session state values. What is the relationship between the ADD_ROW button and the validation?
FYI, if you wish to retain session state values in the tabular form, you should be writing manual tabular form using collections. You will get good amount of information on manual tabular forms and collections in this forum and outside(google).
BTW, if your question is answered, do not forget to mark the appropriate post as correct. It will help all of us in the forum. -
Apex 3.2 Tabular form - dynamic selection based on prev selection
Hi guys,
I am using apex 3.2. I am having difficulty in setting up a tabular form which provides an option to record information in other columns based on a value selected in the drop down.Here is an example
I have a table product. All the products are added using a tabular form by selecting type from a drop down list.
This allows the user to add multiple products without having to press save each time.
e.g.
product | type
monopoly | game
vase | home
coffee | food
cards | game
Depending on the product type, I want the user to be able to multi-select other options using checkboxes based on the option selected.
So for example if they add a product of type food, it should give additional options like beverage, cereal etc. If they select game, then they should get other options like for age_groups 10-12; 12-16; 18 and over;
Is it posisble to do this on a tabular form in apex 3.2?
If yes, please can someone help.
Thanks
SamClosed
-
Help needed in row selection in Tabular form across pages
Hi,
I have a tabular form report similar to http://htmldb.oracle.com/pls/otn/f?p=31517:95. I want to select some rows from first page and then use the pagination to get to the next page, select some more rows and hit the submit button for processing. The rows selected in the last page alone are picked up for processing, and the ones selected in the earlier pages are lost. I see the same behaviour in Denes' example as well. I picked a row in the first page and a row in the next page, and then click "Pick Records", i see only the record i picked on the second page.
I did play around with "partial page refresh" setting for the tabular form region, but that does not help.
Is there a way to select across pages in a tabular form?
thanks,
Rams
Edited by: rams1234 on Jan 22, 2009 10:19 AMOkay. I could make this work, but this seems to be a roundabout way for me. In my case I dont have any database related query to get the values, hence the Application level process may not be needed.
When I select the checkbox, i get the value. I am hoping that I should be able to send the value to a javascript function and update the filed value in the function itself. Please see the function below..
function setFileID(pThis) {
var chkvals=pThis.value;
var fldValue = new $x('f_FILELIST').value ;
if (fldValue != 0)
{ $x('f_FILELIST').value= fldValue+'-'+chkvals;}
else
{ $x('f_FILELIST').value = chkvals ;}
This function works fine in making up the list. The issue is, when an already selected row is unselected, the value of the checkbox gets added one more time :) If I detect the checkbox status and subtract the corresponding value, this will be perfect..
Thanks for the link anyway. I am marking this question answered.
regards,
Rams.
Edited by: rams1234 on Jan 22, 2009 1:18 PM -
Is there an example of populating a tabular form by selecting node in tree
Hi, I am using apex 4.1. I have created a tree region, and would like to click on a child node and have it populate a tabular form. My tree attribute has the following query:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"NODE_LABEL" as title,
null as icon,
"SEQ_NBR" as value,
null as tooltip,
'f?p=&APP_ID.:900:'||:APP_SESSION||'::::P900_SELECTED_NODE:'||"SPECIES_QC_ID" as link
from "#OWNER#"."SPECIES_TREE"
where partner_id = :G_ISSUING_AGENCY and nvl("SPECIES_TREE"."DISPLAY_FLAG",'Y') <> 'N'
start with "NODE_PARENT" is null
connect by prior "SEQ_NBR" = "PID"
order siblings by "NODE_PARENT"
I am not certain how to set up the tabular form....are there any examples out there? thanks! KarenThanks Tony,
The application I have is a means of commercial seafood dealers recording what species they have purchased/landed. The page is designed with a tree listing all of the species and their sizes and then the tabular report of landings. The current application uses a collection to display the landings....I was trying to get rid of the collection and populate the table directly.
thanks for getting back to me. Sounds like I will need to keep the collection....just looking for examples. -
Issue with setting a default value to a Tabular Form field
Hi -
I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in the default value attribute of the field with a substitution string?
Thank you in advance for help!Share with us what worked in previous versions.
Jeff -
Dynamic Action on tabular form: to auto set value for all changes rows
Hi All:
I am using APEX4.2.3 and I am not very familar with JQUERY or Javascript.
I am having a tabular form to support Update and Delete action. The tabular form has 4 columns:
Column A: ID (Number) : Read-only column
column B: Name (Varchar2) : Editable
Column C: Age (Number) : Editable
Column D: ChangeFlag (Varchar2) : Read-only column ==> however, I want this column been automatically upldated by my APEX application
Here is the requirement: First user update Column B, or C or both for # of rows; then user click "Save Change" button. For ALL updated rows, I need to automatically update Column D with below logic:
For a given row,
IF Column D IS NULL THEN
set value = 'M' -- M means modified
ELSE --- column D has a value already
IF last character of Column D is 'M', THEN
don't do anything;
ELSE
set value of D = existing value + 'M' (here + means concatenate
END IF;
END IF;
I thought this can be done by creating dynamic action on tabular form ... I have researched this on this forum and can't find a good match example ..
I know I can implement this using a DB trigger; however, I want to learn if this can be achived via Dynamic Action.
Thanks!
KevinHi Expert:
Anyone can offer any direction or help on this?
Thanks!
Kevin -
Setting default value to columns on tabular form is not working.
Hi,
I created a tabular form and i want to set some default values to columns based on the values in page items.
so i set the page item to column value in tabular form attributes by selecting the Default type as PLSQL Expression & Function DEFAULT value &P24_ISSUE_ID. it worked fine but
in the similar way i tried for the another column by selecting the default type as pl/sql expression & function and default value &P24_CASE_NAME.
but it throwing an error for this like failed to parse SQL query: ORA-00904: "C254DB": invalid identifier
i don't understand where i gone wrong even i checked for the data types of the columns, everything is fine.
so please help me out of this problem.Tulasi 1243 wrote:
for the first column
i selected
DEFAULT TYPE as PL/SQL Expression & FUNCTION
Default as *&P24_ISSUE_ID.* This is a number data type column
2nd column
Default Type as PL/SQL Expression & Function
Default as *&P24_CASE_NAME.* This is Varchar2 data type column.The appropriate options for a default value from a page item are Item (application or page item name) for Default Type and the item name ( P24_ISSUE_ID, P24_CASE_NAME etc) for Default.
*&P24_ISSUE_ID.* is not a "PL/SQL Expression or Function".
but it throwing an error for this like failed to parse SQL query: ORA-00904: "C254DB": invalid identifierWhat you are doing results in the APEX engine substituting the P24_CASE_NAME value "C254DB" into the default value and then trying to evaluate this string as a piece of PL/SQL. Outside of a block in which it is defined as a variable, constant or function "C254DB" is not a valid PL/SQL expression. -
Tabular form - how to set a field to a constant?
I'm using a tabular form to update a table - and this works. Then I remembered that I need to also update the field that keeps track of who made the change.
Setting this field via the SELECT (e.g. Select 'userX' as editor from ...) for the tabular form fails due to a db concurrency error (MRU 20001) upon submission.
Attempting to override the current value in [Column Attributes] of the field in the [Elements Attibute] setting - [value="userX"] simply adds this as the second value argument of the input element (of the html source).
Suggestions?Similiar scenario - I have a flag in this table set false that a user can set true when they feel they have satisfactorily reviewed the record.
Since it's in a tabular form it can be changed along w/ other records, but they may not feel the review is complete (so they effectively want the flag to remain false).
I'd like to be able to read records in but set/default the value to reviewed (as a convenience) but due to the problems noted above, this doesn't seem possible. -
Set value for user input in tabular form
Hello all
I have a tabular form wherein I want to set the length of values a user an enter into certain columns.
For an example, column1 should only allow users to input a 5 digit number and no more. Column2 should only allow 6 digits and so on.
Is this something that can be done? and if so, how?
Thank you for any help -TreyHi Trey,
APEX doesn't support that out of the box, it always creates a HTML input item with a maxlength=2000. But have a look at the ApexLib Framework which supports a length property for tabular from fields. See http://www.inside-oracle-apex.com/2007/02/restrict-input-length-for-tabular-form.html and http://apex.oracle.com/pls/otn/f?p=44394:54 for details.
Patrick
My APEX Blog: http://www.inside-oracle-apex.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New! -
Setting the cell width in a Tabular Form (SQL Query (updateable report) )
version 3.2.1
I have a Tabular Form (SQL Query (updateable report) ) and I have a column that is a VARCHAR2(4000) that when displayed extends the cell to the full length (which of course makes sense).
How can I set the width of this cell to something like 30 or 50 and wrap the contents?
Thanks,
JoeScott,
Thank you for replying.
Your suggestion kinda worked. I say kinda because when the report is first displayed the cell is the full width and appears to ignore the width setting. There is a Select List on the report to restrict some of the data that is displayed. When a selection is made from this Select List, it appears that the cell width is then adjusted to what was set, but not for every selection from this Select List.
I made the width entry in Tabular Form Element - Element Width
Any idea why the width setting is ignored?
Thanks,
Joe
Maybe you are looking for
-
Is it possible to integrate web dynpro java with xPD screens?
We have a requirement to integrate the xPD screens with Adobe using web dynpro java. The UI has to be completely Adobe and the xPD transactions would be triggered through Adobe. Is it possible?? Please let me know how if anyone worked on this. We are
-
I cannot open the annotations
-
Photoshop didn't work correctly
I got photoshop from the cloud but then it started to do soem funny things. When every i would use some tools it would black out and not aloow my to see my work or what i was doing. I uninstalled it, but now i can't reinstall it. I need this to work
-
What Virus Protection to buy?
I was told by my local mac shop not to buy antivirus, said it was a waste of money and it would slow my machine down. i'm using clamx. is this enought
-
SolMan lang EN vs BC Sets lang PT
Hello colleages, I am working on a landscape where the SolMan machine installation was made in language EN. However, for the template projects I will need to create BC Sets, in the source lanscape, in language PT. Can this be a problem? I read somewh