How to trigger the automated row fetch process and open modal window by javascript api?

Hi,
I would like to click the one row of column of IR report, to open the modal window of current page.  <----------------it is ok. I can use "javascript:openModal('windowID')"  to do it.
There is one form in this modal window, Meanwhile, I would like to pass column data to this form.    <--------------------- it is ok also. I can use " $s('P7_ID','column_value');" to do it.
But I don't know how to trigger the "automated row fetch" process of this form to retrieve other field's value in this form.   
I tried to use following 2 ways. But failed.
First method:
add one ajax process of "automated row fetch" in "page processing" block, named "get_fetch_data"
when click IR column , call "openModal", and call  "apex.server.process ( "get_fetch_data", {}, { success: function( pData ) { }  } );"  , I tried to call above ajax process to refresh form. It is failed.
Second method:
add one process of  "automated row fetch" in "page rendering" block, named "get_fetch_data"
when click IR column, call javascript api "apex.submit" to submit current page , then call "openModal".
such as :  javascript:apex.submit({request:'MODIFY',set:{'P7_ID': #ID#}}); openModal('trade');
But it is failed also. the modal page is showed firstly. then page refresh. but modal window will not open again.
I am not sure if my thinking is right. Could you please provide any suggestion?
Thanks in advance,
Ping

Hi Ping,
You can try to set the session state of your modal page's primary key before opening the modal page. Use one dynamic action (on click of IR row) with two true actions. First one to set session state of modal page pk, second on to open modal page.
Or you can add the modal page url as link in your report by extending your query:
select ...
,         apex_util.prepare_url( 'f?p='||:APP_ID||':7:'||:APP_SESSION||'::'||:DEBUG||':7:P7_ID'||COLUMN_VALUE ) as link
from ...
This will give you the url of the modal page, with set primary key.
Regards,
Vincent Deelen
http://vincentdeelen.blogspot.com

Similar Messages

  • Two 'Automated Row Fetch'-processes at one page

    All,
    I have a page with several fields (P24_xxx_Reg1 & P24_xxx_Reg2) in two regions.
    For every region I have an ‘Automated Row Fetch’-process, because they base on different tables.
    The second process sets the field values of region 1 to null,
    even all is different: fieldnames, sources, regions, processes, etc.
    Any help appreciated,
    thanks in advance
    lucio

    Create a view on a table you want to update if you have more than two key values.
    However, the automated row fetch does support two key values.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to trigger the quote re approval process

    hi
    i want to trigger the quote re approval process when order line details are changed after approval. can any one suggest me the way to perform this task whether i can create a database trigger ?
    thanks and regards
    srini

    hello srini,
    sounds to iguru that you want to modify the order lines workflow rather than creating a database trigger. I assume that you are a boffin in workflow?

  • How to access the URL on page load and open it in the new tab of browser

    Hi All,
    I am using Jdeveloper 11.1.1.5 and i have one page "Hello.jspx" and one data control consist of two attributes :-one is "id" and other is "url".
    The datacontrol has been created from the WebService.
    Now my requirement is : -
    whenever i run the page "Hello.jspx" , then on page load the url attribute should get accessed and should be opened in a new window or tab of the browser.As the url contains the information about the document.
    Hello.jspx page doesn't contain any bindings of the url attribute.
    I had thought of using the PhaseListener class and use the onPageLoad method .But how do i get the url from the dataControl and open it in the other tab of the browser on page load.
    Please suggest!!!!
    Thanks.

    Hi,
    I don't think this can be done this way. I would think that you need to execute JavaScript upon Hello.jspx load to open a new window and pass the URL to it
    Frank

  • Automated row fetches, checkboxes and null values

    Hi
    In Apex3 I have a page with automated fetch row process that is working fine. Now I need to add a new not null varchar2 column "flag" which can be a Y or a N.
    To do so, I created a new checkbox item p1_flag, set the source properties and the LOV definition to: STATIC2:Flag set;Y
    However when I try to save the data with the checkbox unticked I get a null value error. To solve it, I created a computation on that field like this:
    nvl(:p1_flag, 'N')
    Is this the best way to do it? (other than using database triggers)
    Thanks
    Luis

    Hi Patrick
    Thanks for the reply. I thought that, just wondered if there were a better way...
    Another option that I was thinking about was to modify the column definition to be nullable, with valid values being Y and null. So I wouldn't have to care about it. The only thing being that I don't like very much the idea of modifying the database design because of the development tool (though I saw things much worse than this, as using VARCHAR2 instead of DATE because the front end tool didn't handle date datatypes very well!)
    Or just stick to a trigger to do it.
    Cheers
    Luis

  • Refublished iPad 2 how do get the power  to slide over and open I pad?screen will not respondent touch.

    I pad screen is frozen.  Touch commands to open will not function.  Unable to set up Ipad

    you cna try a reset home button plus power for 20-30 second in tell you see a apple logo

  • Table and Primary Key Case Sensitive in Automated Row Fetch

    Why are the table and primary key fields case sensitive in the Automated Row Fetch process? I'm debugging an error in this process and I'm not sure what the case should be.

    Russ - It's a defect of sorts. Use upper case in the process definition. I don't think these processes will work with tables or columns whose names are not known to the database as upper-case values, i.e., defined using double-quoted non-upper case.
    Scott

  • Set memory cache - automated row fetch

    I would like to know more about the difference between
    Set Memory Cache On Display and
    Set Memory Cache On Fetch
    option, given in the Automated Row Fetch process.
    I noticed that it makes a difference in some cases - especially where I have a master-detail relation and need to perform multiple drill down:
    e.g. the report shows what was expected but export to .csv returns no rows. After switching from the default 'Set Memory Cache On Fetch' to 'Set Memory Cache On Display' everything works fine.
    Where could I find something about this option?
    Denes Kubicek

    Denes - I'd need to see an example to explain it. It is not the behavior I would expect. Can you create a simple test case on htmldb.oracle.com? Please post the workspace name and app/page ID when you have it.
    A bit more info: when the DML Fetch Mode is set to 'Set Memory Cache On Display', references to items sourced by the fetch, say &P1_ENAME., will not return the value that would be displayed in the form item P1_ENAME until after the code that emits P1_ENAME executes. So if your page had a before-header DML Fetch process that fetched a value for P1_ENAME (from EMP) and region A that displayed conditionally based on P1_ENAME = 'SMITH' and then region B containing the form item P1_ENAME and then region C that displayed conditionally based on P1_ENAME = 'JONES', the condition on region A would not see the fetched value of P1_ENAME but the condition on region C would see the value. However, if you set 'DML Fetch Mode to 'Set Memory Cache On Fetch', the condition in region A would see the fetched value.
    When you have a csv link or chart region that references a value from session state, that value must have been committed to session state (which happens when you run a computation, do an explicit assignment or "select into" a bind variable associated with a page or application item, or when you submit a form) in order for the csv or chart page to access the current value.
    Scott

  • How to get a single row fetched in a form?

    Hi,
    I would like to make a profile page , where the (currently logged in) user can change his adress, e-mailadress etc.
    This page must have only a form with input fields, filled with data from the database that the user can change. A report is not necessary because the user may only see his own data.
    I tried already several things, but i get allways a form with no data from the database, with the possibility to create records (sometimes, depending on what i choosed in the wizard, also an update button).
    I also changed in the 'Automated Row Fetch' the property WHERE CLAUSE with :P9_ID = 1 and even with ID = 1, but both clauses doesn't make a difference.
    (1 is the value of the ID-column in my table) // (:P9_ID is a field on my page, linked to the ID-column in my table) // (ID is the PK and columnname in my table)
    Is this possible to make an input form containing existing data (that a user can change), and how?
    Thx.

    Hi,
    Whats the table column which stores user login ID? lets say its APEX_LOGIN_ID then create a page item P1_APEX_LOGIN_ID and put default value to :APP_USER. Now in the ARF process, for "Item containing primary key value" put P1_APEX_LOGIN_ID and "Primary Key Column" to APEX_LOGIN_ID.
    Cheers,
    Hari

  • Automated Row Fetch

    I am struggling to get two forms on the same page work as they are suppose to. One of the problems is with Automated Row Fetch. To condense the problem I tried the following (on a test page):
    Created a form/table on table A with primary key PK_A
    Among other things this creates the automated row fetch for this form and a field P1_PK_A. containing the PK.
    Created another form/table on table B with primary key PK_B which creates automated row fetch for B and P1_PK_B
    Since I am concentrating on fetch process deleted all buttons and processes except FETCH row for both forms.
    Now:
    When I pass a value to P1_PK_A in the URL and no value for P1_PK_B it fetches the row in form A fine, same is true the other way around. However if I pass valid keys for both forms in the URL it fails to fetch row for the second form.
    Am I missing something or if not how am I to have two forms on a page?

    Thanks for the quick response Joe,
    I deleted the process created by the wizard and created another data manipulation process with the wizard - which created another autmated row fetch and makes no difference. By creating the fetch and DML manually do you mean that I have to create PL/SQL process to fetch the values for the second form?
    Btw how in the world I missed the part that you can't have two automated DML processes on a page I don't know.

  • Automated row fetch / Complex primary key

    I have a complex primary key made up of ticket_num, ticket_seq because there may be between 1-3 rows associated with one ticket_num.
    The problem I am having is the automated row fetch errors out when trying to update a ticket with the following error even though the combination of ticket_num, and ticket_seq are unique, and ticket_num, ticket_seq are entered in the automated row fetch as primary key column, and secondary key column.
    ORA-01422: exact fetch returns more than requested number of rows
    Is there a way to put both columns as the primary key?

    Thanks, Scott. I had the exact same problem, and your suggestion fixed it.
    May I suggest that this is a bug in Apex? In the create application wizard, select "Add Page" -> "Report and Form", and select a table with a compound primary key consisting of two columns. Apex will create the report and the form, and will configure the ARF correctly in the form, but it does not specify a value for the second key in the Link Column section of the report attributes.
    Thanks,
    Mike

  • Automated row fetch returns more than one row

    Greetings All,
    Does anyone know of a way to call a page if the automated row fetch returns more than one row. I have a form with a primary and secondary key. If I search only on the primary key and there is more than one row I would like to call a popup with the multiple list, is this possible?
    Regards
    Mark

    Create a view on a table you want to update if you have more than two key values.
    However, the automated row fetch does support two key values.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • APD process is active, How to trigger the data from BI to CRM table

    Hi All,
    I want to send data from BI system(using APD method) to CRM table (ADS method).
    I am able to see the table for e.g ABCD in CRM system , i can open using SE11 , but data is 0.
    In BI , i have data in DSO and i have mapped it in APD process to data Target to CRM system and APD is active.
    Now i want to know how to trigger the data from BI to CRM table? (e.g ABCD).
    Please let me know the steps.
    Regards.
    Nithi.

    Hi
    Just create a Process Chain to execute this APD method, if the process Chain is already available, then just insert this Process in to the process Chain and execute the Process Chain by normal process, by hoe we do in general.
    Hope it solves...

  • How to trigger the Process Chains in BI from ECC

    HI Friends,
    Can let me know  How to trigger the Process Chains in BI from ECC. Please let me know.........

    Hi,
    1) Define a Custom ABAP Program (eg : Z_EVENT_RAISE)..........call the FM : BP_EVENT_RAISE or RSSM_EVENT_RAISE..........and trigger an event towards BW .........specify BW as RFC destination...........
    2) Create a R/3 Job in SM36>> use the Program Z_EVENT_RAISE ......
    3) In BW schedule the PC..........and in the Start variant use this Event..........
    http://sapbiwtutorials.blogspot.com/2009/03/how-to-trigger-process-chains-in-bw.html
    It can be help full
    Regards,
    Edited by: subba2010 on Aug 19, 2010 6:51 AM

  • Automated Row Fetch for complex primary keys

    I would like to post a workaround for using automated row fetch on tables with a complex primary key (more than 2 components).
    APEX has the restriction of just beeing able to handle <= 2 PK components, which is not acceptable to me in quite a lot of scenarios.
    Imagine a situation where you want to manage recipes for dishes. Each recipe has several versions and each version has several recipe-positions. The PK consists of recipe_id, recipe_version and recipe_position.
    You hava a report displaying the positions of a specific recipe version and this report contains an edit link that jumps to a form, where the attributes of a recipe position can be edited.
    Creating the edit position form, you can only specify a primary and a secondary key item/column. Given that, if you want to use the edit form by clicking the edit link, you will receive the error "ORA-01422: exact fetch returns more than requested number of rows", because the third PK compound is not used as a restriction.
    The workaround is to present the ROWID pseudo-column to the form as the primary key.
    Create a (hidden) Item to store the ROWID-Value of the current row and simply change the properties of the ARF-Process to accept ROWID as the PK column and specify the corresponding item.
    If automated processing of recipe_position is desired, you can specify it as the secondary key column.
    I don't know if this woraround/solution is very ugly, but it works ...
    Ingo

    Hello Ingo,
    I tend to avoid ROWID. In the Interactive Report it's used too.
    The ROWID can change, where a Primary Key normally doesn't change, that's the biggest thing I worry about. How does Oracle know not somebody else already updated the row?
    I always wonder what happens when you're in a cluster/RAC and use ROWID. Isn't it possible that you get two rows for the same rowid?
    Just my thoughts.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

Maybe you are looking for

  • Copy file from local host to remote host

    Hello, I need to copy a simple file from local file system , to another computer on the same network. How should i do that in a simple java program ? Thanks !

  • Web Sharing set up question

    First... I thank you in advance for your time and efforts on this issue that I have. ========= I have 4 macs each hooked up to separate TVs and running Plex for content serving and so far have been able to adequately manage the lot of them. I can rem

  • Iphone 3 keeps rebooting/resetting itself

    Is the phone dead or any ideas out there for me?

  • Weblogic6.1 SP2 with SUN OS 5.7

              We are having problem in displaying chinese / korean /thai characters display in           Weblogic6.1 SP2 with SUNOS 5.7 combination. It shows junk characters only.           However, we dont have any problem of showing chinese / korean /

  • Inbound Queues in SRM 7.0

    Hello Experts, We have SRM 7.0 / Classic scenario with ECC as a backend system. We observe in SMQ2, we have couple of queues. But I do not know if these have any releveance to us. We maintain filters(R3AC1 and R3AC3) for Material master and Product C