How to submit a hidden in tabular form column?
I have a tabular layout with dynamic action of line add fills a column with a sequence. I don't want to show this column to the users.
I inspect the HTML when I add a new line and it looks like expected:
<input id="f04_0004" class="tagid" type="hidden" value="870 " name="f04">
In this case 870 value from the sequence, which is good.
But when I send the form, I get:
- ORA-20001: find the value is not a valid number, please check the number format. (Rank 4)
The only way the form sent successfully, it is if I change the hidden column to a text field which is hideous, considering that this field should not even be displayed much less displayed as a text field.
Is there a way to get around this? How can I submit a column hidden on the server?
Thank you
John
John K. says:
I have a tabular layout with dynamic action of line add fills a column with a sequence. I don't want to show this column to the users.
I inspect the HTML when I add a new line and it looks like expected:
In this case 870 value from the sequence, which is good.
But when I send the form, I get:
- ORA-20001: find the value is not a valid number, please check the number format. (Rank 4)
The only way the form sent successfully, it is if I change the hidden column to a text field which is hideous, considering that this field should not even be displayed much less displayed as a text field.
Is there a way to get around this? How can I submit a column hidden on the server?
There is a kind of white space character that appears in the value of the column after 870. Is this "good"? What is it and why is that? We can provide no answer without knowing exactly how this value (and the rest of the line) are generated at the course to see the page and processed on presentation of the page.
Tags: Database
Similar Questions
-
How to remove tabular form column position of underscore
Hi guys,.
I use APEX 4.1, I want to delete tabular form underscore column heading, you could you please guide me how to do this?
See you soon,.
San
San wrote:
Hey sorry, I couldn't find the #TEMPLATE_CSS # in my page template.
I use two Tabs - model level of right sidebar (optional / based on a table)
I was using 4.2. 4.1 Add
After
in the page header.
-
How to show all lines of tabular form on a single Page?
Dear Apex Experts,
Is there a feature in the tabular Presentation , or the workaround even to show all lines of tabular form on a single page?
as in the interactive report where 'ALL' option when selected displays all lines.
Thank you in advance for any help you provide
Best regardscreate an item
assign a number 1000000 or more and on the area of research reports a number of lines returned to the point and set with the name of the element -
How to get current rownumber to tabular form
I created a tabular form with fields "courseid", "coursename", "courseduration", "click here."
The last column is a link to the next page. I have a textbox named p101_cid.
'Click here' column link ' for the participants click here.»
Assume that the clicks of the user to the last cell of a line (i.e. "click here")
1 p101_cid should get the value of the first cell i.e. courseid from current line. ???
2. the next page should appear.
I am able to achieve the second but not first.
I tried to write onclick jscript in last column, but could not succeed.
Published by: BEN on April 24, 2009 15:32In the column binding options, you can select up to 3 items to set session value when the user clicks on the link in the column.
Put p101_cid there as an element and select column 1 as value.Kind regards
Przemek -
Protection against XSS attacks with tabular forms
Hi all
I read in various items of security Apex if we create a box on a table with a report, we should set columns of type report "" display text (escape special characters, does not save the State) "" instead of "Standard report column" in order to avoid XSS attacks.
How can I avoid this for tabular forms? Editable for my sub columns form table are defined as "text field. I tried to save the form after you enter a Java script to one of the field in the form, and it worked fine. Apex escaped special characters. But I want to confirm with the experts who are supposed to make something different? Apex automatically escapes the special characters for tabular forms?
Please advice.
Thank you
RN
Hello
"Text field" or any other type of column in table form where you can enter data is not affected by XSS, because they always escape the value when it is displayed. Only 'column Standard report' is not secure if you do not have total control of the displayed value. But sometimes, it's intentionally use this type if you want to display values that contain HTML tags. But always be aware of potential security issue if everyone is allowed to enter the HTML code.
Concerning
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
-
Default values &; javascript in tabular form manual
Hello!
I have a table that shows a new line in the upper part of the report... my sql statement is in the form of:
I used to have default values defined in the report attributes but those lost when I started using the approach above.SELECT NULL EMPNO, NULL ENAME, NULL MGR, NULL SAL, NULL COMM, 0 SORTITEM, 'N' STATUS, '' MD5_VALUE FROM DUAL UNION ALL SELECT...etc
How to reference the value of an element on the page, a default value for the line empty? For example, if the element: P60_EMPNO contains the employee ID for work, I want the EMPNO field in the empty line is pre populated with this value.
Also, I used to have a javascript function which ran "onkeypress" for a field in the new row, but now I don't know how to implement with the new tabular form.
Thank you!
Tammy
(currently using APEX 3.1.2)Hi Tammy!
You can replace all NULL values in the SQL statement by your default values. The only condition would be that you should have at least one field that is NULL so that the code in the process knows that the user has not completed registration. In my example, I check:
IF vSTATUS = 'N' AND vENAME IS NOT NULL THEN
Yes, as long as the status is ' only and the user has not completed the ENAME field, the record will not be created - if, however, I put a default to ENAME, IF this test would be satisfied and, therefore, a new record would be created each time the page has been sent.
What does javascript code? The APEX_ITEM. Text() function allows the inclusion of additional attributes for the INPUT tag that will be generated. See: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_item.htm#CHDCDHJI
In my example, I have:
APEX_ITEM.TEXT(5, SAL, 7, 7, 'style="text-align:right;"') "Salary"
Which adds the attribute "style" to the issue of the STARTING salary. You could do something like that to add in "onkeypress =" javascript:yourfunction (...); » "
Andy
-
How to refer to the primary key column of newly inserted rows of tabular form
Hello
I use APEX 4.2.0.00.27 with Oracle DB 11.2.0.3.0.
I work with a tabular presentation wizard-created for insert and update a table using the integrated SRM process (sequence 10). I'm trying to use a process of anonymous block of PL/SQL (sequence 30) to make another manipulation of table after the records were inserted or updated. The manual process is associated with my tabular form and I use the variables of name of column binding in my program block.
My (rsn_test) table has 3 columns: test_id (number), test_nbr (number), test_id2 (number). Test_id column is identified as the primary key and the type of the source already exists a sequence rsn_test_seq. Column test_id2 gets its default value 0 to a hidden page element.
I would use my manual process for updating the value of the test_id2 column. If it's 0 then I want to put the value of the column test_id. If it is any other value, then it must remain at this value. My logic works very well for an existing line, but I'm running into a problem with the newly added lines. The new lines get inserted, but the test_id2 column remains the default value 0. I can tell the debugger that the SRM process is triggered first and inserts the line, then my manual dealing with fires. The problem seems to be that the connection variable: TEST_ID for the primary key column remains NULL after insertion. I don't know how to get the value of the column test_id of my newly created line to use in my PL/SQL block to my update.
Process of PL/SQL:
DECLARE BEGIN :P7_SHOW := NULL; :P7_SHOW := NVL(:TEST_ID2,555) || ' and ' || NVL(:TEST_ID,787) || ' and ' || NVL(:TEST_NBR,9999); IF :TEST_ID2 = 0 AND :TEST_ID IS NOT NULL THEN UPDATE rsn_test SET test_id2 = :TEST_ID WHERE test_id = :TEST_ID; ELSE :TEST_ID2 := :TEST_ID2; END IF; END;
Excerpt from the debugger:
0.01625 0.00010 Processes - point: ON_SUBMIT_BEFORE_COMPUTATION 0.01635 0.00008 Branch point: Before Computation 0.01643 0.00003 Process point: AFTER_SUBMIT 0.01646 0.00022 Tabs: Perform Branching for Tab Requests 0.01668 0.00008 Branch point: Before Validation 0.01676 0.00024 Validations: 0.01700 0.00135 Perform basic and predefined validations: 0.01835 0.00020 Perform custom validations: 0.01855 0.00049 ...Validation "TEST_NBR must be numeric" - Type: ITEM_IS_NUMERIC 0.01904 0.00007 ......Skip for row 1 because row hasn't changed 0.01911 0.00016 ......Skip for row 2 because row hasn't changed 0.01927 0.00012 ...Validation "TEST_ID2 must be numeric" - Type: ITEM_IS_NUMERIC 0.01939 0.00007 ......Skip for row 1 because row hasn't changed 0.01945 0.00018 ......Skip for row 2 because row hasn't changed 0.01964 0.00005 Branch point: Before Processing 0.01968 0.00004 Processes - point: AFTER_SUBMIT 0.01972 0.00588 ...Process "ApplyMRU" - Type: MULTI_ROW_UPDATE 0.02560 0.00154 ...Execute Statement: declare function x return varchar2 is begin begin for c1 in ( select "RSN_TEST_SEQ".nextval pk from sys.dual ) loop return c1.pk; end loop; end; return null; end; begin wwv_flow.g_value := x; end; 0.02714 0.00140 ......Row 3: insert into "APPPCSRSN"."RSN_TEST" ( "TEST_ID", "TEST_NBR", "TEST_ID2") values ( :b1, :b2, :b3) 0.02854 0.00011 ...Process "ApplyMRD" - Type: MULTI_ROW_DELETE 0.02865 0.00004 ......Skip because condition or authorization evaluates to FALSE 0.02869 0.00015 ...Process "Process Submit" - Type: PLSQL 0.02884 0.00007 ......Skip for row 1 because row hasn't changed 0.02891 0.00012 ......Skip for row 2 because row hasn't changed 0.02903 0.00012 ......Process row 3 0.02915 0.00429 ...Execute Statement: begin DECLARE BEGIN :P7_SHOW := NULL; :P7_SHOW := NVL(:TEST_ID2,555) || ' and ' || NVL(:TEST_ID,787) || ' and ' || NVL(:TEST_NBR,9999); IF :TEST_ID2 = 0 AND :TEST_ID IS NOT NULL THEN UPDATE rsn_test SET test_id2 = :TEST_NBR WHERE test_id = :TEST_ID; ELSE :TEST_ID2 := :TEST_ID2; END IF; END; end; 0.03344 0.00013 ...Session State: Saved Item "P7_SHOW" New Value="0 and 787 and 1300" 0.03356 0.00004 Branch point: After Processing 0.03360 0.00048 ...Evaluating Branch: "AFTER_PROCESSING" Type: REDIRECT_URL Button: (No Button Pressed) Condition: (Unconditional) 0.03407 0.00013 Redirecting to f?p=290:7:8717971109610:::::&success_msg=0%20row(s)%20updated%2C%201%20row(s)%20inserted.Success%2FEBD244168556408CBA714E3974918C09%2F 0.03420 0.00012 Stop APEX Engine detected 0.03432 0.00007 Stop APEX Engine detected 0.03439 - Final commit
Any suggestions?
I have run tests on
https://apex.Oracle.com/pls/apex/f?p=83488:1 demo/demo
to see your problem.
I have 2 solution for your problem.
I add trial NOT tabular just usual block of PL/SQLBEGIN I'm IN (SELECT TEST_ID FROM RSN_TEST WHERE TEST_ID2 = 0) LOOP UPDATE RSN_TEST SET test_id2 = TEST_ID WHERE test_id = i.TEST_ID; END LOOP; END; and works very well, you can see in the sample.
The other solution is to show new generated TEST_ID
Adding a sequence as a default value for a column in a table field
And to execute your procedure.
I get how is with the good luck of time.
By
-
line tabular form selector ignores the Tab key, how?
Hello world
We have Oracle 11.2 and Apex 4.2.6.
Tabular form a selector of line, trying to prevent cleat key home, for item in normal form, I would use just something like tabindex =-1, but I don't know how I can add this tab index for the line selector, whose property is 'Download' BLOB. If I inspect element, it is a checkbox:
< input type = "checkbox" name = "f01" value = "1" class = 'row selector' id = 'f01_0001' entered AutoComplete = "off" >
How can I add tabindex = "-1" inside this entry line selector type?
Any suggestions are greatly appreciated.
$(':checkbox').attr ("tabindex", - 1).
However, it would be preferable to add a static region id to your region and your prefix selector
$('#p1_my_region_:checkbox').attr ("tabindex", - 1).
-
Remaining in a view row after submit of tabular form
Hello
Note that I use APEX 4.1.1
The basis of my question, is this article: http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0:ARTICLE:1983900346334455
In short, the user starts an interactive report and can be drilled in each record of this report (view related to a single row view).
But rather than create a classic report the information detailed below, I created a tabular Presentation (manually).
The problem I have is that when a user sends changes to the data in tabular form (through a SUBMIT button), the user is returned to the interactive report; Ideally, they would remain in sight of the line and other individual records can be accessed.
Is there a way to do this?
Thank you
-Jim
Published by: user1977315 on August 1, 2012 16:54Hi Jim,.
Please see this
http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2935800346153861Kind regards
Jari-----
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
How to customize the width of fields in tabular form?
Hi all
I have the small demo application created on demand 4.1.0.00.23 Express. None of the pages has been created as a table. I want to customize with columns to this page. When I click on edit this page and go to the regions - report, I see a field titled "width of the column. Unfortunately, it seems that everything I put in here is ignored. The width of the column remains constant, regardless of if I put 2 or 200 as column width. How can I customize with columns in tabular form?
Thank you for your time.
Danieldanield_2 wrote:
Blue,Thanks for your suggestion. This page has tabluar shape, and I do not see here of "the column definition. The content area is "Report" and when I click it, I see: "Alias"; 'Link '; 'Change '. 'Title', 'Coumn Width","The column alignment", etc.
I tried to 20px in the "column width" and I got an "Invalid number" error when I ran this page. But if I put 2 or 200 - column is always in the same width.Daniel
Hi Daniel,.
On the page you describe with the Alias, the link, position etc. beside the column in question, there should be a link change (type of pencil icon), to get the column attributes for that particular item, you need to click on this icon. On the resulting page there is (on APEX 3.1 there is) a column formatting section of the column, you will see the scope of the CSS style there.
-
How to stop records in doubles before the Save as tabular form Oracle/Developer
Dear friends
I want to stop duplicate records to save in tabular form of oracle developer.
For example
I have a tabular form and there are three fields.
Vendor_id Item_id Qty.
1 37630 1
1 37630 4
Above in double item_id should not be saved.
Help, please
Concerning
Why not make a unique constraint on the database?
Kind regards
Zlatko
-
Hello
I'm new in APEX. I work with APEX 4.2.
I have a simple form in a page (page no. 3) and I have another region containing a tabular form on the same page.
P3_EMP_ID is a part of the area of simple form.
And there is a column field named 'emp_id' tabular.
If it is possible that
When I click on the button "add row", field in the column named 'emp_id' in a table will be filled with the value that is available in P3_EMP_ID?
Pls someone help me.
Thnks
Magali
Yes, it is possible
simply to > edit in > attribute report > change empno field tabular > attribute in the form >select and set up according to
default type: point (the name of the application or page element)
default: P3_EMP_ID
I hope this helps...
-
How to validate the columns in tabular form date?
Hello
I have two columns in tabular form date
1.start_date 2.End_date so here I need validate the end_date shouldn't be less than column start_date
so any solution for this?Hello
use a validation of type "Function returning a Boolean" and the following code:
IF to_date(:YOUR_END_DATE,'YYYY-MM-DD') < to_date(:YOUR_START_DATE,'YYYY-MM-DD') THEN RETURN FALSE; ELSE RETURN TRUE; END IF;
The date format is of course your choice.
I hope this helps...
Thank you
Sandro -
Tabular form - how to set a field to a constant?
I use a tabular form to update a table - and it works. Then I remembered that I also have to update the field which keeps track of who made the change.
Configuration of the field via SELECT it (for example Select "userX" as a publisher of...) for the tabular presentation fails due to an error of concurrency of db (MRU 20001) on presentation.
Try to substitute the current value in [column attributes] of the field in the context of the [attribute] - [value = "userX"] he added simply as the second argument to the value of the entry (of the html source).
Suggestions?This as a trigger in the database... Setting that introduced the change, the date/time, and who have created the line is also a function, imo, a trigger for insert/update in the database, not the form...
Thank you
Tony Miller
Webster, TXNever give up dreams!
JMS -
How to fill a hidden form field with a value passed in another page
I use PHP/MySQL and DW CS4.
I'm trying to get the foreign key to a table and include it in a hidden field in a form to another table.
The user selects a 'need' to a list and is taken to a new page that displays the need selected in the previous page and a form that the user can fill out with details of its offer, there is also a hidden field in the form that contains the index to the table needs, this hidden field retains the external key. Most of the code works, except to fill the hidden field with the external key. I proved (by printing it on the screen) that I got the external key and stored in a variable ($saveNeedId). I am unable to do so, what affect this variable in the hidden field in the form, I'm about to be stored in a table. Sometimes, I have zero and sometimes I get the index of the first necessity in the table. It should be simple but I can't make it work, I must be missing something obvious - still very new to PHP.
The following code sets the variable and display for test purposes
$saveNeedId = "-1";
If (isset($_GET['needId'])) {}
$saveNeedId = $_GET ['needId"];
print $saveNeedId;
}Here is the code that implements the fields hidden in the form, where I'm putting in place is the first one, needId
< input type = "hidden" name = "needId" value = "<?" PHP echo $row_rsNeedsUnmet ["needId'];? ">" / >
< input type = "hidden" name = "offerId" value = "" / > "
< input type = "hidden" name = "MM_insert" value = "form1" / >The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php
I would really appreciate sone help with this, I tried all combinations of double quote, percent sign and nothing works... sigh.
Tony
The following code sets the variable and display for test purposes
$saveNeedId = "-1";
If (isset($_GET['needId'])) {}
$saveNeedId = $_GET ['needId"];
print $saveNeedId;
}Here is the code that implements the fields hidden in the form, where I'm putting in place is the first one, needId
I looked at your page. It seems that you have thought about it.
Maybe you are looking for
-
It is impossible for me to put in operation these days and get an instant response. The faster this last month has been an hour - after will disappear and return at intervals. It seems to go better after 08:00 but that it no good for one early don't
-
I just saw a menu when I login. I can not open the mail any longer.
All of a sudden, I had no access to "My Yahoo". I see a hierarchy of menus of my content, but can't access the content or retrieve my GUI.
-
OMEN 15 J9K22UA #ABA: Fan and keyboard issues
I'm having two problems currently:(1) my fan on the left is completely out some time back and I replaced it under warranty from HP. Unfortuantly now my right fan running at a slower speed and pushes the air noticeably warmer than the fan on the left
-
Best OS for 2010 upgrade 2.4 core duo?
So I got my my mini 2010 since then and it has been relegated to a platform of film glorified since 2012 when I got a high-end MacBook. I have now the need for a desktop computer handle some heavy windows based like HCSS and AutoCAD programs, but rat
-
HP Pavilion dv6000 series (RAM) memory update
Hey there! My laptop has currently 1 GB memory (RAM), and I would like to improve his memory to 2 GB +. Is it still possible? OS: Windows XP Model number: dv6725ee Thanks in advance!