Button on Form to Update a specific field with hard coded data

Hi Guys,
This will probably be a nice a simple issue for you guys, but I have ben struggling on how to do this for hours!
On my form created by a report I have a field called status that is pulling the data from the order_status column contained in the customer_orders table.
What I am looking to do is to create a button on the form that once clicked will change the order_status to "Complete" and update the customer_orders table.
I have attempted to do this by creating the button and also a proccess on the page, and have assigned the button to the process
I have set the process as PL/SQL and have entered the following code:
BEGIN
UPDATE customer_orders
SET order_status='Complete'
WHERE customer_order_id =:P7_customer_order_id;
END;
However when I click on the button, the page just refreshes and the field has not been amended!
Please Help
Thanks
kev

I don't know of any example apps containing that off-hand. I've done this sort of thing several times before, but also can't post them as-is on apex.oracle.com due to sensitivity.
I can tell you the steps I would follow:
1) Create a button - in a region position or among region items - doesn't matter. If doing it as a button in a region position it will submit as the button name; if doing it as a button among region items it will submit as the button label.
2) Create a PL/SQL after-submit process (On Submit - After Computations and Validations). Put the PL/SQL code in for the process (your update code looked fine to me, syntax-wise at least). Continue on in the process wizard and when it gets to where it wants to know if there is a condition, see the dropdown When Button Pressed - you'll want to select the button from step 1.
3) Then, depending on what you want it to do next you would provide a branch - it could be a branch back to the same page refreshing the data with the new status or move on to another page.
Are these the steps you followed?
Hope this helps,
John

Similar Messages

  • Can I update Customer specific fields with BAP_PO_CHANGE

    Using 4.7 and APO 4.0. We're having to create multiple schedule lines (EKET) for PO Items for TP/VS functionallity. I've found a neat trick for doing this by using BADI ME_PURCHDOC_POSTED to trigger an FM in a new task.
    This FM waits until PO is unlocked and then uses BADI_PO_CHANGE to "split" the schedule lines. However I'm having trouble finding an easy way to populate new customer (Z) fields on the Schedule Line at the same time.
    Any Ideas??? 
    Thanks
    Charles

    excuse me - I'm using BAPI_PO CHANGE not BADI.
    Thanks again

  • Issue in Updating Customer specific fields in WBS using BAPI_BUS2054_CREATE_MULTI

    Hi Experts,
    I am able to create the WBS element using BAPI_BUS2054_CREATE_MULTI.But the issue is i am not able to update customer specific fields even after passing the fields as per specification in Function module documentation. I have also created an implementation of BADI  as per below specification in FM documentation:
    Procedure for Filling Standard Enhancements
    Before you call the BAPI for each object that is to be created or changed,
    for which you want to enter customer-specific table enhancement fields, add a
    data record to the container ExtensionIn:
    STRUCTURE:    Name of the corresponding help structure
    VALUEPART1:   Key of the object + start of the data part
    VALUEPART2-4: If required, the continuation of the data part
    VALUPART1 to VALUPART4 are therefore filled consecutively, first with the
    keys that identify the table rows and then with the values of the
    customer-specific fields. By structuring the container in this way, it is
    possible to transfer its content with one MOVE command to the structure of the
    BAPI table extension.
    Note that when objects are changed, all fields of the enhancements are
    overwritten (as opposed to the standard fields, where only those fields for
    which the respective update indicator is set are changed). Therefore, even if
    you only want to change one field, all the fields that you transfer in
    ExtensionIn must be filled.
    Checks and Further Processing
    Using the methods ...CREATE_EXIT1 or. ...CHANGE_EXIT1 of the BAdI
    BAPIEXT_BUS2001, BAPIEXT_BUS2002, and BAPIEXT_BUS2054, you can check the entered
    values (and/or carry out other checks).
    In the BAdI's second method, you can program that the data transferred to the
    BAPI is processed further (if you only want to transfer the fields of the CI
    includes, no more action is required here).
    But still i am unable to update fields though i am able to create WBS with rest of the fields except  custom fields.
    I am using attached code to achieve this.Do we need to code anything inside method create_exit1 or create_exit2 implementation for BADI or
    Please help on priority

    Hi Rahul,
    First observation from your code is that i could not find the assignment for the field
    GWA_WBS_EXTIN-STRUCTURE. I hope you are not filling this field, that could be one reason for failure. Try to do it and let us know if you still have the problem.
    Br..
    Dwaraka

  • Can I insert into a form build in FORMSCENTRAL, a Formula with the numerical data that are updated by a given formula, like in Excel?

    Can I insert into a form build in FORMSCENTRAL, a Formula with the numerical data that are updated by a given formula, like in Excel?

    Hello danna,
    please have a look there as a first step: http://helpx.adobe.com/acrobat-com/formscentral/topics.html  >>> Formula syntax for built-in functions  >>> http://helpx.adobe.com/acrobat-com/formscentral/help/formula-syntax-built-in-functions.htm l
    Hans-Günter

  • BP extend : how to use FM to update customer specific fields ?

    Hello
    I'm working on a CRM 2007 project and for customer needs, the BP data have been extent with specific fields using EEWB. So specific FMs have been automatically generated to manage the specific data. We want to use these FM to maintain the values of the specific fields. In the EEWB transaction, in the Task BUPA_API for the specific object, 2 FMs have been generated : ZZ1XO_BUPA_MAINTAIN and  ZZ1XO_BUPA_MNTN_ALL : we suppose we have to use these FMs to update the values fo this object. This object (customer specific data) is time dependent with gaps and multiple instance. We tried to use these 2 FMs to update values but it does not work : anybody has already used this kind of FMs ?
    Thanks to all.

    Jerome,
    Normally I use the FM modules generated by the EEWB that contain API to update the data.  However keep in mind if this is a Z-Table and you don't like what is provided, then add your own BAPI modules to the BDT function group to update the data.
    Take care,
    Stephen

  • How to use customer-specific fields with FI-CA event 940?

    The following text can be found under FI-CA event 940:
    You can also set customer-specific fields if you have defined the predefined include for customer enhancements CI_FKK_ACCIT_CUS in the structure FKK_ACCIT_CUS. The fields included here must have the same field name as the fields included in the structure ACCIT. These can also originate from an enhancement of the coding block in General Ledger Accounting. The fields Reservation Class and Reservation Key of the reconciliation key and the totals record are available as import parameters.
    My requirement is to populate the field HZUON in this event, which will be called when running t-code FPG1 (Transfer of FI-CA total records to general ledger)
    The problem is the fact that the output of the event (i.e. output of function module FKK_SAMPLE_0940 at first) only have the following fields:
    E_ZUONR     LIKE     ACCIT-ZUONR     Zuordnung (BSEG-ZUONR)
    E_XREF2     LIKE     ACCIT-XREF2     Referenz  (BSEG-XREF2)
    E_SGTXT     LIKE     ACCIT-SGTXT     Positionstext
    E_BUPLA     LIKE     ACCIT-BUPLA     Businnes Place (Korea only)
    I tried adding a new field to structure CI_FKK_ACCIT_CUS and adding this field to the output of the event 940, but how do I ensure that the content of the field will be used to populate the HZUON field of the FI document during "transfer of FI-CA total records to general ledger"?
    Cheers,
    Teo

    Hi Teo,
    I happened to see this post from you when I searched for a similar scenario related to event 940. I also need to add two fields in CI_FKK_ACCIT_CUS and make these fields as outputof the event. Did you come across any solution for the same? If so, can you please share.
    Regards,
    Harikumar. S
    Edited by: Harikumar Sasidharan on Dec 30, 2009 12:14 PM

  • Using "Update All Mapped Fields" with multi-value attributes

    Is it possible to update a value in a multi-value attribute through the import manager?  It appears that if a source value is different then it just gets added as another value to the record.
    For example, a product has an attribute of speed which is measured in revolutions/minute. Some products can be rated at two speeds (i.e. 1800/3600).
    I created a numeric attribute for speed and enable only nominal rating and selected multi-valued.
    In import manager, I set "/" as multi delimiter for source field.  This created two entries in destination attribute, 1800 and 3600. 
    However, if on subsequent imports the speed values changes for this record (i.e. 1200 and 1800) then I will now have 1200, 1800, and 3600 as values for this record.
    Would the proper solution be to create two individual numeric attributes that are single valued (i.e. Speed1 and Speed2)?

    Hi Aaron,
    in your example it would make sense to use two different attributes called "Speed1" and "Speed2". Using the multi value option, MDM allows you to store a list of values into a single field. This list is more or less unlimited, you can add as many values as you like. A change of an existing value is not possible. The reason is that Import Manager does not know, which value you've changed! So it simply adds the "new" record (which is the 1200 in your example) to your value list. This is the intended behaviour of the "update all mapped fields option". If you really want to replace the values, you can check if the "Replace" option is useable for you. But note, that the replace will replace the complete existing record with the incoming new one. This means if the product you want to import with the replace option is smaller than the existing one (maybe it does not contain values for all segments), you'll loose data in MDM.
    BR Michael

  • Specific Field Selection for Master data

    Hi Gurus,
    I am looking for a master data field which is suitable to my requirement.
    Requirement : We have GL accounts and loading data into Hyperion. in Hyperion they are doing data summarising GL Accounts to FRP Codes. Lets say we have 2000 GL account and they are reducing to 150 FRP Codes. This FRP contains different description as well. Mapping between GL account and FRP Codes is in Flat File, right now we want to upload FRP values thru this flat file but in the future when we create new GL Account using FS00 we need to update FRP Codes in the respective master data fields.
    We have SKA1 and SKB1 (GL account master data tables). Please some tell me which are the field in this tables or any other tables use for my requirement. My client dont want to go for Generic. I m not FI consultant......
    Thanks
    Ganesh.

    Do you want to maintain GL Account - FRP Code data  ..? or Just FRP Codes from Flat Files.
    If it is just FRP Codes from flat file then when you create InfoObject for FRP code, also create data flow and load the FRP values
    My recommendation here is that, instead of maintaining seperatly for GL Account and FRP codes combinations, I am suggesting you go by adding FRP code to 0GL_ACCOUNT infoObject.
    when you maintain Enhancement in the R/3 system where you do look up in SKA1 or SKB1 tables ..we are straight way getting even FRP Code from R/3 system. So, when a new GL Account records is extracted to BI system, you also bring the FRP Code for that GL Account (as it populated in the code)
    Hope I have said you need otherwise, please give a detail on how you want to maintain with an example..
    Regards,Vj

  • Looking for a form in the VIS demo database with lots of data

    Hi all,
    I am looking for a form in the VIS demo database (that ships with Oracle Applications) that contains a lot (1 MB or more) of data. Specifically, when I perform some type of search in the form, I would like more than 1 MB of data to be transferred over the network to the client.
    With Oracle Applications 11i, I was using this form: CRM Resource Manager, Vision Enterprises → Resources
    This was nice because searching for all resources resulted in 4.6 MB of data being sent by the server. However, in Oracle Applications R12, the same query in the same form only sends about 100 KB of data. :-(
    Does anyone know any other forms that have lots of data in them?
    - Kyle

    Thanks for that - I found the form. However, it appears the database table is empty - when I perform a search for all jobs, no records are returned.Nevermind, after some trial and error I found a site that had lots of jobs defined. Thanks for the pointer!
    I'm still running into the same problem I was seeing with the previous form I was using. This is what I'm doing:
    1. Open the form.
    2. Search for all records.
    3. Jump to the very last record.
    In Oracle Applications 11i, this would cause a large amount of data to be transferred over the network (4.6 MB for the previous form I was using and 2.6 MB for this new "Discrete Jobs" form I'm trying). However, the behavior is different in Oracle Applications R12. When I perform the same steps in the same forms, only a fraction of the data is transferred over the network (~100 KB).
    Ideally, I would like a set of steps (and a form) that will produce the same results in both 11i and R12. More realistically, I just need a form (or a new test procedure) in R12 that will spit out more than 1 MB of data.

  • How to mention User specific fileshare as Hard coded value in DB table

    I have a scenario like whenever the user clicks on Print, the application will generate a temp file Temp.txt and place it in fileshare location that is given in Database hard coded value as C:\Test, The problem here is when more than one user clicks on print button, the second user is getting error, as the same file is being used by first user.
    To save the temp file, I want to mention a locaton something like "C:\Documents and Settings\<User Id>" where <user Id> will be '0001' for user one and '0002' for user two. (0001 and 0002 are suppose to be the user login name within the organisation). Is there anyway to specify the user id of the active user as a hard coded value?

    take the output of select user from dual; in a variable and then append that either with file name or with directory location..

  • Capture a specific window with all the data even those that is not shown

    Hi,
    I want to capture a specific windows with all of its data, even the data that is not shown and the user have to scroll dpwn to see it.
    i already did and manged to capture all of the screen with the Robot class, but i need more.
    thanks,
    Eitan.

    Hi,
    I want to capture a specific windows with all of its data, even the data that is not shown and the user have to scroll dpwn to see it.
    i already did and manged to capture all of the screen with the Robot class, but i need more.
    thanks,
    Eitan.

  • Can't use the "send by e-mail" button on forms created in Acrobat Pro 9 with Firefox

    I created a form in Acrobat Pro 9.5.2 with a "send by e-mail" button as usual (not using LiveCycle Designer). Since a few months, users cannot send forms using that button USING FIREFOX works fine in Explorer. I've been creating and using those forms since 2 years whitout any problems but now this is A BIG PROBLEM for our office as all our reservation forms uses this technology.
    Steps to reproduce bug:
    1. create a form using Acrobat Pro. add an action button " send a form". send the Entire PDF form not just FDF. go in advance tool to give all rights to end-users (in French it's "étendre les fonctions d'adobe reader" I think it’s enable the usage rights for Reader ion English.)
    2.publishing the form on my website (or send by e-mail to someone who use reader)
    3. filling the form
    Results:
    when the user fill the form he can't send it by e-mail using the button. Nothing happens when hitting that button. It is not possible to save the document as well. Nothing can be done, not even printing or saving it. I've tried almost all browsers I know and nothing works.
    Expected results:
    the form should be send by e-mail (as an attachment in general) like before. please help me! this is really important, our office have a lot of calls and we are just 2 people here (non-profit organization). should we buy Acrobat Pro X ?
    I can send you the form, my e-mail is rgelinas at canadianclub-montreal dot ca
    thanks all!

    When your customers opened the PDF form (which was as an email attachment) on iPads, it is highly likely that Apple Mail (not Adobe Reader for iOS) was displaying the preview of the PDF form.   Please note that Apple products on iPad/iPhone (e.g. Apple Mail, iBooks, Safari) do not render field contents or annotations (sticky notes, highlight, underline, strikeout, freehand drawing, etc.) in PDF documents.
    The Mail sections of the following FAQ documents describe how to open PDF attachments in Adobe Reader for iOS.
    For iPad, see How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    For iPhone, see How to open PDF documents in Adobe Reader for iOS (iPhone on iOS 7 version)
    Please let us know if you have additional questions.

  • Xi; in the item in the form (itm is a db-field with Varchar2)

    Hello
    I'm looking for a solution for my problem.
    I have a form with one master-block and four detail-block. One item in a detail-block makes at time (shows in the field) [xi;] This field is a db-field varchar2 with the correct length look like the attribute in the table (scheduling by byte default, scheduling by null the same effect). After I maked the query, the field shows the right value in this field.
    I have this effect in an other Form with one master and one detail-block with one item in the master-block.
    Can anyone give me the answer what is the problem and how can I solution this problem.
    Client Windows XP
    App-Server VMS with Apache
    Forms 9.0.2
    DB 9.2
    Thank's for your help
    René

    Yes you just add an edit text box to the form and bind it to the UDF.
    Dim oItem As SAPbouiCOM.Item
    oItem = oForm.Items.Add("TextBox1", BoFormItemTypes.it_EDIT)
    'You will need to adjust these values to position it correctly
    oItem.Left = 5
    oItem.Width = 65
    oItem.Top = 50
    oItem.Height = 19
    Dim oEdit As SAPbouiCOM.EditText
    oEdit = oItem.Specific
    oEdit.DataBind.SetBound(True, "OCRD", "U_Test")

  • Linking specific fields with signature

    I am new to this so please forgive my ignorance...I have a form that I created with Designer 7.1 and it has 5 different sections on it each with its own signature object. How can I or am I even able to link the signature of each section with the objects(text fields, check boxes, etc) in that section. So when you sign that section, that section then becomes read only. This way the form is able to pass between 5 different people who all need to sign the form.

    Unfortunately, all I have is view access to these tables.  When I click "add command" and put in working SQL I get this error message.
    "Only an ET or null statement is legal after a DDL Statement" The sql that I am adding works just fine in the TeraData SQL Assistant and figured just adding it in as a sql command would work.
    In a previous post on a TeraData forum I saw something referring to the addition of a BEGIN TRANSACTION simple sql END TRANSACTION; DDL;
    What am I doing wrong and can this be remedied?
    Here is the help I received in the Teradata forum
    " I am not familiar with Crystal Reports but I can tell you what the message means.
    Your session is running in BTET mode and you have started a transaction (BT;), or Crystal Reports did. Then you/it submitted a DDL statement (database Data_DB). Then you/it submitted the select statement in the same transaction. You need terminate the transaction after the database statement (ET;). All DDL statements have to run as a single transaction. You might want to determine why Crystal Reports is running everything as one transaction. Maybe there is an option to generate each statement as a single transaction. That is what SQL Assistant is doing for you. "
    Has anyone experienced this message and know a way around it?
    Thank you.

  • How to get keyboard cursor on specific field with a condition

    I am using forms6i. i have two fields 1st field1 and field2. I want that when field1='A' then keyboard cursor go to field2 else it must automatically skip the field2. and the condition is that the trigger must not be key-next-item, because if this process completed or not we have to go to next record and to save it.How is this possible???

    Depending on how your users navigate your application (mostly keyboard or combination of keyboard and mouse) the Key-Next-Item (KNI) trigger will not file if the user uses the mouse to leave Field1. Rather than use the KNI trigger I suggest you use a combination of the When-Validate-Item (WVI) and the Module/Form level When-Timer-Expired (WTE) triggers. This ensures no matter how your user leaves Field1 that the navigation cursor will go to Field2 if the value of field1 is 'A'. For example:
    /* Sample WVI trigger */
    DECLARE
       timer_id   TIMER;
    BEGIN
       IF ( :FIELD1 = 'A' ) THEN
          Create_Timer('GOTO_FIELDB',1,NO_REPEAT);
       END IF;
    END;This code creates a 1 millisecond timer which will execute immediately so there is no lag in your application. Also, since it is a 1 millisecond timer, it will not cause a network trip to the application server.
    /* Sample WTE trigger */
    /* This is a Module/Form level trigger */
    DECLARE
       v_Timer   VARCHAR2(30) := Get_Application_Property(TIMER_NAME);
    BEGIN
       IF ( v_timer = 'GOTO_FIELDB' ) THEN
          Go_Item('FIELDB');
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Output error in smart forms

    I am facing a typical problem in rendering output from smart forms to pdf. The program was working fine before , now after some patch application the output is not comming , it shows " A Drawing Error Occured" Regards

  • Embedded m4v, avi and mov did not load, when published to server

    Hi there, today I created a new webpage, for the first time with iWeb. It work perfect on my mac including embedded movies. When I published it to my server, all pages loaded fine, but the movies did not. They started a bit and then everything ended

  • RFC_ERROR_SYSTEM_FAILURE during inbound processing

    Hi, I am getting below error while using startrfc for inbound processing. RFC Call/Exception: SYSTEM_FAILURE Group       Error group 104 Key         RFC_ERROR_SYSTEM_FAILURE Message     Port 'SAPCC4' does not exist in the table of port descriptions I

  • Non Valuated - Sales order costing

    Hello All, We are planning to use Non Valuated - Sales order costing for our client. My understanding is as follows :- 1. Production order is automatically created from Sales order created (for ex item 010 - Material X) : Production order 1 2. Sub- p

  • Can't get png IE fix to work

    hi everyone. i'm doing a new site and decided to go with pngs for my topper graphic with transparency since gif is supposedly dead, or whatever. i searched here and the web for a good fix for IE6- and decided on Supersleight http://24ways.org/2007/su