Double click and get and store the value in variable.

Hi,
My intention is when i double click a particular record on a tabular, i want to capture or store the particular value of record into a variable and call that variable in print/preview button PLSQL code.
Below i show the screenshot which contain a tabular and print preview button. After populating the data. the user will double click on the agent code LC354 and click the print/preview button it should display report for only the
agent code of LC354(this is what i want). But normally when i click the print preview button it wil show the report of agent code of LC354 and LC325(this what i dont want).
http://imageshack.us/photo/my-images/811/printpb.png/
My problem is how to capture the value((*LC354*)) of particular record after double click the agent code(*LC354*)?
i tried to store agent code in variable AG_CNT in mouse double click trigger with following plsql code. but it dosent work.
declare
AG_CNT varchar2(10);
begin
*AG_CNT* :=GET_ITEM_PROPERTY('RFQ_AGENT_DETAILS.AGENT_CODE',CURRENT_RECORD);
end;after that pass that AG_CNT value in *:AG_CODE*. below code is in print/preview button.
     cursor c1 is select nvl(count(ENQUIRY_NO),0) from scott.EXP_QUOTE_STATUS
     where ltrim(rtrim(upper(job_status))) like 'APPROVED%' and ENQUIRY_NO = :REQ_FOR_QUOT.ENQUIRY_NO
AND AGENT_CODE=*:AG_CODE* ;how to do this?
skud.

Hi skud
i juast want to store the agent code to variable.if i did get ur point...
Why don't u just use a simple assign statment for example...
DECLARE
V_VALUE  NUMBER;
BEGIN
V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
-- or u could use any value
V_VALUE := :ur_form_item_name; --- if it was dynamic
END;That's it .
Hope this helps...
Regards,
Ammatu Allah.

Similar Messages

  • "I just updated the software on my iphone 4 and prior to updating I could double click and start the camera without logging in, now I can't.  How do I fix?

    I just updated the software on my iphone 4 and prior to updating I could double click and start the camera without logging in, now I can't.  How do I fix?

    Nothing to fix...things have changed...slide the camera icon up now..no more double tap.

  • I have just upgraded to ios7 but cant seem to close any apps to save battery, on the old system it was just a double click and deleting the icons along the bottom of the screen, how do i do it now?? any help?

    i have just upgraded to ios 7 but cant seem to close any apps to save battery life, on th eold system it was just a double click and  deleting the icons along the bottom of the screen, any ideas how to now?
    Help?

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe up on the screenshot of the app you want to exit.
    3. The app will fly off the screen

  • My email preview pane is blank on my Air.  Not on my iPhone or my iPad.  Just the Air.  Started two days ago.  I didn't change anything.  I can double click and open the email.

    My email preview pane is blank on my Air.  Not on my iPhone or my iPad.  Just the Air.  Started two days ago.  I didn't change anything.  I can double click and open the email.

    Back up all data. Rebuild the mailbox.

  • What is the datatype to store the value of variable of  UTL_HTTP.resp

    Hello,
    I am using Oracle 11g R2 SOE.
    I have table Called SMS consists of two columns (TEXT , RESPONSE) to store the value of variable of type UTL_HTTP.resp
    the datatype of TEXT column is varchar2.
    What should be the datatype of the column RESPONSE that is supposed to store the value of a variable of type UTL_HTTP.resp ????
    Please see the following example if it was not clear;
    Declare
      l_url2 SMS.RESPONSE%TYPE;
      l_http_request2   UTL_HTTP.req;
      l_http_response2  UTL_HTTP.resp;
    begin
      l_http_request2  := UTL_HTTP.begin_request(l_url2);
      l_http_response2 := UTL_HTTP.get_response(l_http_request2);
      insert into SMS (text,response) values (l_url2,l_http_response2);
      UTL_HTTP.end_response(l_http_response2);
    end;Regards,
    Fateh

    Fateh wrote:
    Hello,
    I am using Oracle 11g R2 SOE.
    I have table Called SMS consists of two columns (TEXT , RESPONSE) to store the value of variable of type UTL_HTTP.resp
    the datatype of TEXT column is varchar2.
    What should be the datatype of the column RESPONSE that is supposed to store the value of a variable of type UTL_HTTP.resp ????
    Please see the following example if it was not clear;
    Declare
    l_url2 SMS.RESPONSE%TYPE;
    l_http_request2   UTL_HTTP.req;
    l_http_response2  UTL_HTTP.resp;
    begin
    l_http_request2  := UTL_HTTP.begin_request(l_url2);
    l_http_response2 := UTL_HTTP.get_response(l_http_request2);
    insert into SMS (text,response) values (l_url2,l_http_response2);
    UTL_HTTP.end_response(l_http_response2);
    end;Regards,
    Fatehutl_http.resp is a record type Its defined like this
    TYPE resp IS RECORD (
       status_code    PLS_INTEGER,
       reason_phrase  VARCHAR2(256),
       http_version   VARCHAR2(64));http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/u_http.htm#i1012713
    I would suggest in your table you split the RESPONSE column into 3 different column and store the fields STATUS_CODE, REASON_PHARSE and HTTP_VERSION accordingly.

  • How to store the value into variable and access it in RMAN script

    I want to create a variable and dynamically assign a numeric value to it (may get the value may be from SQL )and access the value in RMAN script.
    Thanks...Raj

    Raj,
    We have been getting this type of request and it is not possible via RMAN to do that.
    BUT--You could write a sql/plus script to query your variable and produce the RMAN script with the new value.
    Just a suggestion.
    Tammy

  • How to update and use the values of variables of another class

    I can we update or use the values of the variables of another class. For example, if we have class A
    public class A //(situated in package view)
    public s0,s1;
    public void runFunction()
    ...some coding and proceedings
    s0="Hi";s1"Hello";
    ......some coding
    RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp?alert=F");
    dispatcher.forward(request, response);
    ARunner.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    a.runFunction();
    %>
    MainUser.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
    %>
    A.class has some procedures and String variables which can be updated and later can be used in JSP pages. The project starts with ARunner.jsp which uses the A.class and updates the values of string variables s0 and s1of A to hi and hello respectively.And then redirects the page to MainUser.jsp.
    Now what I want is ,when I call those string variables(s0 & s1 of A.class) in any another jsp likeMainUser.jsp it should give me the value of hi and hello respectively not null as it is giving right now. Could you refine the coding for this one?

    public class A //(situated in package view)
    public String s0,s1;
    public void runFunction()
    ...some coding and proceedings
    s0="Hi";s1"Hello";
    ......some coding
    RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp");
    dispatcher.forward(request, response);
    ARunner.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    a.runFunction();
    %>
    MainUser.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
    %>
    giving code again to remove the typing errors. Please guide.

  • Custom abap iview need to double click to get in to the right page

    Hi experts,
    I create custom Abap Webdynpro Iview,
    but it has to double click to get into the service.
    If we only do one click then it got internet error.
    how to solve this?
    thanks in advance

    Hi,
    sorry for lack  of information.
    the error is "the webpage cannot be found"
    http 404. (This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage)
    but, when I click the link page again (for second time), it will link to the right page.
    is there any missing configuration?
    thanks

  • How to store the value to variable?

    hi
    plz c the below code...
    my prblm is i want to store the value of wa_final-preis into new_xeipa-preis if there is only one ebeln...
    if there are more procss orders then i want to save the first value to new_xeipa-preis wn second record comes then new_xeipa-preis should be replaced by new value and old_xeipa-preis replaced by old value....
    how to do this?
    LOOP AT xeipa INTO wa_xeipa.
      idx = sy-tabix.
      CLEAR: wa_xeina.
        READ TABLE xeina INTO wa_xeina WITH KEY infnr = wa_xeipa-infnr.
        IF sy-subrc is INITIAL.
        wa_final-infnr = wa_xeipa-infnr.
        wa_final-ebeln = wa_xeipa-ebeln.
        wa_final-bedat = wa_xeipa-bedat.
        wa_final-matnr = wa_xeina-matnr.
        wa_final-lifnr = wa_xeina-lifnr.
        wa_final-peinh = wa_xeipa-peinh.
        wa_final-preis = wa_xeipa-preis.        "net price
        wa_final-bprme = wa_xeipa-bprme.
        wa_final-bwaer = wa_xeipa-bwaer.
        IF ( wa_final-infnr is NOT INITIAL ) AND ( wa_final-ebeln is NOT INITIAL ) .
        ABWEICHUNG = ( new_xeipa-preis / old_xeipa-preis ) * 100 .
        ENDIF.
        append wa_final to it_final.
        ENDIF.

    Hi Smitha,
    Check the below given code.
    LOOP AT xeipa INTO wa_xeipa.
      idx = sy-tabix.
      CLEAR: wa_xeina.
        READ TABLE xeina INTO wa_xeina WITH KEY infnr = wa_xeipa-infnr.
        IF sy-subrc is INITIAL.
        wa_final-infnr = wa_xeipa-infnr.
        wa_final-ebeln = wa_xeipa-ebeln.
        wa_final-bedat = wa_xeipa-bedat.
        wa_final-matnr = wa_xeina-matnr.
        wa_final-lifnr = wa_xeina-lifnr.
        wa_final-peinh = wa_xeipa-peinh.
        wa_final-preis = wa_xeipa-preis.        "net price
        wa_final-bprme = wa_xeipa-bprme.
        wa_final-bwaer = wa_xeipa-bwaer.
    " First time this value is not populated. When the second value comes in,
    " New value gets populated in OLD variable and New value is replaced with the latest.
        *IF idx NE 1.*
          *old_xeipa-preis = new_xeipa-preis.*
        *ENDIF.*
        *new_xeipa-preis = wa_xeipa-preis.*
      IF ( wa_final-infnr is NOT INITIAL ) AND ( wa_final-ebeln is NOT INITIAL ) .
        ABWEICHUNG = ( new_xeipa-preis / old_xeipa-preis ) * 100 .
        ENDIF.
        append wa_final to it_final.
        ENDIF.
    ENDLOOP.
    I hope this is what you were looking for.
    Thanks & Regards,
    Ram.
    Edited by: ram Kumar on Jun 12, 2009 5:16 PM

  • I have a MAC and when I try to use Adobe Reader, I get a pop up telling me I need to accept the end user agreement. It instructs me to go the Abobe Reader Installer download , double click and accept the agreement, but there is no agreement.  What should

    I have a MAC and when I try to use Adobe Reader, I get a pop up telling me to lauch ADobe Reader and accept the end user license agreement, but when I do that, there is no agreement to acknowledge.   What should I do?

    I have the same problem as Pam101. I am on OS X 10.9 and Safari 7 (actually on 2 iMacs). The one iMac is fine but the other with the same versions and settings Adobe Reader will not work. What happens is the Adobe Reader icon appears on the dock, bounces once and that's it. When trying to open a .pdf file from a website a new tab is opened on Safari, the background is black and there is a pop up message (black test on a white background) that reads: "Adobe PDF Before proceeding you must first launch Adobe Acrobat and accept the End User License Agreement." This is all very well but if Adobe Reader will not launch how on earth is it possible to accept the End User License Agreement terms? Very, very annoying, especially since it all works just fine if I launch a .pdf file from a website using Chrome. What is going on here and who do I talk to in order to fix this problem - Apple or Adobe?

  • Gettin the field valus on double clicking and calling the transaction

    Hi
    how to use call transaction after  clicking on a particular line on the output list with the field values of that line ?
    I am using MIR4 transaction .Once the output list is displayed when i double click on any line i have to pass the belnr and the gjahr values of that line to the transaction MIR4 to display the document.
    AT LINE-SELECTION.
       get cursor field s_belnr value gw_final-belnr_mm.
       get cursor field p_gjahr value gw_final-gjahr.
      SET PARAMETER ID:  'BEL' FIELD GW_FINAL-BELNR_MM, 'GJA' FIELD GW_FINAL-GJAHR.
      CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.
    I used a code like this . What is the problem ? Can anyone help me ?

    Hi,
    What u can do is while displaying the ouptut list, u can use HIDE statement.
    e.g. LOOP at itab.
    write : itab-belnr,
              itab-gjahr.
    HIDE : itab-belnr, itab-gjahr.
    endloop.
    then when u use AT LINE-SELECTION, u can use:
    AT LINE-SELECTION.
    SET PARAMETER ID: 'BEL' FIELD ITAB-BELNR, 'GJA' FIELD ITAB-GJAHR.
    CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.
    It should work.
    Regards,
    Himanshu

  • Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

    Hi All,
    powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
    For example the hive is
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
    and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
    Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
    Your help is much appreciated.
    Umeed4u

    I think you need to read this first:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • UDF for reading a particular line and storing the value in a variable

    Hi Experts,
    I am reading entire file content in single feild in source data type.I want to write a UDF to seach for a particular pattern(say :25: and store the value after it i.e  34535764778 detination for further use).
    EX: My  sample file and its  has feilds like
    point assured
    Thanks

    Hi since u are using a single field only then u dont need to use any advanced function
    Wel because if u see the formation of the queue u wil find the the whole data is under one context.. and there are not more context changes
    Convert the string to an array and progressively u can check for the four checks if the a<i>=:
    then a[i+]=2 then a[i]=5 and a[i+] =: and then substring the next 7-8 chrac.. hope u understand
    If this also doesnt work wel then u will have to use the Pattern class in Java
    By the way remember that the substring value cant be retained for the next instance of mapping
    Hope u have that in mind...
    Rgds
    Aditya

  • Magic Mouse single click double clicks and drops dragged images

    Last few weeks my Magic Mouse has started behaving strangely. When selecting something with a single click the mouse seems to double click and open the item instead of just selecting it. Very frustrating. When dragging anything across the screen it always drops the item halfway there.
    What is going on? Software? Hardware? I have no 3rd party software installed and have tried various double click speeds with the same result.
    Anyone have any ideas? Thanks.

    A lot of people have encountered this, Tom, myself included (see discussion here for instance: http://discussions.apple.com/thread.jspa?messageID=11547453&#11547453).
    It appears to be a bug in the OS. Annoying, but until Apple fix the problem, it's something we're unfortunately going to have to live with. Sorry I can't help you further.

  • How to store the value in table

    Hi All,
    I ve a requirement where im adding a check box on a seeded supplier_create page via personalization. The seeded page contains only a root AM and a root controller.The table which stores the supplier details does not have a dff.so i have to store a yes or no value and a foreign key ref into a custom table to map both the tables. the rootAM is actually calling the underlying seededVO to create a row in the database.Now how can I insert the yes/no and the foreign key values into my custom table??
    Thanks.

    Isn't there any other column in the table which you can use?
    Anyway you can call a PLSQL API (to create a row in the Custom Table and store the value and also to make a foreign key join therein). This PLSQL can be called from the Controller (extend the standard Controller).
    Now when you come to the Page, either you substitute the standard VO, or easier still (since I assume checkbox is on the Page and not in the table), you can call a PLSQL function and get the value of the checkbox. May be you can also create a dymanic VO and get the value from the Custom table for the current standard table row.
    Please do a compete thinking on the idea above and do let me know where you forsee issues. The above solution focusses more on PLSQL API invocations and thus decreases the need for Substitutions.
    Thanks
    Sumit

Maybe you are looking for