Form Personalization Execute SQL Update

I have a requirement where based on changes in one form (say based on table1), I want to run sql "to update" records in another table (table2). Basically sync table 2 when record status changes in table 1. I want to do it with form personalization (when validate record trigger).
How to execute such sql statement and commit using form personalization? any suggestion?
Thanks

Pl post full versions of OS and EBS. See if the examples in these MOS Docs can help
279034.1 - Information About the Oracle Applications Form Personalization Feature in 11i
395117.1 - Form Personalizations in Oracle E-Business Suite (Release 12)
Pl also see this related thread - Re: Oracle Forms Personalization
HTH
Srini

Similar Messages

  • Form Personalization Executing a Built-in

    I am trying to call a procedure through the form personalize, but I can put parameters.
    This is what I am trying to do:
    JE_UBS_BU_BILLING.UPDATE_PAYMENT_DOCUMENT(${item.app_folder.customer_trx_id.value}|)
    What I am doing wrong?
    Thanks.

    Can you create a view on the remote database? If so
    CREATE VIEW rowtohex_view
    AS
    SELECT ROWTOHEX(column_name)
      FROM table_nameThen you can refer to this view over the database link.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • AXL execute SQL update

    Is there a way to fire off an update query like:
    Update devices set description = 'A' where description = 'B'
    I get a "no update permission" error.
    Yes, this a bad idea for many reasons, but I'm not willing to let that stop me, at least in this lab/test scenario...

    Thanks for the response Stephan and s. Sorry - the original post had a typo. I was using the proper table name.
    I didn't realize that there was a command line option. I've been avoiding the command line because I don't know too much about it. The command line option worked:
    admin:run sql update device set description= "Test" where name="SEP000000032081"
    Rows: 1
    admin:
    Of course this morning, I get something totally different from AXL (but these are the actual reuest and response envelopes):
    sent:
    http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    update device set description= 'Test' where name='SEP001BD458B533'
    received:
    http://schemas.xmlsoap.org/soap/envelope/"
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    SOAP-ENV:Client
    Method only for queries
    http://www.cisco.com/AXL/API/1.0">
    -79750
    Method only for queries
    executeSQLQuery

  • Oracle Form Personalization Execute Procedure Passing Multiple Parameters

    Hello,
    I am calling database procedure into the Form Personlization, I am getting please have a look into the following Syntax.
    Oracle 11i
    ='BEGIN
    XX_P_PA_UPDATE_TASKS('''||${item.TASKS.TASK_ID.value}||''','''||${item.TASKS.PROJECT_ID.value}||''' ,'''||${item.TASKS.BILLABLE_FLAG.value}||''';
    END;'
    Thanks
    Ed

    I found the Error, The error is at the End, extra PIPE Sign. But Procedure is still not calling, how to find out that procedure execute.
    ='BEGIN
    XX_P_PA_UPDATE_TASKS('''||${item.TASKS.TASK_ID.value}||''','''||${item.TASKS.PROJECT_ID.value}||''' ,'''||${item.TASKS.BILLABLE_FLAG.value}''';
    END;'

  • Error when calling procedure from form personalization

    Hi every body
    I want to call a procudre using form personalization . I made the procedure and in form personalization i call it as follow:
    built in type : Execute a Procedure
    Argument :
    ='GAZ_EMP_ASSIGN_UPDATE(' || :ASSGT.ORGANIZATION_ID || ', ' || :ASSGT.ASSIGNMENT_ID || ', ' || FND_PROFILE.VALUE('USER_ID') || ', ' || FND_PROFILE.VALUE('DB_SESSION_ID') ||' )'
    but the following error raised when i click on Apply Now button :
    the string (='GAZ_EMP_ASSIGN_UPDATE(' || :ASSGT.ORGANIZATION_ID || ', ' || :ASSGT.ASSIGNMENT_ID || ', ' || FND_PROFILE.VALUE('USER_ID') || ', ' || FND_PROFILE.VALUE('DB_SESSION_ID') ||' )' )
    couldn't be evaluated because of error ORA-06550 :line 1 , column 43
    PLS-00103:encountered the symbol ")" while expecting one of the folowing (- + ...... etc
    can anyone have a solution to this problem because it made me mad .(urgent)
    Or if anyone have another way to call the procedure ??
    Note that i want to pass db_session_id to the procedure from the application so does anyone have a complian about the way of passing this parameter to the procedure ??

    See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674

  • Execute SQL Task does not Update from a Date Variable Reliably

    I'm using a DateTime variable in SSIS 2008 that is used to set the SQLStatement property of an Execute SQL Task.
    "DELETE FROM Labor WHERE Week = '" + (DT_WSTR, 100) @[User::Week] + "'"
    Week is the next Sunday:
    DATEADD( "day", @[User::DaysTillSunday] , @[User::TheDayThatIsTwentyMinutesPrior] )
    DaysTillSunday:
    DATEPART( "dw", @[User::TheDayThatIsTwentyMinutesPrior] ) == 1 ? 0 : 8 - DATEPART( "dw", @[User::TheDayThatIsTwentyMinutesPrior] )
    TheDayThatIsTwentyMinutesPrior:
    (DT_DATE)(DT_DBDATE)DATEADD("minute",-20,GETDATE())
    The SSIS Package deletes the current week's data, reloads it with fresh data, then calculates the difference between the current week and last week.
    The problem is that randomly, instead of deleting the current week, it will delete the previous week.  This happens maybe 5-10% of the time.  At least it does until I rebuild the package and import it into SQL Server again.
    I'm guessing that the Execute SQL Task is not updating the value of the Week variable before it executes.  I started with the source type being a variable.  Then I decided to try Direct input and pass in the Week as a parameter (OLE DB Connection
    Type).  That didn't work either.
    Most recently I tried writing the Week variable to a table first, then having a sequence container with all the tasks second.  Slightly better but I still saw the date was wrong 2 times in about 90 executions.  I was hoping that writing the Week
    variable out to the database would force an update of any associated connections to it, but that didn't seem to work.
    Any ideas?  Is this a known issue, am I missing a setting?
    thanks,
    John

    John, computers either work all the time or have a bug. I suspect it is the latter.
    To find it [faster] you need to log what the resulting expression was used in the package.
    I am baffled how rebuilding a package would fix anything like setting a date.
    It might be even dependant on when you run the package.
    Why
    DATEADD("minute",-20,GETDATE())
    DATEADD( "day", -8 , GETDATE() )
    It must be enough to set the week (that appears to be a date) as above.
    Arthur
    MyBlog
    Twitter

  • Avoid forms personalization/trigger during record update

    Hi all,
    I am trying to use forms personalization restrict users not to duplicate invoice numbers for a given supplier in Oracle Payables(Oracle Apps
    R 12.1.3).
    Here are my details,
    Trigger Event: WHEN-VALIDATE-RECORD
    Trigger Object: INV_SUM_FOLDER
    Condition: 0<(SELECT count(*) FROM ap_invoices_all WHERE invoice_num =:INV_SUM_FOLDER.INVOICE_NUM AND vendor_id = :INV_SUM_FOLDER.VENDOR_ID) AND :SYSTEM.RECORD_STATUS='INSERT'
    Processing Mode: Not in Enter-Query Mode
    Actions:
    Type: Message
    Message Type: Error
    Message Text: Duplicate Invoice Number
    This trigger shoud only for new record inserts so, I have used the condition, *:system.record_status = 'INSERT'* but this trigger is still firing during update of existing invoices, say when i wanna change terms for the AP invoice.
    I couldnt figure out where the error is, if anyone has any idea, please help.
    Thanks.
    Edited by: Kwin on Oct 10, 2012 9:12 AM
    Edited by: Kwin on Oct 10, 2012 9:21 AM

    You can have one more condition like
    0<(SELECT count(*) FROM ap_invoices_all WHERE invoice_num =:INV_SUM_FOLDER.INVOICE_NUM AND vendor_id = :INV_SUM_FOLDER.VENDOR_ID) AND :SYSTEM.RECORD_STATUS='INSERT'
    AND
    :INV_SUM_FOLDER.INVOICE_ID is null
    because Invoice Id will be not not null for existing Invocies and for new invoices , it will be null.
    Thanks
    Pradeep

  • Execute SQL Task - UPDATE or Data Flow Data Conversion

    Good Morning folks,
    I want to know which is more fast to convert data type.
    I want to convert nvarchar(255) to datetime2,
    using t-sql (execute sql task)
    UPDATE TBL
    SET  FIELD1= CAST(FIELD1AS DATETIME2)
    GO
    or data conversion(data flow)
    Thank..

    Itz Shailesh, my t-sql have only UPDATE, not many UPDATES... so it's one batch, no 2,3,4... So.. it's Only one update.. ex: update table set field1 = cast(field1 as datetime2), field2 = cast(field2 as datetime2). not : update table set field = cast(field
    as datetime2) go    update table set field2 = cast(field2 as datetime2) go.... understand?
    Yeah, I understand that you have to update just 1 field. What I am saying, if you have to update millions of rows then you must update rows in batches ( lets say batch of 50k). This way you will only touch 50k rows at a time and not all rows from table.
    I see that your rows are less however I would still prefer the option of data conversion transformation over update statement.
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • Forms Personalization: FRM-41017- Cannot set UPDATE ALLOWED attribute error

    Hey All,
    I have a requirement in Projects > Allocation > Allocation Rules which needs a few mandatory columns to be greyed out.
    I think that the form is not getting query-able because of the “FRM-41017- Cannot set UPDATE ALLOWED attribute of non-enabled item RULE.OFFSET_METHOD” error when we open the form.
    I was trying to set the required property to false for personalization’s done on mandatory columns and see if that can work in suppressing that error. But it did not.
    Can anyone help me by telling how to avoid this and make the form query-able?
    Any help is much appreciated.
    Thanks !

    Please post the details of the application release, database version and OS.
    Please see if (Capital Projects Form Personalizations Error- FRM-41017 [ID 1072660.1]) helps.
    Thanks,
    Hussein

  • Execute Procedure in Forms Personalization with 4 parameters

    Dear Friends,
    i want to use ( Execute Procedure ) in forms personalization of Absence Form and i want to pass 4 parameters to the procedure (2 date and 2 number datatype)
    but i failed so far in writing this so please help me to write this
    my code look like this :
    =' begin
    XX_HR_CALL_REPORTS('''${ABA.ABSENCE_DAYS.value} ''','''||
    ${ABA.DATE_START.value}||''','''||${ACCRUALS.AFTER_NET_ENTITLEMENT.value}||''','''||
    ${ABA.DATE_END.value}||'''
    end
    Thank & Regards,
    Yas

    No Replies ? Is this an irrelevant question or I posted into wrong forum ??

  • Execute Sql Server Procedure from Oracle Forms

    Hi,
    I have Forms6i and need to create a form that execute a procedure in a SQL Server Database. This procedure inserts records retrieves from our Oracle Database (i passed the fields as parameters of the SQL Server procedure).
    What did i need to do to achieve this task.-
    Thanks in advance.-

    See
    http://www.oracle.com/technology/products/forms/pdf/275201.pdf
    Also search the forum and you will find discussions on this topic.
    Message was edited by:
    Mark Roberts

  • Query (insert, update or delete) that forms fire to SQL when we click save

    I want to see the query (insert, update or delete) that forms fire to SQL when I click the save button. I am using a master-detail form.
    Could you tell me how can I do it?

    after the commit_form
    you should call a built-in :system.last-query
    :system.last_query will show the query that you have recently perform.

  • Forms Personalizations for Scheduling Organizer: update Promise Date

    Hi,
    we are using the "Scheduling Organizer" for reviewing lists of order lines. This is the Order Organizer in the search mode click on tab "Scheduling".
    In this form I want to display the field Promise Date and allow changes. I managed to show the field, but the field is read-only per default. I thought that I can change this maybe with forms personalizations (set update_allowed to TRUE) but this does not help. Now the field is not read-only anymore, but my changes in that field are not saved to the database.
    Does anyone know if that is possible? To make this field from read-only to updateable?
    Thanks,
    David.

    David,
    I understand that you want to be able to just click the relevant row in the Organizer and change the promise date directly but I don't think that's designed into the functionality of the form.
    Have you considered clicking on the lines you want to change to a particular promise date (usual trick - CTRL+click, SHIFT+click as appropriate) and then going to Tools > Mass Change? This works very well but has the significant drawback that you have to select more than one row each time or Oracle doesn't deem it to be a 'mass' change.
    Regards,
    Jon

  • Problem in Form personalization of FA module of Quick Additions

    Hi Experts,
    Version : 12.1.1
    I am doing a form personalization in Quick additions of FA module.
    I have registered a concurrent as PL SQL procedure. The procedure updates the asset number as per our requirement once the asset gets added.
    To achieve this I have created a procedure to submit the concurrent request and executed the procedure as follows in form personalization:
    Condition:
    1) Trigger Event=> When Validate record
    2) Trigger Object => Addition Dist
    Actions:
    1) Type => Buitin
    2) Builtin Type => Execute a Procedure
    3)Argument => 'begin proc_name end'
    The problem is concurrent is being executed seven times,
    Please suggest me your valuable solutions as soon as possible.

    Hi,
    In PBO write like this.
    Module SET_NAME_OF_SCREEN_PBO.
    THEN INSIDE THE MODULE WRITE
    Module SET_NAME_OF_SCREEN_PBO OUTPUT.
    DATA PROCESS TYPE STRING.
    IF SY-TCODE EQ 'ZPURCR_22609'.
    PROCESS = 'CREATE'.
    ENDIF.
    IF SY-TCODE EQ 'ZPURCHG_22609'.
    PROCESS = 'CHANGE'.
    ENDIF.
    IF SY-TCODE EQ 'ZPURDIS_22609'.
    PROCESS = 'DISPLAY'.
    ENDIF.
    ENDMODULE.
    Regards
    Sandipan

  • Form on a SQL Query - doesn't work with SELECT * - bug or feature ?

    When I do this,
    Create Page -> Page with Component -> Form -> Form on a SQL Query -> SELECT * FROM EMP
    I do not get any items displayed and it creates a simple HTML region / page. Do we have to necessarily specify the column names ?
    Iam looking at a way to see if any addition of columns in the table does not involve IT intervention in recreating the form.
    When we try to create with Form on a SQL Query, then shouldn't it be similar to the Report where the same thing works, if I give SELECT function_returning_columns() from DUAL even then the same thing happens where it creates an ITEM called functions_returning_columns() it creates HTML region
    I asked a related question with no answer :-( in
    Dynamic Creation of Items in Runtime through Application UI

    Hi Marc,
    Thanks. I just tried something like this. Taking the EMP table example, (it doesn't matter which table), I created a region based on a Pl/Sql function returning SQL query
    ( I selected the vertical report template including nulls to display it like a form ) :
    DECLARE
    v_sql VARCHAR2(3000) ;
    mn_idx NUMBER := 1 ;
    BEGIN
    v_sql := 'SELECT ' ;
    FOR recs IN (SELECT * FROM ALL_TAB_COLUMNS WHERE TABLE_NAME = 'EMP' ORDER BY COLUMN_ID)
    LOOP
    v_sql := v_sql || 'HTMLDB_ITEM.TEXT(' || mn_idx || ',' ||
    recs.column_name || ') ' || recs.column_name || ', ' ;
    mn_idx := mn_idx + 1 ;
    END LOOP ;
    v_sql := SUBSTR(v_sql, 1, LENGTH(v_sql) -2) ;
    v_sql := v_sql || ' FROM EMP WHERE EMPNO = 7369 ORDER BY 1 ' ;
    RETURN v_sql ;
    END ;
    This allowed me to do my updates etc.., Then I created a button called 'Apply' and a process called 'update_changes' on button click and defined this:
    DECLARE
    v_sql varchar2(1000) ;
    mn_ctr NUMBER := 1 ;
    BEGIN
    v_sql := 'BEGIN UPDATE EMP SET ' ;
    FOR recs IN (select COLUMN_ID, COLUMN_NAME, DATA_TYPE
    from all_tab_columns where table_name = 'EMP'
    ORDER BY COLUMN_ID) loop
    -- Make changes here if required- this is assuming 9 columns --
    v_sql := v_sql || recs.column_name || ' = HTMLDB_APPLICATION.G_F0' || mn_ctr || '(1),' ;
    mn_ctr := mn_ctr + 1;
    end loop ;
    v_sql := substr(v_sql, 1, length(v_sql) - 1) ;
    v_sql := v_sql || ' WHERE EMPNO = 7369; END ;' ;
    execute immediate (v_sql) ;
    END ;
    Since this is for example, I didn't include code for Checksum and hardcoded empno = condition and have provision for 9 columns. I made some changes and tried saving it and I was able to do it.
    I altered the table to add a column / drop a column and when I relogin, Iam able to see the changes.
    Can you tell me if there could be any drawbacks in this approach ?.

Maybe you are looking for