Calculating a value from a item after pressing a button

Hi all
I would like to calculate the value of an item (highest available value in db +1) using a pl/sql-function after pressing a button. The result depends on an other item on the same page. The value of this item is not known while rendering the page. The result should be inserted in the item before saving/validate all other items from this page.
Part of SQL-Script for one possibility :
if :P601_OP = 1 then
select max(substr(sar_id, 5))+1 into :P601_SAR_ID from sar where substr(sar_id,0,3) = 'ORA;
end if;
Thanks for your help
Michael

Hi Joe,
when creating a column link in your report you can pass value from your report columns in this link using the # substitution syntax, e.g. #MYCOLUMN#
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • Automatic logout in SAP System after Pressing Confirm button

    Dear all,
    We have Stock confirmation Transaction(ZTransaction) coming from SAP System through ITS. Our Issue is When user click on Confirm button in that transaction, background process will run. It is more like running Replenishment in ICH. Then user will be able to see the order pager after 45 min,after pressing Stock confirmation button. but the user is still alive in backend system, this will causing load on the backend system. So want to set automatic logout from that system after pressing confirm button in that transaction.
    Can anyone help me or guide the logic to implement in ABAP Program.
    Note: User will access this Transaction through Portal.
    Rgds
    PRadeep

    Dear all,
    There are two function modules are available...they are as follows.
    TH_DELETE_MODE(Session will delete)
    TH_DELETE_USER( Total login will delete)
    Rgds
    PRadeep

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • Which trigger fires after pressing 'Save' button on toolbar.

    hi,
    I wanted to know which triggers get fired after pressing 'save' button on toolbar, and in which sequence it get's fired.

    When you press 'save' it tries to do a commit_form.
    Before commiting the form, it checks for any errors which might occur at form level, block level or item level and does the commit only when it doesn't find one.

  • Is there any app to quit from application with out pressing home button every time

    is there any app to quit from application with out pressing home button every time?

    Months ago my home button was screwed up, and I was worried. I'd have to wait atleast for a week to get it repaired as I was busy with my exams. So I found a solution. Goto Settings->General->Accessibility.
    Scroll down, and under "Physics & Motor", select "Assistive Touch". Toggle it on, and you get lots of options. You don't need to click the home button all the time. It is a very simple widget like stuff, that stays no matter what app you're using and you can do various functions with it. Initially, it's irritating as you see it everywhere. But it fades itself out and appears when needed. After you get used to it, it's really helpful.

  • Can't turn on apple logo fades a moment after pressing on button

    can't turn on apple logo fades a moment after pressing on button - not recognised by itunes as being there. Can charge - however this causes the apple logo to appear and disappear repeatedly??

    Hello there Struth23,
    Sounds like you may need to reset the iPhone or put it into recovery mode to resolve the issue if it is to do with the software.
    From iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    And if needed, iTunes: Restoring iOS software
    http://support.apple.com/kb/ht1414
    Cheers,
    Sterling

  • TV screen frozen on Apple logo after pressing select button on remote.  Have powered off Apple TV and router.

    TV screen is frozen after pressing select button on remote.  Have powered off both Apple TV and router. Menu does not come up. All that is on TV screen is Apple logo with black screen.

    Welcome to the Apple Community.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

  • Calendar's 2nd Event Alert auto swaps with 1st alert after pressing Done button in the default "Home" Calendar. Why?

    Calendar's 2nd Event Alert auto swaps with 1st alert after pressing Done button in the default "Home" Calendar for IOS 7.1. Why? No such problem with the original IOS 6 that included in my iphone 5.

    Anyone got any ideas?

  • User Exit which runs after pressing SAVE button at VF01 Screen.

    Dear all,
    I need user Exit which runs after pressing SAVE button at VF01 Screen.
    Kind Regards,

    If you search the forum, you can find plenty of threads on this, for example Re: Badi or user exit for VF01 while save Can you let the forum know what exactly you want to achieve using user exit during saving of a billing document?
    Regards,

  • Since yesterday I am facing problem,when it goes in sleep mode it actually turn off and does not come up after pressing start button but every time I have to hard reset it.It is 4 gen running on 4.3.3

    Since yesterday I am facing problem,when it goes in sleep mode it actually turn off and does not come up after pressing start button but every time I have to hard reset it to turn it on .It is 4 gen running on 4.3.3.Please help

    so I have called HP tech support 12 times over the last 6 weeks and still my HP Officejet 4620 loses connection overnight. Of course becasue it was a birthday present I spent more time than I normally would have on this issue. While the tech are very polite they have not fixed my problem and now it is too late to return printer to store. This is a lot of money wasted and I think they need to admit this is a bug in this printer and resolve the problem!!!!!

  • How to refresh page after selecting value from LOV item , in a tabular form

    Hi ,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, couple of issues here.
    1.
    2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
    2.
    How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
    Please help here. Would be really appreciated.
    Thanks and Regards,
    Rave.

    Thanks Ben and Dan for your responses.
    Ben, your solution helped me with refresh of page, as page got submitted.
    This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
    Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
    I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
    Thanks and Regards,
    Ravi.

  • How can I delete null values from List Item?

    Hi Friends,
    I used List item for field job_Type, I entered values in List item at design time through property pallet. When I run form I will see null values in this List Item.
    How can I remove these null values from the List?
    Best regards,
    Shahzad

    Dear Shahzad,
    It can be removed by adding the following code in the When-new-Form-Instance.
    Set_item_property('List name', required, property_true);
    :block_name.list_name := <put your default value here>; (If you didn't oput the default value, then you will get some problem and the cursor may not navigate away from the list).
    Senthil Alagu .P.

  • Set lookup value from another item

    Hi!
    I add to my list in SP 2013 new column like type Lookup field and select item from another document library
    and display field select "Title". How i can set this filed value for new item from document library item?

    Hi AllXander,
    From your description, my understanding is that you want to set lookup field value with C# CSOM.
    You could use method "FieldLookupValue()". Please refer to this code below to set lookup field value when add an new item to a list:
    // replace your site URL
    using (ClientContext context = new ClientContext("http://sp/sites/sp2013"))
    // replace your user, password and domain
    context.Credentials = new NetworkCredential("Administrator", "Access1", "contoso");
    // the library that you get value for the lookup field
    List list = context.Web.Lists.GetByTitle("Department");
    context.Load(list);
    context.ExecuteQuery();
    CamlQuery query = new CamlQuery();
    query.ViewXml = "<View/>";
    ListItemCollection allContacts = list.GetItems(query);
    context.Load(allContacts);
    context.ExecuteQuery();
    foreach (ListItem item in allContacts)
    // replace the id that you want to set value to the lookup filed
    if (item.Id == 1)
    // replace the list title with your list that you want to add the item
    List oList = context.Web.Lists.GetByTitle("Employee");
    ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation();
    ListItem oListItem = oList.AddItem(itemCreateInfo);
    oListItem["Title"] = "My New Item!";
    // set the lookup field value
    FieldLookupValue lookup = new FieldLookupValue();
    lookup.LookupId = item.Id;
    oListItem["Department"] = lookup;
    oListItem.Update();
    context.ExecuteQuery();
    You could refer to this article about creating/updating/deleting a new item with C# CSOM:
    http://www.c-sharpcorner.com/UploadFile/sagarp/create-update-delete-a-list-using-client-object-model-cso/
    You could refer to this article about updating multi-value lookup column:
    https://sunbin0704.wordpress.com/2013/10/11/update-multi-value-lookup-column-values-in-sharepoint-2010-using-managed-csom/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Copy the value from one item into another

    Hi,
    I have a page with 2 items on it: Field1 and Field2. When the user enters a value in Field1 and tabs out, I want to copy the value to Field2.
    I have changed the setField1 method in the VORowImpl to call setField2 passing in the same value.
    In the JHeadstart definition file I have set the Depends On Item property of Field2 to be Field1.
    When I run the page and put a value in Field1 the page autosubmits as expected and the setField1 method runs. Unfortunately, the value does not appear in Field2.
    Any ideas?
    Thanks,
    Gavin

    Hi Steven,
    Checking the box does indeed get the value from Field1 into Field2.
    What I want to do, though, is to populate Field2 from Field1 only if Field2 is empty. Unfortunately, Field2 is now cleared before the setter of Field1 executes and so it always overwrites Field2.
    Any ideas?
    Thanks,
    Gavin

Maybe you are looking for

  • Error when loading data from PSA TO Target(ODS)

    I am getting the following errror:- The value ' 20080712143841' from field CRM_CHANGED_AT is not convertible into the DDIC data type DATS of the InfoObject in data record 61. The field content could not be transferred into the communication structure

  • Reconciled amounts appears in customer  aging report

    Dear all, When we take aging report for reconciled transactions,reconciled amounts appears in aging days ,the invoices which are reconciled still showing in Aging report  (Suppose we have ar  invoice in 0-30 days and its payments (journal entry ) mad

  • Can't Video Chat - Please Help!

    My girlfriend recently moved to a new apartment and has a new router and ISP and suddenly we can no longer use Video Chat. We always get the error 22 - insufficient bandwidth to maintain connection. We can each video chat with other people with no pr

  • 93 degrees celsius CPU TEMP!! and performance is degrading

    Hey Guys. I have had my MacBook Pro for about 10 months and now my battery is at 60% health one day and then will fluctuate to 89% health the next. Recently too, a lot of software has been hanging up and I get the rotating beach ball of doom. The mac

  • Variants with subscreens in selection screen

    I have a screen that contains a subscreens....this subscreen is a selection-screen....i need to save and load variants for this selection-screen. My code: REPORT  zprueba_02. ----u2013   TABLES                                                        *