Submit Action and Redirect page in Tabular form Column Link

Hi All,
I have a scenario to submit the current page and redirect to another page with the arguments, when i clink on the link which is created using column link in Report Attributes.
I can able to perform the submit action, but redirection is not happening.
Created a column link on non database column by providing
Link Attribute :     <a href="#" onclick="doSubmit('SAVE')">#FAM_DET#</a>
Target : Page in this application
Page : 7
Item name : P7_TRAVEL_REQ_ID
item Value: #TRAVEL_REQ_ID#
Item name : P7_TRAVEL_REQ_LINE_ID
item Value: #TRAVEL_REQ_LINE_ID#
Can anyone help me out to resolve this.

811598 wrote:
Please update your forum profile with a real handle instead of "811598".
When posting a question here, always include the following information:
Full APEX version
Full DB/version/edition/host OS
Web server architecture (EPG, OHS or APEX listener/host OS)
Browser(s) and version(s) used
I have a scenario to submit the current page and redirect to another page with the arguments, when i clink on the link which is created using column link in Report Attributes.
I can able to perform the submit action, but redirection is not happening.
Created a column link on non database column by providing
Link Attribute :     <a href="#" onclick="doSubmit('SAVE')">#FAM_DET#</a>
Target : Page in this application
Page : 7
Item name : P7_TRAVEL_REQ_ID
item Value: #TRAVEL_REQ_ID#
Item name : P7_TRAVEL_REQ_LINE_ID
item Value: #TRAVEL_REQ_LINE_ID#
Remove the link attribute (what you have used there is not the correct way to use this property anyway).
Change the target page to the same page as the report.
Set the Column Link Request property to BRANCH_TO_PAGE_ACCEPT|SAVE.
Create an On Submit: After Processing (After Computation, Validation, and Processing) branch to page 7, conditional on the SAVE request.
If the SAVE request can be triggered by something other than the report link (e.g. a Save button) then use another request value that will trigger the required page process in the link request and branch condition, e.g. BRANCH_TO_PAGE_ACCEPT|APPLY and APPLY respectively.
Note that there is a bug in BRANCH_TO_PAGE_ACCEPT processing in APEX 4.2.3 and a patchset exception must be installed for this approach to work on this APEX release.

Similar Messages

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Difference between Body pages and Master Pages in Adobe forms?

    Hi SAP Gurus,
    Please can any one tell me the difference between the Body pages and Master Pages in Adobe Forms?
    In what scenarios we use Body pages and Master pages?
    And also please tell me what is Boiler plates? When these used?
    Thanks and Regards
    Abinava Siri..

    Hi,
    Master Pages:
    Does not included in the content area
    Master page we will design logo,company address and header information
    Here we can desing footer information
    whatever you desing in the master page it will show for all the body pages
    Body pages:
    Included in the content area
    Where we can design table data, it should repeat for line times.
    Regards
    Ramakrishna Pathi

  • Changing tabular form column to checkbox

    I have a tabular form in 3.2. There is a column that is a text field, but really should be a checkbox. I have tried changing the region source to something like, select a, b, APEX_ITEM.CHECKBOX(3, PRIMARY FLAG) "PRIMARY_FLAG", d
    from my_table
    WHERE a = :P52_XPROD, but the column still shows up as a text field, displaying a value like "<input type="checkbox" name="...etc.
    Is it possible to change a tabular form column to a checkbox in 3.2?

    edit your report attributes, then edit your column and change "display as" to "standard report column"
    Thanks
    Tauceef

  • How to fetch the tabular form column value into page items

    Hi,
    I have created tabular form. I have set LOV for one column. Here my requirement is when i select the value from lov then it will fetch that value into page item.
    can any help?
    I am using apex 4.1
    Thanks
    vijay

    It's not so easy to make a dynamic action on a tabular form.
    The best thing you can do is to use the javascript API from APEX: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm
    So if you have a tabular form then open your item and make it a column link.
    In the link location select URL.
    Your URL would be something like this
    javascript:$s('P1_PAGE_ITEM', #COLUMN_ID#);doSubmit('COLUMN_ID');The doSubmit is not required but if you don't submit your page then the server would never know about your page item.
    Off course it is possible to submit at a later point. For example you can just use the $s to set the value off an item and afterwards create a button that would submit your page.
    Be aware that if you just set the value off your page item and just link to an other page without submitting or without branching that other page would never know about your page item.
    If you want the server to know the value off a page item you need to submit it's value to the server. The easiest way is just to do the doSubmit() call after you have set your value.
    Hope this helps,
    Regards
    Nico

  • Dynamic action on radio group in tabular form

    Hi,
    I'm very new to APEX and I've tried searching the web, but I can't seem to find a good answer for my problem. I have a page in APEX with a tabular form with 6 columns. The last column is supposed to show/hide a button for each row based on the value of a radio group (static LOV) with 2 options in column 5. I want to do this with a dynamic action on the radio group, but I'm having trouble figuring out how to do this. Since the radio group is in a tabular form it's not an item and so I can't just select it in the dynamic action wizard. I figure I have to use a JQuery selector here, but my knowledge of this is very limited.
    I've created the button in the select statement for the tabular form like this:
    select
    "ROWID",
    "DATA_COLLECTION_ID",
    "ID",
    "VARIABLE_NO",
    "VARIABLE_NAME",
    "DATA_TYPE",
    '<a href="javascript:epf.dialog.open(''f?p=&APP_ID.:18:&SESSION.::::P18_ROWID,P18_ID:'||ROWID||','||ID||''',800,700);" id="Category" class="epf-button"><span class="epf-tooltip" data-epf-tooltip="Definer kategorier for denne variabelen"></span>Definer Kategori</a>' category
    from "MATH_USER"."STA_VARIABLES"
    where "DATA_COLLECTION_ID" = :P17_IDAny help would be greatly appreciated.
    - Patrik

    patrikfridberg wrote:
    $('input[id="category"]')[currIndex].hide();;where does this category come from? and you are referencing id attribute which can only handle one row.
    You must make the jquery selector based on column name (inspect your column using firebug/chrome and see the name attribute of the column form element, it will in format f0x).
    Look at my original code below and i am controlling a column with name f01
    >
    It still doesn't work for me. From what I understood from the "Incorporating JavaScript into an application" page I should put the code in the JavaScript section. I tried that too, but nothing changed. So now I'm thinking there is something wrong with the code itself?
    YES
    this is my original code
    function test(pThis) {
    //get the curren row index on change
    var currIndex = $('select[name="'+pThis.name+'"]').index(pThis);
    if (pThis.value=='20') {
      $('input[name="f01"]')[currIndex].style.display = 'block';
    else {
      $('input[name="f01"]')[currIndex].style.display = 'none';
    }

  • Dynamic Actions in Select List of Tabular Form

    I have a tabular form in my application and one of the column A is Select List with lot of values. My requirement is, there is another column B in the same tabular column like Display text, which should appear when a user select A, B or C in the select list column A. Is it possible, how can I implement it?
    I tried it through Dynamic Actions ->DOM Objects, but I am not sure what is the name of the Select List column value that needs to be specified, it is jst f06 or f06_???. Can someone tell me the exact steps that needs to be followed.

    My mistake, Javascript (and DOM attributes/methods) are case-sensitive. The attribute in question is readOnly, not readonly
    I fixed it on my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:255
    <script type="text/javascript">
    function ro_Item(nd,a){
        var lEl = html_GetElement(nd);
        if (lEl && lEl != false){
           if(a){
          lEl.readOnly = true;
          lEl.style.background = '#cccccc';
        }else{
          lEl.readOnly = false;
          lEl.style.background = '#ffffff';
         return true;
    function foo(pThis)
    var lTD=pThis.parentNode;
    var nextinput=lTD.nextSibling.getElementsByTagName('input')[0];
    var nextnextinput=lTD.nextSibling.nextSibling.getElementsByTagName('input')[0];
    if (pThis.value=="CLERK") {
      ro_Item(nextinput,true);
      ro_Item(nextnextinput,true);
    else {
      ro_Item(nextinput,false);
      ro_Item(nextnextinput,false);
    </script>

  • Dynamic Action on new row in Tabular Form

    Hi Guys,
    APEX version is 4.1
    I created a dynamic action on change of a select list, if changed then disable the related fields on the same row.
    This is working fine for all EXISTING rows on the tabular form.
    However, if I click on ADD ROW button, a new row is added to the page, but the change event on select list is
    not triggerred from the dynamic action.
    Is there any thoughts or workaround on this interesting problem?
    Thanks in advance,
    Frank

    I got it working by adding a onchange event which is triggering js function on the page.

  • Bug Report: Static LOV's and PDF Printing with Tabular Forms

    I have a tabular form, which acts as an editable report. Some columns are 'Standard Report Column' and some are Select Lists, using Static LOV's with the contents of
    Yes;Y,No;NThe purpose of the page is to allow users to edit yes/no attributes of a row. Then, they can print the report.
    To make the current sort of the report reflect what is being printed to PDF, I've used a Report Layout associated with the report region, as oposed to a report query. A report query in this case would not reflect the sort of the report (all columns are sortable asc/desc).
    Anyway, I link my report with the layout created, and go to run it. I get this message.
    ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol "," when expecting one of the following: := . ( @ % ; The symbol ":= was inserted before "," to continue.
         Error      ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin Yes;Y,No;N return null; end; begin wwv_flow_utilities.g_query := x; end;".
    OK      
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data foundI'm guessing the product is trying to take my static LOV and place it in a function to be able to generate which value is being displayed as text, from the select lists. However, it doesn't work.
    I've been able to get around it - by adding a YES_NO domain to my domain_codes table (a table which associates abreviations with full meanings), I can set by select lists to be query based select lists using the SQL select code_meaning, code from domain_codes where domain = 'YES_NO_CODE'. This still allows the user to dropdown Yes/No fields, and the PDF printing doesn't break.
    It is just me, or can't the PDF printing handle static LOV's in tabular forms/reports?

    Hi Patrick.
    I've tried STATIC:Yes;Y,No;Nwhile stating it is a Select List (static LOV). The values that are rendered on the page are
    [STATIC:Yes]
    [No        ]
    ----------I tried the same thing with STATIC2 instead of STATIC, and the same thing happened.
    It also broke if I tried STATIC or STATIC2 under Select List (query based LOV). This is within a report where there is no hyperlink to say 'Create/Edit static list' or 'Create Dynamic List', as there is under select list items.
    However, I am finding that for some reason, the values being sent to the PDF are not the values in the database (Y/N), but the showing values (Yes/No). This happens when I use the domain_code select query as the query based LOV.
    Furthermore, I cannot get any columns not rendering on the page to be generated in the PDF. I have a column that groups items depending on values, and I want this grouping to display in the PDF instead on the original value, ideally.
    Cheers,
    K.

  • Landscape and portrait page orientation in forms.

    Could anyone let me know how to have both portrait and landscape page orientations in a form.
    Building an audit report and need (would be nice) to have both in one single form.
    Regards,
    Raffe.

    Hi,
    You just need to set up two Master Pages and then set the pagination for the design pages, as to which Master Page they relate to. There is an example here: http://assure.ly/ewrLMo. (have a look how the form uses both Master Pages).
    Niall

  • Problem regarding printing in first and last page of a form

    I need to print a some text only in the first page and last page. I have defined a window to print this text. The number of pages that will be created is decided on run time. Can some body please help regarding this issue. I have tried to use SFSY-FORMPAGES to calculate total number of pages in the begining but it does not work
    Edited by: subhajit bhadra on Feb 20, 2009 7:44 AM

    Hi Badhra,
    You can use conditions for that window or text element.
    in conditions, tick 'only befor main window' forr header
    and 'ONly after main window ' for footer.
    Sunil

  • FILL ONE  TABULAR FORM COLUMN FROM A FIELD IN ANOTHER REGION.

    Hi,
    I'm, using Oracle APEX 4.2. In one of my pages i have two regions. One of them has a text field and a button, and the another region with a tabular form.
    http://apex.oracle.com/pls/apex/f?p=41771:2:14057730603424:::::
    I want to enter some data into the text field and when I press the Button named Estado, just the rows checked change the value of the column Estado.
    PLEASE HELP!
    Thanks.
    Eve

    Dear Eve,
    I have made a PL/SQL process called updatePAGObyEstado executed when the button pressed, with the following code
    BEGIN
       for i in 1..apex_application.g_f01.count loop
         update PAGO
         set PAGO_ESTADO = :P2_VALOR
         where PAGO_ID = apex_application.g_f01(i);
       end loop;
       COMMIT;
    END;Please, if this solves your problem, mark it as Correct.
    Best Regards
    Mahmoud

  • Validating Tabular Form Column Against Value From Another Table

    Hi,
    I am brand new to this forum, so please bear with me a little!  I only have a small amount of experience writing PL/SQL, and I've never written Javascript or JQuery before.  I am an Oracle DBA, and I have coding experience in C and PERL, so I do have a solid technical background.  But, I need some advice on the best way to approach a problem.
    I have a database application in Oracle Apex (version 4.2) with a tabular form against a table: let's say Table #1 with cols 1A, 1B, and1C.  I need to ensure that the value entered into col B isn't greater than the value of a column in another table (let's say Table #2 col 2A).  Conceptually, the amount of money available is in Table #2, and the rows of my tabular form are an act of spending money (like orders or invoices), so I need to make sure we don't spend more than we have.  Does that make sense?
    Does anyone have any advice for the best way to do this?  I'm figuring the biggest issue here might be that we have to account for people entering mutliple rows in the tabular form at one time, right?  So, if a person entered 3 orders/invoices, I need a total to make sure they didn't spend more than we have in Table #2.
    I greatly appreciate your help! 
    Best Regards,
    Laurie Baublitz

    Hi!
    You need one process of type ajax callbacks like:
    DECLARE
       l_limit nubmer;
       l_number1 number := apex_application.g_x02;
       l_returnValue VARCHAR2(200);
    BEGIN
       select A2 into l_limit from table2;
       if l_number1 > l_limit then
          l_returnValue := 'LIMIT IS NOT SO BIG';
          if l_returnValue is not null then
             --this will write l_returnValue to the buffer, and the ajax callback will receive this
            htp.p(l_returnValue);
          end if;
      end if;
    END;
    Then you need one javascript on page, code is something like:
    $('input[name=your column in tabular which is change]').live('change', function(){
       //if value of changed field differs from an empty string
       if($(this).val()!=''){
          //put target element in a var to reference it in the ajax success callback
          var num  = $('input[name=your column in tabular with value]');
          $.post('wwv_flow.show',
                 {"p_request"      : "APPLICATION_PROCESS=your ajax callback function",
                  "p_flow_id"      : $v('pFlowId'),
                  "p_flow_step_id" : $v('pFlowStepId'),
                  "p_instance"     : $v('pInstance'),
                  "x01"            : $(this).val(),
                  "x02"            : $(num).val()
                  function(data){
                     if(data !=''){
                     alert(data);
    I can not guarante that code is 100% working, if not you need to do some changes or make an example on apex.oracle.com and provide credentials here.
    Regards,
    drama9346

  • Add Row on Tabular Form - column from read only to update/insert allowed

    APEX 4.2.2
    Newbie in the APEX forums, go easy please.
    I'm building a rather simple tabular form based on a table with a primary key (emp_number). Sounds like an Oracle tutorial but trust me, it's a real table. This table has, for this example's sake the following attributes:
    Table Name: EMP_EXCEPTIONS
    EMP_NUMBER      NUMBER (PK)
    UPDATE_EXEMPT VARCHAR2(1)
    I've used the Tabular Form wizard to create a nice looking tabular form page, all good and works as intended. Of course the primary key value is non update able by the wizard and that's by design - I've no need to update any primary keys. When I click the add rows button however, I'd like to be able to include the emp_number field as a input able field. At the moment, when I click the add rows button it inherits the property of the emp_number as read only. The user entering the new row would know the employee number and whether they were update_exempt or not. So rewinding my head in Oracle Forms, this would have been done by setting the row attribute as update allowed when the button is clicked. Is there such simple functionality in APEX and if so can you point me in the right direction?

    It seems to be true:
    - if there is ascending order on columns which fields are null in new line (have no default value), new row is visible in current "pagination" page
    - but if there is DEScending order OR ANY sort order is set on columns which fields are NOT null in new line (have default value), new row is NOT visible in current "pagination" page
    thank you!

  • Validation in Tabular form column

    Dear All,
    i am using tabular form (Apex 4.1) to create new project users.
    i want to apply validation on column of tabular form.
    i have multiple entry in tabular form .i want to iterate throuh all records to check validation but my code is not iterating in to all record of columns.
    where i doing wrong.
    my code is
    DECLARE
    D DATE;
    BEGIN
    SELECT START_DATE INTO D FROM PA_PROJECTS_ALL WHERE PROJECT_ID=:F104_RESOURCE;
    FOR i IN 1 .. apex_application.g_f09.COUNT
    LOOP
    IF apex_application.g_f09(i) >=D THEN
    RETURN TRUE;
    END IF;
    RETURN FALSE;
    END LOOP;
    END;How can i iterate my loop if 2 and 3 row record not satisfying this condition
    apex_application.g_f09(i) >=D .How can i do this.
    Thanks

    DECLARE
    D DATE;
    B  BOOLEAN := FALSE; -- Added
    BEGIN
    SELECT START_DATE INTO D FROM PA_PROJECTS_ALL WHERE PROJECT_ID=:F104_RESOURCE;
    FOR i IN 1 .. apex_application.g_f09.COUNT
    LOOP
    --IF TO_DATE(apex_application.g_f09(i)),'DD-MON'YYYY' >=TO_DATE(D,'DD-MON-YYYY') THEN
    IF TO_DATE(apex_application.g_f09(i)),'DD-MON-YYYY' >=TO_DATE(D,'DD-MON-YYYY') THEN -- removed syntax error in this line
      --RETURN TRUE;
       B := TRUE;
    END IF;
    --RETURN FALSE; --commented
    END LOOP;
    RETURN B;
    END;This will iterate through the entire array, and if even one time it runs B:= TRUE it will return TRUE.
    Now all this assuming that the above code is a Condition on the Validation. If it is the Validation itself then TRUE Means Passed and False means failed. Check whether that is what you want.
    Regards,
    h5. Contrariwise, if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic. --Lewis Carroll                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • DVD burning error - disk locked

    Hi my 9 month old iMac is having problems burning DVDs It was half way through a 4 disc back up and gave up with an error. Now the drive wont burn even brand new Verbatim discs. In console it says the new DVD-RW media are locked. I've booted up from

  • Multiple Outbound Deliveries

    Hi, How can I create multiple outbound deliveries for a Stock Transfer Order? The STO has more than a thousand items, which makes one outbound delivery with a thousand line items quite difficult to process with our current warehouse. I need to cut th

  • Multitline in a list labelField

    I am working on flash builder 4.5.1 (mobile application) and i want to show the labelfield in multiline. How can i do that ?

  • 10.5 update has removed record enable

    Hey ho, I updated to logic pro 10.5 yesterday and record enable has diaspeared. Ive searched some older threads and went througt the sugested steps that fixed the problem for older Logic but they arent sorting out the 10.5 update. There is en empty s

  • Installation without cd driver on Windows8

    Hello, i have installation cd for Elements10 but dont have cd driver, how can I download it? and I have Windows 8....thx