Execute a DML process after user selects a column link in a report

APEX 3.2 / RDBMS 10GR2
I have written a non IRR report that displays several rows of data. The first column of each row has a defined column link uniquely identifying the row. When a user selects one of the rows via the column link, a "hi fidelity" report is generated for that displayed row using a (RTF) report layout created in the shared components section of APEX.
This is working well but I also need to execute a DML process after the user selects a row but prior to displaying the hi fidelity report using the selected column link value of the displayed row.
As a URL is used to call hi fidelity report via the column link, it does not appear that the process section of the APEX page component is available to execute the DML prior to displaying the report.
Any ideas on where to define the DML process?
Thanks in advance.
Barry D

Hi Barry,
Not knowing exactly what your URL calls, this is what I do for PL/SQL procedures that create HTML output:
Create a blank page with no template and call the procedure inside a PL/SQL region with no template.
Alternatively, if your URL opens in a new window:
run some javascript for your link and pass a unique request through.
The javascript needs to find the ApEx form, update it's target attribute and submit it with the unique request, then set the target back to blank.
The form will submit into a new window.
You can then have a process and branch allocated to this unique request to do what you want.
Hope this helps
Regards
Michael

Similar Messages

  • Reset timer after user selection + Progress bar

    Hello there!
    I am trying to create a VI for humidity. So far everything works fine for that. I also wanted the ability to let the user define the frequency of data collections in units of time. ie: every <x> minutes/hours/days/etc. This also works to some extent.
    My problem is that say I choose 1 second, then change the unit to 1 minute. It'll do exactly as expected: the VI will wait 1 minute until capturing a data point. The problem is what if the user changes it back to seconds before that minute is over. The VI will still wait the full minute before changing to the new collection frequency unit.
    Is there someway to force reset the timer if the user changes a selection?
    Also, I am trying to make a progress bar to let the user know how far the VI is along with the collection interval. I thought it'd be convenient if a user selects 1 hour for example. There is no way of knowing how far along that hour wait is. I can't seem to get this one to work either. I thought it'd be something like
    1)get current date/time seconds
    2)add the user interval (ie: 60 seconds) to #1
    3) get a %
    4) add that to progress bar
    5) if reaches 100, then reset.
     Also for some reason my STOP button doesnt work for this loop.....
    Any help on this would be great! I've attached the VI I have going thus far.
    thanks so much
    Attachments:
    Humidity.png ‏41 KB

    Ah, sorry about that I thought I also attached the VI.
    Since this is my first VI, I'm not sure what you mean by:
    altenbach wrote:
    Easiest would be to use the timeout of an event structure to trigger a collection. Use other events to immediately break the timout and apply new settings, etc..
    Here ya go!
    Attachments:
    Vaisala HMD40Y_2013_SP1.vi ‏85 KB
    Units to Seconds.vi ‏19 KB

  • Error on Two DML process in a single page by condition

    Hi all,
    I have a page where i have two forms region on table and two DML processes,
    i want to execute these two DML process one by one conditionally, such as initially when page load the second DML process will not execute after page submit, the first DML process will execute and successfully inserted table data then the second DML process will execute.
    I have tried to do it by conditionally executing the them one after one by button pressed but failed to do so, when i submit the page its executing two DML process though i have make the second one to execute conditionally.
    Any help is highly appreciate.
    adnan

    Hi,
    Can you please replicate the same in apex.oracle.com for more clarity?
    Regards,
    Sakthi.

  • Display Different reports depending on values in a User Selectable Dropdown

    Hello,
    I want to create a report which has a Drop-down and depending on the value selected from the drop-down, i want to display different reports.
    Say, a drop-down has 3 values, v1, v2 and v3. Now, if a user selects v1, he/she should see report r1. If v2 is selected, the user should see report r2. if v3 is selected from the drop-down, then report r3 should be visible. All the 3 reports have different structures (even different no. of columns). Also, v1, v2 and v3 are 3 different values belonging to a same picklist type field.
    Do you think this is possible? If yes, How ?
    Any sort of help will be highly appreciated. Thanks in advance.
    Regards,
    Ramil.

    The only way i could see this working would be to create a picklist on a object and then create your three reports placing them within the same folder and name the report something under 30 charters then place the same name in the picklist value and create a weblink to the report which at selection of the report will run either report.

  • Regarding Can we store User Selected values in prompts

    Please help us in achieving the below requirement.
    Requirement is to store User Selected values in prompts when the report is opened by a User for the first time and make use of those values to refresh the report next time onwards.
    1.Can this be achieved in WebI ?
    2.If it is thru SDK(we use Java), any experience/help in doing this ?
    Environment : BO XI 3.1 with SAP BW Integration

    Hi ,
    If you dont want data to be displayed in this report for this two values , then exclude this two values when you restrcit your characteristic to the variable.
    If you want not to display this values when user opens help for entering the values where he can see all the possible values for selection for the variable, then it wont be possible.
    Hope this will help.
    - Jaimin

  • Close excel programmatically after user cancels file selection

    Greetings all. I apologize but I incorrectly posted this question on the wrong board originally so am posting it again here. I have a VI that I wrote with some help from this site that reads in as many user selected Flat Data Files as desired into Excel. The VI opens Excel, places each Flat Data File on one row and ends, allowing the user to manipulate the Excel data as desired. I have tested it without problems with up to 100 files at a time. The VI minimizes Excel at startup so that it will not block the Select File(s) dialogue. MY problem is this: If the user cancels the file selection, it returns an error and leaves Excel open. I understand how to handle the error, but have been unable to make Excel close automatically if the action is canceled. I have tried to invoke the Close without saving node with no luck... probably because I don't understand how to apply it. Ideally, I want to take the error number to a case statement, and if it is anything other than zero (0), meaning no error, I want Excel to close down. This will eventually be an executable so I need to make this right. Can anybody help? I have attached a zip file with the VI's and some sample Flat Data Files.
    Thanks
    Attachments:
    RTS Flat File Data.zip ‏103 KB

    If you want anything to run after an error you must clear the error status boolean from the error cluster. To do this use the bundle by name and set the status value to FALSE, take this output cluster into the function you wish to run.
    Andrew Alford
    Production Test Engineering Technologist
    Sustainable Energy Technologies
    www.sustainableenergy.com

  • Execute process after clicking a link

    i have a page with a form and report.
    the report contains links to specific datasets in the form. that means: it's a link to the same page but another data set.
    because of the form i have a process Automatic Row Processing (DML) to save changes in the form.
    now i want to use this process after clicking a link. i did the following: i added to link the keyword 'Apply' in the position of 'Request'.
    the process says: Valid Update Request Values: SAVE, APPLY CHANGES, UPDATE, UPDATE ROW, CHANGE, APPLY, APPLY%CHANGES%, GET_NEXT%, GET_PREV% , but if i click on a link the process will never be executed.
    maddl

    Hi
    What do you mean with "link to the same page"?
    If you don't SUBMIT the page, the Automatic Row Processing will not fire.
    So your "link" should be something like a href="javascript:doSubmit('APPLY');",
    and then you set up Page Branching to branch to the same page.
    You might want to set up a condition for the branch also, choose Request = Expression 1, and enter APPLY in the expression 1 field.
    Hope this applies to your case.
    Cheers,
    Vidar

  • Hi  When i create the downpayment process in the invoice i get amount as value but my requirement is in percentage even after i select the percentage basis milestone billing please help what can be done

    Hi  When i create the downpayment process in the invoice i get amount as value but my requirement is in percentage even after i select the percentage basis milestone billing please help what can be done

    downpayment percentage , so if i want 50 percent of order value to be paid  and when i go to faz type the invoice is created for 0 value that 50 percent of the amount is not getting calculated , where as when i enter in order same as 50 percent in amount it gets calculated in invoice, any help ?

  • PAPI - execute process based on selected participants

    In a process, there are two roles. In role one and two, interactive activities are set to user selects transition. Each role has one interactive activity.
    If a user finish task in activity one of role one, BPM workspace (10g) let this user select the participant in the role 2. How to do this in PAPI?

    I solve this problem using following snippets.
    ProcessServiceSession instancesSendTo(InstanceActivityPairSet instanceActivityPairs,
    String activityName,
    String participant)
    throws OperationException,
    BatchOperationException
    It works.

  • Can iBooks Author hide sections of a book to be revealed only after the user selects a correct choice?

    Can iBooks Author hide sections of a book to be revealed only after the user selects a correct choice?

    K T wrote:
    'downside'....really?
    Well, yes, in the sense that simplicity has a price: it comes at the cost of reduced functionality. (If all the functionality were still there, things wouldn't be as simple; it's an inevitable trade-off.) It looks like IBA was designed with the iWeb philosophy: make simple things really simple, and leave out the stuff that's too complex to control for non-experts. The upside of course is that non-experts can use the tool really easily.
    K T wrote:
    No pain - no gain. You didn't come up with the content for your books without putting in fair time
    Sure. But almost all that effort went towards creation of the content, not towards laying it out with IBA (which was remarkably easy). So, in that sense, IBA more than met my expectations. The things it does do, it by and large does really well, and without much expertise needed on my part. The only thing that was complex was the HTML widget, which took some programming. But that's entirely my own fault, not IBA's
    Michi.

  • I am trying to change country to US for iTunes on my iPad. After I select US in account setting and press NEXT I get message: "Cannot connect to iTunes" and then "The iTunes Store could not process your request. Please true again later". Help please.

    I am trying to change country to US for iTunes on my iPad. After I select US in account setting and press NEXT I get message: "Cannot connect to iTunes" and then "The iTunes Store could not process your request. Please true again later". Help please.

    downloaded the updated iTunes and that did nothing. I then went through the form about $ very VERY carefully and discovered one field left blank. Once that was filled in, everything worked and I now have my free app.

  • Execute a process after delay

    Dear all,
    I have a Stored Procedure using a function performing some tasks in Oracle 9i DB. All I would like to do is to find a way to be executed repeatedly every T minutes, where T could be customizeable..
    Any ideas, examples or documentation available?
    Thanx in advance..

    Maybe is helpful...could you send me some examples or a documentationOne of the reasons why this newfangled interwebnet thing has taken off is the concept of hypertext. This is text with an embedded URL or link, which means if you click on it it will take you another web page.
    It is unfortunate that the forum software does not use the de facto standard for indicating links, (i.e. underlining) but instead colours them Execute a process after delay.
    Cheers, APC

  • Possible to create a Message Box in response to end-user selecting "cancel" or "block" after clicking a link to a URL?

    Hi all:
    When an end-user clicks a link/button to connect to a URL, the security dialog automatically appears giving them the options of "Allow," "Block" or "Cancel".  Should they select "Block" or "Cancel," can we trigger a message box informing them they blocked or cancelled the connection?
    With traditional message boxes, we're causing them, ie
    var rtnFromBox = xfa.host.messageBox("Information is missing.\n\n Are you sure you want to continue?", "Missing Information",1,2);
    if (rtnFromBox == 4){
        xfa.host.messageBox("Okay, we'll keep going.","",1,0);
    But with the URL security dialog, we're not calling it from a variable - it just happens.
    I guess a similar question could be applied to a "Save" button.  Where if the end-user selects "cancel" on the "Save As" dialog, a warning could pop-up reminding them to save soon.
    Thoughts?  Thanks!
    Brian

    Radz,
    I didn't think so but figured I'd ask.  Thanks for the response though!
    Best,
    Brian

  • Execute command button after user tabs out of inputtext

    All,
    I have a command button which is used to call a webservice. This works fine.
    I also have an Inputtext field. What I want is to execute the action when the user tabs out of the inputtext.
    Does any one have the solution for me ? I've not yet been able to achieve this for instance in a backing bean.
    My code:
    <af:inputText
    value="#{bindings.pEan.inputValue}"
    label="Ean-code"
    required="#{bindings.pEan.mandatory}"
    columns="#{bindings.pEan.displayWidth}"
    autoSubmit="true">
    <af:validator binding="#{bindings.pEan.validator}"/>
    </af:inputText>
    <af:commandButton id="BepaalVoorraad"
    actionListener="#{bindings.GetStockQuote.execute}"
    text="Bepaal Voorraad"
    disabled="#{!bindings.GetStockQuote.enabled}"/>
    The binding from my pageDef.xml:
    <methodAction id="GetStockQuote" MethodName="GetStockQuote"
    RequiresUpdateModel="true" Action="999" DataControl="GetStock"
    InstanceName="GetStock" ReturnName="GetStock.methodResults.GetStock_GetStockQuote_result">
    <NamedData NDName="pEan" NDType="java.math.BigDecimal"
    NDValue="${bindings.GetStockQuote_pEan}"/>
    </methodAction>

    Set the inputText to have autosubmit on, and add a valueChangeListener to it.
    <af:inputText label="Label 1"
    binding="#{backing_untitled1.inputText1}"
    id="inputText1"
    valueChangeListener="#{backing_untitled1.valchange}"
    autoSubmit="true"/>
    In the method of the valueChangeListener call the method that is associated with the button.

  • How to update a bound textField with user selection ?

    Hi all,
    I'm following an Update Database example from the JSC tutorials and have the following situation.
    I have a page displaying a row of data for a selected person (first_name, last_name, title) bound to a data provider. I have made the "title' field a TextField. I want to enable the user to edit the title field and update the information in the database.
    If I simply type a new title on the text field and click on Update, everything works fine. However, I want to make the user choose from a list of titles (in a drop down list) instead of manually editting the 'title
    field to avoid spelling errors.
    However, the textfield (title) does not display the selection from the Drop Down list.
    titleField.setText(rankdropDown.getSelected());
    It seems to me that the reason is that each time the drop down event value change event handler is executed, the Pre-render methd kicks in and restores the 'title' field to its original value (from table rowset). And the user selection is not displayed.
    public void prerender() {
    try {
    getSessionBean1().getStudent_infoRowSet1().setObject(1, getSessionBean1().getLoginBean().getUsername());
    student_infoDataProvider1.refresh();
    } catch (Exception e) {
    Can someone please suggest a solution?
    Thanks.
    Nakul

    Are you submitting the page after selecting the data from the drop down?
    The drop down does not seem to have an option of submiting the page when the value is changed. Only if you submit the page, will the data be processed and the text field updated.
    From what i see in the doc for the prerender method, this method is invoked during the renderResponse phase. Whereas the value change event is processed during the process validation phase itself of the jsf life cycle.

Maybe you are looking for