Multiple Conditional Processes on Submit - Confused!

I have a Form Page based on a table where the user can update the data. I want to capture changes in a history table.
Simplified, the tables are:
Table PKey Varchar Columns
UPDATEABLETABLE ID1 TEXT1 TEXT2
HISTORYTABLE ID1 DESCRIPTION
In addition to the automatic row update process I created 2 conditional processes:
Process UpdateText1
Source: INSERT INTO HISTORYTABLE (DESCRIPTION) VALUES ('TEXT1 Changed to ' || :P1_TEXT1);
Process Point : On Submit - After Computations and Validations
Condition: Type: Value of Item in Expression 1 != Expression2
Expression 1: SELECT TEXT1 FROM UPDATEABLETABLE WHERE ID1 = :P1_ID1
Expression 2: : P1_TEXT1
Process UpdateText2
Source: INSERT INTO HISTORYTABLE (DESCRIPTION) VALUES ('TEXT2 Changed to ' || :P1_TEXT2);
Process Point : On Submit - After Computations and Validations
Condition: Type: Value of Item in Expression 1 != Expression2
Expression 1: SELECT TEXT2 FROM UPDATEABLETABLE WHERE ID1 = :P1_ID1
Expression 2: :P1_TEXT2
The issue is that if I only change 1 item (either one), both items return a line to HISTORYTABLE. Only if there are no changes or If both have changed I get the expected result.
I've tried changing the Process Point and sequences, etc. without any improvement.
Any ideas gratefully received!
Edited by: user7258268 on 05-Jun-2009 08:14

Hello:
If you just need to track changes to a record without needing to know what field in the record was changed a simply 'MINUS' query will work to insert the changed record into the history table.
insert into history_table
select col1, col2, col3, col4... from tab where pk=:P_pk
minus
select :p_col1,:p_col2,:p_col3... from dual     // p_col1,p_col2.. are page items corresponding to col1,col2...The above code is in a 'After Submit' page process that fires before the 'Automatic Row Processing (DML) ' process
Varad

Similar Messages

  • Multiple conditions in a filter of Bursting control file

    Hi All,
    I am trying to use multiple conditions in a filter of Bursting control file and it throws me an error.
    Can you please correct me on this.
    <xapi:template type="rtf" location="xdo://AR.XXRAXINVOPCO.en.00?getSource=true" filter=".//G_INVOICE[BILL_CUST_NAME='ABC COMPANY'] and .//G_INVOICE[BILL_CUST_NAME='ABC COMPANY']">
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I have made little progress and now I am able to connect to the printer but its not printing.It prints a blank paper saying this printer is not setup for direct PDF printing.Can anyone help?
    [073112_025517889][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] initConfig(): loading default properties :{TEMP_DIR:String=/usr/tmp, BUFFERING_MODE:Boolean=true}
    [073112_025517890][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): called with request type :ipp_printer
    [073112_025517890][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): exiting
    [073112_025517890][][STATEMENT] status message:
    [073112_025517890][][STATEMENT] xdo.bursting.IPP_RESPONSE_CHECK_INTERVAL=null
    [073112_025517890][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Called
    [073112_025517890][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] setDefaultServerProperties(): Default properties of server 'xslcisd2' are loaded. {URI:String=ipp://xslcisd2.southernco.com/ipp, server-type=ipp_printer}
    [073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] setDefaultServerProperties(): properties defined in this request.
    [TEMP_DIR:String] [usr/tmp/073112_025446100]
    [server-type] [ipp_printer]
    [ASYNC_CHECK_INTERVAL:Integer] [60000]
    [SERVER_NAME:String] [xslcisd2]
    [IPP_ATTRIBUTE_CHARSET:String] [utf-8]
    [IPP_DOCUMENT_FORMAT:String] [application/octet-stream]
    [BUFFERING_MODE:Boolean] [true]
    [IPP_USE_CHUNKED_BODY:String] [true]
    [URI:String] [ipp://xslcisd2.southernco.com/ipp]
    [IPP_HTTP_RESPONSE_CHECK_INTERVAL:Integer] [0]
    [TEMP_FILE_PREFIX:String] [dlvr]
    [IPP_COPIES:Integer] [1]
    [RETRY:Integer] [0]
    [RETRY_INTERVAL:Integer] [60000]
    [TEMP_FILE_SUFFIX:String] [.tmp]
    [IPP_USE_FULL_URL:String] [false]
    [ASYNC_TIMEOUT:Integer] [86400000]
    [IPP_NATURAL_LANGUAGE:String] [en]
    [073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): BUFFERING_MODE is ON.
    [073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): TEMP_DIR found, start document buffering : /usr/tmp/073112_025446100
    [073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): Starting document buffering.
    [073112_025517893][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): Creating temporary file for buffering : /usr/tmp/073112_025446100/dlvr67s66bXmwi8695010679275918372.tmp
    [073112_025517894][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): 69429 bytes have been written to the temporary file.
    [073112_025517894][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] filterDocument(): Starting document preprocessing.
    [073112_025517894][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] filterDocument(): No native command found for preprocessing, exiting.
    [073112_025517895][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): Finished document buffering.
    [073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Start reading the buffered document file. : /usr/tmp/073112_025446100/dlvr67s66bXmwi8695010679275918372.tmp
    [073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Calling DeliveryRequestHandler.submitRequest()
    [073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Called
    [073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Opening HTTP URL: http://xslcisd2.southernco.com/ipp
    [073112_025517904][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): IPP request dump:
    IPP version: 10
    operation id: 02
    charset: utf-8
    request id: 3
    -- operation attrs --
    [1]attributes-charset:utf-8
    [1]attributes-natural-language:en
    [1]printer-uri:ipp://xslcisd2.southernco.com/ipp
    [1]document-format:application/octet-stream
    -- printer attrs --
    -- job attrs --
    [1]copies:1
    [073112_025517904][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): HTTP chunked mode : true
    [073112_025517904][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): IPP request header length : 181
    [073112_025517905][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Opening HTTP client.
    [073112_025517905][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openRequest(request) called
    [073112_025517905][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openConnection() called - opening xslcisd2.southernco.com:80
    [073112_025517905][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openConnection(): Start non-SSL connection.
    [073112_025517908][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] generateRequestHeader() called.
    [073112_025517908][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] generateRequestHeader(): generated request header
    POST /ipp HTTP/1.1Host: xslcisd2.southernco.com
    User-Agent: Oracle XML Publisher 5.6.3
    Connection: Keep-Alive
    Transfer-Encoding: chunked
    Content-Type: application/ipp
    <<<
    [073112_025517909][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openRequest(): using ChunkedOutputStream.
    [073112_025517909][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Writing the document to the server stream.
    [073112_025518090][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): 69429 bytes have sent to the server.
    [073112_025518090][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] submitRequest() called
    [073112_025518122][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] submitRequest(): pIn.available(): 445
    [073112_025518122][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] Constructor called
    [073112_025518122][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse() called
    [073112_025518122][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] pIn.available(): 445
    [073112_025518123][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [HTTP/1.1 200 OK]
    [073112_025518123][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse() 1st line of response header: [HTTP/1.1 200 OK]
    [073112_025518124][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Content-Type: application/ipp]
    [073112_025518124][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [content-type][application/ipp]
    [073112_025518125][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Cache-Control: no-cache, no-store, must-revalidate]
    [073112_025518125][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [cache-control][no-cache, no-store, must-revalidate]
    [073112_025518126][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Expires: THU, 26 OCT 1995 00:00:00 GMT]
    [073112_025518126][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [expires][THU, 26 OCT 1995 00:00:00 GMT]
    [073112_025518127][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Content-Length: 242]
    [073112_025518127][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [content-length][242]
    [073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Server: Allegro-Software-RomPager/4.34]
    [073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [server][Allegro-Software-RomPager/4.34]
    [073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : []
    [073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse(): end of HTTP header
    [073112_025518133][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse(): HTTP response body ascii dump
    0x01 0x00 0x00 0x01 0x00 0x00 0x00 0x03 0x01 G 0x00 0x12 attributes-charset 0x00 0x05 utf-8H 0x00 0x1b attributes-natural-la
    nguage 0x00 0x05 en-us 0x05 ! 0x00 0x06 copies 0x00 0x04 0x00 0x00 0x00 0x01 0x02 E 0x00 0x07 job-uri 0x00 ,http://xslcisd2.so
    uthernco.com/ipp/IPP_Job_8! 0x00 0x06 job-id 0x00 0x04 0x00 0x00 0x00 0x08 # 0x00 0x09 job-state 0x00 0x04 0x00 0x00 0x00 0x03 D
    0x00 0x11 job-state-reasons 0x00 0x04 none! 0x00 0x1a number-of-intervening-jobs 0x00 0x04 0x00 0x00 0x00 0x04
    0x03 <<<
    [073112_025518133][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] Exiting Constructor
    [073112_025518133][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() called
    [073112_025518133][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() exiting
    [073112_025518133][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Closing HTTP client.
    [073112_025518134][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): IPP response dump:
    IPP version: 10
    operation id: 01
    charset: utf-8
    request id: 3
    -- operation attrs --
    [1]attributes-charset:utf-8
    [1]attributes-natural-language:en-us
    -- printer attrs --
    -- job attrs --
    [1]job-uri:http://xslcisd2.southernco.com/ipp/IPP_Job_8
    [1]job-id:8
    [1]job-state:3
    [1]job-state-reasons:none
    [1]number-of-intervening-jobs:4
    [073112_025518134][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Exiting submitRequest()
    [073112_025518134][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() called
    [073112_025518135][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() exiting
    [073112_025518135][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Finished calling DeliveryRequestHandler.submitRequest()
    [073112_025518135][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Process done successfully. Exiting submit()
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Why is my page running both these conditional processes?

    Could someone explain this to me please?
    I have 2 submit buttons on my page - let's call them Button1 and Button2.
    I have 2 After Submit page processes, let's call them Process1 and Process2. Process1 is is set to conditionally run if Button1 is clicked. Process2 is set to conditionally run if Button2 is clicked.
    When I click either button, both processes run. What's going on here? Is it something to do with where the processs being After Submit?
    Edit:
    Some further info, I just created a new page with the same layout as above and it works correctly. I noticed in the page with the problem that where it says "When Button Pressed (Process After Submit When this Button is Pressed)", Button1 and Button2 in the dropdown have stars in front of them (e.g. *Button1). What does this mean?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Cheers just realised that after a quick dabble. Everything's working fine now.
    Something to be aware of in future when using the 2 different region options for buttons. Strange that Apex doesn't automatically use different values for the button request, this one may catch a few people out I think!

  • Multiple conditions for the same button.

    Is there any way you can have multiple condition (same type of the condition).
    I have button that I would like to hide it at different stages.
    For example I would like to have a button (Submit) which will be visible when
    Status = Draft
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_STATUS
    Draft
    and when also when userRole = author
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_USER_ROLE
    Author
    Robert

    Hi,
    It would depend on when the fields get their values into the session. They may be below the button on the page but if they have a value in the session then the button's condition will see this.
    If, however, you have only used a Default Value setting for the item, the value may not be in the session (even though it may be displayed on the page), so the button will not know about this value. In these cases, I set the default value using a page computation for that item that runs "On Load Before Header" and is conditional on the item being null. That puts the value into the session for other items to use if required.
    Andy

  • Multiple condition : Error when starting a SWITCH branch

    Hi,
    In our Z Leave Workflow,I am facing the errors listed below.
    Error when starting a SWITCH branch
    Error during CASE evaluation in SWITCH mode for node 0000000158
    Operator 'EQ': The value of the left operand cannot be determined
    Error in the evaluation of expression '<???>&REQ.STATUS&' for item '1'
    Unable to determine the value of component ''
    It gives error in Multiple condition Request Approved? which is similar to standard WF12300111 node number 158 (u can say copy of WF12300111
    This multiple condition works in some scenario But it gives dump at other scenario .
    I have checked the value of REQ.STATUS in runtime. It populates the value as 'POSTED' in runtime,
    Please suggest if any solution on this.
    Regards,
    Kalpesh

    Hi There was some problem with task which was comprising class CL_PT_REQ_WF_ATTRIBS and APPROVE method. This method is to change the status of particular leave workitem.After running this particular task ,the status was not changin instantly.This method locks particular workitem and was releasing the workitem once the WF gets completed.Hence I was getting REQ.STATUS as sent.
    I have changed that task with following code in new task...
    DATA:
          REQUEST_ID TYPE PTARQ_DEDUCTION-REQUEST_ID,
    request      TYPE REF TO if_pt_req_request,
        new_status   TYPE tim_req_status.
      SWC_GET_ELEMENT CONTAINER 'REQUEST_ID' REQUEST_ID.
    CALL FUNCTION 'ENQUEUE_EPTREQ'
        EXPORTING
          mode_ptreq_header = 'E'
          request_id        = request_id
        EXCEPTIONS
          foreign_lock      = 1
          system_failure    = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
        MESSAGE w058(hrtim_abs_req) WITH request_id.
      ELSE.
    CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id = request_id
          IMPORTING
            ex_request    = request.
    execute state transition
        CALL METHOD request->initiate_state_transition
          EXPORTING
            im_transfer_event = 'APPROVE'
          IMPORTING
            ex_new_status     = new_status.
    COMMIT WORK.
        CALL FUNCTION 'DEQUEUE_EPTREQ'
          EXPORTING
            request_id = request_id.
    ENDIF.
    This will create new status for leave item during WF processing.
    Apart from that also added Wait for  2 minutes after that task....
    Thanks for your help.
    Regards,
    Kalpesh

  • Conditional Processing: Request is Contained within Expression 1

    I believe I have found a bug with the Process Conditional Processing logic, where "Request is Contained within Expression 1" is used.
    Here are three of the buttons that I have on my page:
    GET_RES_CIVIC_ADDR - This button is displayed among the Region Items (Region 2)
    CRE_RES_CIVIC_ADDR - This button is displayed among the Region Items (Region 2)
    ADD - Automatically created as part of a Tabular Form (Region 3 - Updateable Report).
    I have a process that is conditional on either GET_RES_CIVIC_ADDR or CRE_RES_CIVIC_ADDR being run (meaning the Process has its "Conditional Processing" "Condition Type" set to "Request Is Contained within Expression 1" and where "Expression 1" is set to "GET_RES_CIVIC_ADDR,CRE_RES_CIVIC_ADDR" (without the quotes).
    The problem I have encountered is that this Conditional Process also gets run if I submit the ADD Button. The reason being is that the word "ADD" is contained within the Expression 1 string "GET_RES_CIVIC_ADDR,CRE_RES_CIVIC_ADDR".
    Note that if I change the REQUEST value for these two Item Level Buttons to names that do not contain the word ADD, the problem is fixed.
    Is this a known bug? Or do I have to edit the value of Expression 1, so that each Button Name/Request Value is enclosed in quotes or the like?

    Scott,
    I was under the impression that the values in Expression 1 would be a list of comma delimited values (e.g. A,B,C and not ABC) and would be evaluated individually. However, you are correct. It is being evaluated as advertised.
    A note for others that have this problem - the evaluation of :REQUEST is Case Sensitive, so if the Item Level Button had been named 'Get_Res_Civic_Addr' (using Camel Case) instead of 'GET_RES_CIVIC_ADDR', (Upper Case), there would not have been a match with the 'ADD' Request and therefore the After-Submit process would not have been run by the ADD button.
    To prevent this in the future, we are going to standarise using the PL/SQL Expression Condition (checking :REQUEST) and also ensure that our Item Level Buttons "Request Value" is Camel Case (just an extra precaution).

  • Need to do conditional processing based on just-selected list item

    hi -- I have a vertical, unordered list. Each list item branches to a different page when selected.
    When the list item is selected, and before the branch happens, I need to do some conditional processing
    that depends on which list item was just selected.
    How can I get information about which list item was just selected?
    Thanks,
    Carol

    Carol - List items get rendered as links on the page so as soon as you click the link the browser goes there. You can't normally run a process on the current page by clicking that link. I suppose you could build each list item target (defined in the list item definition) to use javascript that submits the page, perhaps passing the item name as the "request" value. Then when the page is submitted, an after-submit process could do whatever you need it to and similarly a branch could be defined for each list item that would take the user to the intended page.
    Scott

  • Multiple conditions while taking export

    hi,
    when i'm trying to take export using multiple condition,
    < EXP query='where branch_code=0130 and loan_date> 01-jan-2005' file=d:\yyy tables=xxxxx>
    I get an error 'failed to process parameters'
    can anybody help me to solve this
    Regards

    hi satish
    this is the exact query
    EXP query='where branch_code=0130 and loan_date> 01-jan-2005' file=d:\yyy tables=xxxxx userid=zz/xxx@test
    server and client -9i

  • Multiple Conditions\Actions in a Workflow

    I am in the process of creating an expense approval form with a workflow that has two Approval stages. In the first stage, however, the approver would be dynamic based on a selection in the form. The second stage approval would go to the same
    person\group. What's the best\correct way to do multiple\conditions\actions in a single step? As an example of the workflow:
    If Field1 equals Value1 Assign a task to Person1. If Associated Task is Approved create a new Task and Assign it to Person 10
    there would be about 12 different iterations of the first step, Value2 Assign to Person 2 and so on.

    Hi pjs, it depends on who the person is/how they're related to the selection on the form. If it's the user's manager, you can get that information by using the link below. If there's no real correlation to the selection made, then you'd have to make a list
    with two columns- "selection" and "person to email." Then check that list against the selection and get the corresponding email for the particular approver.
    http://www.sharepointanalysthq.com/2011/04/user-profile-data-in-sharepoint-designer-workflows/
    cameron rautmann

  • Error in multiple condition type switch

    Hi,
    I define a multiple condition as a switch for different processing branches for my
    Workflow (all my attributes in the conditions are from the object).
    I defined the Other Values outcome also.
    When one of the conditions is true I received an error SWP103 "Error when starting a SWITCH branch"
    It works fine when my process go to "other" outcome.
    Thanks in Advance,
    Ronit.

    In my workflow the same error occured while using a mutliple condition with type Switch.
    A short explanation of my workflow:
    - container operation: errorcounter = errorcounter + 1
    - multiple condition
      1. errorcounter =< 4
      2. errorcounter = 5
      3. other values
    - activity
    - loop until (depending on outcome activity).
    The first time while executing the loop went perfect, but the second time it failed and based on the message I guess it failed on the multiple condition. What I also notices in the technical view was that the errorcounter wasn't updated.
    I guess the container operation and multiple condition bumped into eachother (somehow?) and caused the error.
    My solution:
    Put a wait stap between step 1 and 2 and it works fine.
    I'm not sure this case is applicable to you, but may be a hint in the right direction. Good luck!

  • Can we conditionally rename the "Submit" as "Next" in web determinations?

    Hi,
    We are using web determinations for data entry and we have multiple screens for multiple entities. Is it possible to rename the submit buttons in the first and intermediate screens as "Next" and only have the last "Submit" button named/displayed as "Submit".
    Thanks!
    Antara

    The first question here is "what is the +last+ screen".
    Generally, the last screen will change depending on what answers have been provided. This is because Web Determinations is clever, and stops asking questions when it knows the answers to all the goals on the summary screen (or it runs out of questions).
    You can force a particular last screen to always be displayed if you either:
    (a) Define a flow with a mandatory screen at the end of the interview, and use that flow as the goal, or
    (b) Have a summary screen goal that depends on a specific piece of data collected on a screen that is last in your screen order.
    If you have done one of these, then you can achieve what you want by:
    (1) Making the change Jasmine suggests to change the default Submit button text to "Next" AND
    (2) Edit the Web Determinations classes/templates/controls/ButtonControl.vm template to conditionally render the "submit" buttonClass with the value of "Submit", when it is being rendered in the context of the final question screen. You could do this for example by checking for #if ( {screen.getId().equals("<screenidgoeshere>"} ).
    Davin Fifield

  • Error on multiple condition

    Hello all
    I'm having trouble with a multiple condition. I have 4 possible outputs, but in one of them the workflow is terminated, and there is no any instruction set to do this. Any ideas on what is going on?.
    Regards IA

    Please analyse the Workflow Log and also the Workflow design from PFTC_DIS.
    Following reason can result into this
    1)Use of Process Control step which is not displayed in |Wflow log
    2) Use of wait for event step in a fork as well as triggering of the event
    3) Triggering event that is a terminating event of the task placed in 1 branch of the condition step.
    Thanks
    Arghadip

  • If Statement Multiple Conditions

    Using LiveCycle, FormCalc or JavaScript.
    I am trying to create an if statement with multiple conditions.
    a Sum field calculates a series of numeric input fields. I want the result in the Sum field to determine the expression in a final field. 
    If the Sum is <30MM then "50000" also if the Sum is >30MM but <60MM then "125000" also if the Sum is >60MM but <100MM then "250000" also if the Sum is >100MM but <300MM then "375000" also if the Sum is >300MM then "500000"
    I have only been able to figure out a single if then for the first condition but not able to include the whole set of conditions and the multiple results.
    Help would be much Appreciated!
    Thank you in advance.

    Tried a few variations of this and still seem not
    to be able to find a solution to this issue. I'm surprised my google searches are bringing up better examples because there seems to be an example of everything else.
    Any more detailed advive?

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • Deleting data from another table with multiple conditions

    Hi frnds
    I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
    delete from GL_TXNS
    where TRN_DT in (Select trn_Dt from GL_MAT)
    and BR in (select ac_branch from GL_MAT)
    and CODE in (select CODE T from GL_MAT)
    and (lcy_amt in (select lcy_amt from GL_MAT) or
    fcy_amt in(select fcy_amt from GL_MAT)
    rgds
    ramya

    My answer is the same as Avinash's but I will explain a little bit more.
    ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
    The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly

Maybe you are looking for