Need to Capture porReqLineId from ShoppingCartPG dynamically

Hi,
My Requirement
From the Shopping Cart Page in iProcurement I have to link a custom form for each line where the users will be able to enter some additional information and based on the information some validations will be done after which the data will be stored in a custom table.
What needs to be done and what I have done till now
I have extended the Controller of the Shopping Cart Page. Created a Submit Button and added the button dynamically to each line of Shopping Cart. Set a fireActionEvent to the button. So when the user clicks on the button it should open a new custom page with the Requisition Line ID as a parameter.
My Problem
I am unable to capture the Requisition Line ID.
I have tried the following step
1. Created a Extended Controller by extending the ShoppingCartCO
2. In processRequest created a Submit Button named it as "Additional Info" and assigned it to the Table. So it will show a Button in the result table of the Shopping Cart.
3. Assigned a Fire Action for Submit Button in processRequest using setFireActionForSubmit method. So when the "Additional Info" button is clicked it raises the event set in Fire Action.
4. In processFormRequest method of the extended CO handled the event by
if ("addnInfoEvent".equals(paramOAPageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))).
In this i tried to capture the porReqLineId which is a formParameter using the following
Number localNumber = 0;
try {
localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "porReqLineId"));
catch (Exception e) {e.printStackTrace();}
String outmsg="Line ID : " + localNumber + ":" + str + ":" + strEvent;
throw new OAException(outmsg,OAException.INFORMATION);
5. Then I am personalizing the ShoppingCartPG and assigning the new extended controller to the page.
6. So for the time being I need to capture the porReqLineId and pass it to the new custom page as a parameter. But this is not happening and when i click on "Additional Info" button it doesnt provide me the porReqLineId.
My Whole Code is pasted below
===================================================================
package xx.oracle.apps.icx.custom.webui;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
import oracle.apps.icx.por.common.webui.ClientUtil;
import oracle.apps.icx.por.req.webui.ShoppingCartCO;
public class XXBBShoppingCartExtend14CO extends ShoppingCartCO {
public XXBBShoppingCartExtend14CO() {
public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processRequest(paramOAPageContext, paramOAWebBean);
OATableBean otbRN=(OATableBean)paramOAWebBean.findIndexedChildRecursive("ItemTableRN");
OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
oasb.setID("addnInfo");
oasb.setUINodeName("addnInfo");
oasb.setText("Additional Info");
otbRN.addIndexedChild(oasb);
oasb.setFireActionForSubmit("addnInfoEvent",null,null,false);
public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
String strEvent= paramOAPageContext.getParameter(EVENT_PARAM) ;
String str = paramOAPageContext.getParameter("event");
if ("deleteLine".equals(str))
Number localNumber = 0;
try {
localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "porReqLineId"));
catch (Exception e) {e.printStackTrace();}
String outmsg="Line ID : " + localNumber + ":" + str + ":" + strEvent;
throw new OAException(outmsg,OAException.INFORMATION);
if ("addnInfoEvent".equals(paramOAPageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
Number localNumber = 0;
try {
localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "porReqLineId"));
catch (Exception e) {e.printStackTrace();}
String outmsg="Line ID : " + localNumber + ":" + str + ":" + strEvent;
throw new OAException(outmsg,OAException.INFORMATION);
===================================================================
Here I also tried to modify the Oracle defined event of "deleteLine" by just capturing and printing the Req Line ID. This is happening in the case of "deleteLine" event but not in the case of "addnInfoEvent" event.
Please help me on this.
Thanks in advance.
Regards,
Rohit Subudhi
Edited by: 929000 on May 8, 2012 12:42 AM
Edited by: 929000 on May 8, 2012 1:22 AM

Hi,
I have used the following in processRequest
String pageName = paramOAPageContext.getRootRegionCode();
Hashtable params = new Hashtable (1);
params.put ("param1", pageName);
Hashtable paramsWithBinds = new Hashtable(1);
paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL(oasb, *"${oa.encrypt.current.RequisitionLineId}"));*
oasb.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);

Similar Messages

  • What type of firewire cables do I need to capture recorings from my canon xm2

    What type of firewire cables do I need to capture recorings from my canon xm2

    I have a:
    Model Name:          Mac Pro
      Model Identifier:          MacPro5,1
      Processor Name:          Quad-Core Intel Xeon
      Processor Speed:          2,4 GHz
      Number Of Processors:          2
      Total Number Of Cores:          8
      L2 Cache (per core):          256 KB
      L3 Cache (per processor):          12 MB
      Memory:          6 GB
      Processor Interconnect Speed:          5.86 GT/s
      Boot ROM Version:          MP51.007F.B03
      SMC Version (system):          1.39f11
      SMC Version (processor tray):          1.39f11
      Serial Number (system):          CK12002NHF8
      Serial Number (processor tray):          J511400HYBH8C    
      Hardware UUID:          F51FCFBA-869D-5D70-A1F6-886A32871AA0

  • Capturing data from a dynamic table that span multiple pages

    I created a PDF form that contained a dynamic table that can span across multiple pages. Additional rows in the table can be created by the person filling the form as and when needed.
    The PDF form is distributed to the receipient using Adobe LiveCycle Designer.
    However, when the form is "Submitted" back to the originator of the form, only data in the first row of the table is captured in the Response file. All the other rows are left out.
    I would be grateful if anyone can advise me as to how do I or what shall I do to get all the data in all the rows in the table into the Response File?
    Thank you.

    Hi
    Attached are the saved completed PDF-Form and the response file after the completed form has been submitted. I have copied this message to your gMail account.
    Only data in the first row of the table is captured in the Response file.
    If it is working correctly on your side, please let me know what could have gone wrong on my side.
    Thank you.
    Best regards,
    Kim-Siang Ng
    http://www.tipstoenrichyourlife.com/parenting
    With the wish to help all beings, may all my thoughts,words,and actions be void of attachment and ego.
    May they arise from compassion and wisdom.
    May they be imbued with patience and joy.
    The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you received this email in error, please contact the sender immediately by reply e-mail and destroy all copies of the original message. This email is not intended as an offer or solicitation for the purchase or sale of any financial instruments.
    This email is forwarded automatically to a selected list of my buddies for enjoyment. Contents come from various sources and none of the materials I claim as my property. If any belongs to you, please consider it an honor that the content was worthy enough to be shared. No copyright infringement intended!. If any material is not appealing to you DELETE immediately.
    When forwarding this email, please have the courtesy to respect the privacy and confidentiality of the sender by deleting all previous email trails and addresses before you proceed to forward this email to others.

  • Help needed in getting values from the dynamically created text boxes

    Hello,
    I am developing one jsp page using struts. In the page i m
    dynamically adding some rows with two text boxes in each row. and after entering data into
    those textboxes , user clicks on save button and page is submitted.
    I want to capture all this data of dynamically added
    rows so that i can enter those rows into DB.
    how can i acheive this using struts?.
    Have anyone had tried doing it?. Please help.
    Thanx in advance
    Deepali Naik

    Hi,
    1. If you give these textBoxes the same name, then in your action you can call request.getParameterValues(paramName) - it returns String[ ] of values.
    2. You can give form textBox names like "name"+index or something like this in <logic:iterate> tag
    Good luck!

  • Hi, I would like to ask about how to capture data from real time loop.

    Hi,
    Here is some overvier of my project:
    I have done real time control using labview 9.0. I used PID controller.
    In order to optimise this controller, I need to capture data from my sensor(input) and actuator (output).
    1. For example while real time control is running. I need to capture 1000 sample data (sensor(input) and actuator (output)).
    Then I will used these data for PID optimisation on the other loop without intefere my real time loop.
    2. When PID optimisation is completed, I will sent its PID parameter to real time control loop.
    3. These operation is done in parallel.
    Anybody can help me to solve these. Your idea may solve my problem.
    TQ

    Typically you will have to use RT FIFO or Queue communication to avoid any impact to your time critical loop.
    Best regards
    Christian

  • I need a buffer to capture audia from a microphone

    I need to save audio data, while recording, in a buffer, but i dont know what are the classe i have to use an where to put the necessary code. Here is some code i use for capturing audio from a microphone. I appreciate if you can help me.
    Vector deviceList = CaptureDeviceManager.getDeviceList(new AudioFormat("LINEAR", 48000, 16, 2));
    processor = Manager.createProcessor(device.getLocator());
    processor.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.MPEG_AUDIO));
    dataSource= processor.getDataOutput();
    path = System.getProperty ( "user.home" );
    String nombre="prueba";
    DatSink dest = new MediaLocator("file:"+path+File.separator+nombre);
    filewriter = Manager.createDataSink(dataSource, dest);
    filewriter.open();
    filewriter.start();
    processor.start();

    You do realize that JMF does not record MP3 files, right?
    And if you want to put a buffer in somewhere, you can put it anywhere you want...but the most logical spot would be inside of the DataSource that's capturing the audio.
    [http://wiki.java.net/bin/view/Javapedia/JavaSoundDataSourceSampleProgram]
    You could use that code, and just insert a buffer in the read function...

  • Need to capture webinar while away from mac

    need to capture webinar while away from mac. automator is so complicated. is there a simpler better way to capture.
    thanks erryjay

    Hi,
    You would like to retrieve the returning value of the dynpro in a Batch input session ?
    bad idea
    try to make a CALL TRANSACTION inside a program. But you can't add you own logic inside a batch-input.
    Maybe you could do this using eCAT
    regards
    Fred

  • Suggestions for capturing video from HD source needed

    I'm wanting to capture video from my PS3 (using component or HDMI) and I have no idea what device is good. I'm not looking to spend a large sum of money but it has to be a USB or Firewire external device as I don't have a Mac Pro tower to install PCI cards... yet.
    I was looking at the Hauppauge HD PVR. Noticed it's not compatible with Mac's but saw if I purchase the elgato EyeTV software that it would work. I'm worried about compatibility and skeptical of trusting two products from two companies to work together without issue.
    So I was hoping people on here would have some suggestions.
    Thanks!

    Hope its not too late of a reply but the Hauppauge HD PVR is awesome! (that is, if you don't pick up a defective unit).
    I currently use one myself for capturing xbox 360 gaming clips on my hackintosh and have just figured out what the best settings are for native editing in FCP. You can read my reply in this thread for details:
    http://discussions.apple.com/click.jspa?searchID=-1&messageID=9485446
    I've found 2 apps (one of which is EyeTV 3) that allow you to capture to a Mac via USB2 cable. There's EyeTV 3 and then there's HDPVR Capture which can be found here:
    http://www.steventoth.net/blog/products/hdpvr-capture/
    I used HDPVR Capture first then got my hands on EyeTV 3 and I'll tell ya that EyeTV 3 has better export options. HDVPR-C outputs to M2TS or MP4. MP4 can be problematic when editing in FCP as I found out. But with EyeTV 3 you can export into a 100% native format for Final Cut Pro editing. HDPVR is cool though for a quick app to capture your clips. There's a free trial version that will only capture up to 2min. of footage.
    Btw, if you go with EyeTV 3 make sure you perform a software update after you install it because it doesn't support the Hauppauge HD PVR right off the bat in version 3.0 ..you need version 3.1.1 which you get free when you check for updates.
    hope this helps!

  • Need help: Capturing from Canon XL H1 - Premiere CS&

    When i capture images from a Canon XL H1 the Premiere CS6 creates a mp3 file. How can I reate a vide

    I have heard of this issue before but have no answer to the problem.
    Might want to read this doc.
    http://kb2.adobe.com/cps/828/cpsid_82848.html

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

  • Logic for retreiving the values from a dynamic internal table

    Hi all,
    I have an issue with the logic to fetch data from a dynamic internal table into fields. let me give you guys an example the sy-tfill = 9 (subject to vary). I need to populate the fields.
    Regards,
    Sukumar

    Hi,
    this is for printing out the info in a dynamic table,
    it will work likewise to insert data.
    PARAMETERS:
      p_tabnam TYPE tabname DEFAULT 'DB_TABLE_NAME'.
    DATA:
      lv_dref TYPE REF TO data,
      ls_dd03l LIKE dd03l,
      lt_fieldname TYPE TABLE OF fieldname,
      ls_fieldname TYPE fieldname.
    FIELD-SYMBOLS:
      <fs> TYPE STANDARD TABLE,
      <wa_comp> TYPE fieldname,
      <wa_data> TYPE ANY,
      <wa_field> TYPE ANY.
    REFRESH lt_fieldname.
    SELECT * FROM dd03l INTO ls_dd03l
                       WHERE as4local = 'A'
                         AND as4vers  = '0000'
                         AND tabname  = p_tabnam
                       ORDER BY position.
      ls_fieldname = ls_dd03l-fieldname.
      APPEND ls_fieldname TO lt_fieldname.
    ENDSELECT.
    IF NOT ( lt_fieldname[] IS INITIAL ).
      CREATE DATA lv_dref TYPE TABLE OF (p_tabnam).
      ASSIGN lv_dref->* TO <fs>.
      SELECT * FROM (p_tabnam) INTO TABLE <fs>.
      WRITE:
        / 'CONTENTS OF TABLE', p_tabnam.
      LOOP AT <fs> ASSIGNING <wa_data>.
        SKIP.
        WRITE:
          / 'LINE', sy-tabix.
        ULINE.
        LOOP AT lt_fieldname ASSIGNING <wa_comp>.
          ASSIGN COMPONENT sy-tabix OF STRUCTURE <wa_data> TO <wa_field>.
          WRITE:
            / <wa_comp>, <wa_field>.
        ENDLOOP.
      ENDLOOP.
    ENDIF.
    grtz
    Koen

  • Capture contents from an editable alv

    I'm trying to capture fields from an editable alv. I have an update button in the application toolbar. So when i press this button, whatever changes I have done on the screen, the internal table should get updated. I'm using the function module    REUSE_ALV_GRID_DISPLAY.
    Can anybody help me out??

    Yes you can,
    If you have access to the element in the context that is bound to the row in the ALV then you can connect the message. Marking a * is not possible by default with the WD message manager and you willl need to do it manually. Use the element method of the message manager API for this purpose.

  • Need to read data from a jsp and insert in other jsp

    Hi,
    I have a jsp where i need to read from another jsp(which has data " header ---insert -----footer") and find a string "insert" in it and replace that string with a some value in the current jsp.
    Thanx in Advance.
    Sridhar.

    I have a jsp
    which needs to take headers and footers dynamically and insert them into my jsp.
    currently what i am doing is, using a script to get these header and footer and using document.write
    MYJSP.jsp looks this way
    <script src="/../Headerfooter.jsp"/>
    <script language="javascript">
    document.write(header); -->defined in -> /HeaderFooter.jsp
    document.write("<table>...</table>");
    document.write(footer);-->defined in -> /HeaderFooter.jsp
    </script>
    /HeaderFooter.jsp looks this way
    header = "<html>...<table width=\"100\">....";
    footer ="....</html">
    i dont want to use script bcoz i am getting problems in nestcape...

  • Calling a procedure from a dynamic link

    I have the following situation-
    I have a report created using SQL Query.
    I need to call a Stored Procedure(move_to_portal) through a link from one of the fields in the report (Exec_id field of the report).
    How can I do this?
    The links do not allow me to choose a stored procedure as the Target component....so maybe I have to create a dynamic link.
    How to do this? Any help would be appreciated.

    I have just another question-
    I have a procedure testing_del_archive which is being called with 2 parameters...from a dynamic link in my SQL Query.
    The following is my code....
    SELECT re.report_exec_id, re.exec_userid,
    NVL(re.batch_exec_date, re.begin_date) report_date,
    re.rows_returned,
    re.status, re.error,
    f_file_url(re.filename) file_url,
    re.comments,
    ''Archive''archive
    FROM metadev.report_execution re, metadev.report r
    WHERE re.report_id = r.report_id
    AND r.spec_number = :v_spec
    AND re.status <> 'DELETED'
    AND re.exec_userid like (DECODE(:v_user_filter,'ALL','%',:v_user_filter))
    ORDER BY begin_date DESC
    The first parameter is the value in the execution id field and the second argument is hardcoded "Archived"...
    IT GIVES AN ERROR....
    Do you guys know where I am going wrong...

  • File-File - Need to extract data from source file name???

    Hello Experts,
    I have a unique situation. In my file to file scenario, the source file name is of the format XYZ_yymmddHHMM.dat. there is field in the target file which has to filled with the date that is there in the file name of the source file (yymmdd). How can this be achieved? Normally we do the other way round using vaiable substitution where we can name a file depending on the value in any of the target field structure.
    Please help.
    Regards,
    Yash

    Hi,
      please prepare the udf with the following code.
      i mean, dynamic configuration concept.
      where u get the file name, then use substring function to capture date from right side.
       //write your code here
    // getFileName User Defined Function
    // function to create name of output file
    String filename;
    filename = strFile;
    try {
    // initialize DynamicConfiguration for create file with given name
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    //create file with the specified name
    conf.put(key, filename);
    } catch (Exception ex) {
    return filename;
    warm regards
    mahesh.

Maybe you are looking for

  • I no longer recieve notifications of missed calls when 'Do not disturb' is on

    I use 'Do Not Disturb' on my iPhone 5 very often. In the past, if someone called me while DND was activated, the call would show up in my list of 'Missed Calls' and I would get a notification of it. Since the most recent software update (iOS 8.2) thi

  • " ID Generic for the flexfield segment Address Style does not exist"

    "ID Generic for the flexfield segment Address Style does not exist in the Value set $Flex$DF_contexts" Can some one help with this iRecruitment issue.

  • Blue ray movie volume too low

    I have had my Satelite P505 for 7 months now and I have not figured out how to turn up the volume. I have tried everything as far as volume controls. Is anyone out there having the same issue?

  • ITunes creating duplicate files under a hidden folder named "Volumes".

    It seems my iTunes program is secretly making a duplicate file in a hidden folder called "Volumes" on my laptop hard drive. It's now maxxed out my drive and I need to both remove the "Volumes" folder and make sure it doesn't get created and happen ag

  • Magic block issue...

    apologies, temporarily using an ancient pc notebook due to macbook crash and burn tried search (magic block) and it said there were 4 matching but none show onscreen can't raise anything on my macbook pro (flashing file with ?)...stone dead diagnosti