How to copy a value between items??

Hi friends,
[Apps R12]
I don't exactly know ho to do this:
Imagine you have a LOV.. and it retrieves a value in one of its attributes...
When selecting a value of that LOV.. I want one of those attribute values... be copied to other item in the same screen...
It would be te same as in Forms:
When-validate the lov ...
:block1.item2:=:block1.item1
where item1 is one of the columns retrieved by the LOV and item2 is another field on the screen....
Could any of you provide an example of how to do this?
Thanks!!!

if (pageContext.isLovEvent())
// Form was submitted because the user selected
// a value from the LOV modal window,
// or because the user tabbed out of the LOV input.
// Find out which LOV input triggered the event.
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
// Find out the result values of the LOV.
Hashtable lovResults =
pageContext.getLovResultsFromSession(lovInputSourceId);
if (lovResults != null)
// Update the page depending on the value chosen by the user.
see if this helps....
--Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to copy fields values between same class objects with filtering ?

    Hi I'm facing a problem.
    It started when thinking to the clone method for cloning objects.
    And developed into a problem when trying to making something more complicate that just cloning.
    Suppose you have two JPanels and one is a copy of the other suppose that u feed the copy to some methods for processing.
    These methods modify simple data (ints,Strings, CustomClasses) and swing components too.
    Now when I get the object back I want to copy all of the fields values to the original JPanel except for those who represent swing components or the like.
    I want to do this automatically by writing some few rows of code.
    How can I do this using reflection ?
    How can I filter the Fields objects that I get from jpanelInstance.getClass().getDeclaredFields(); ? Which metod should I use then to check if is a subclass of java.awt.Component ?
    I've read about many things on using reflection to invoke methods, constructors and so on.
    But how do I get the fields values as I get the fields objects ?
    Thanks for the attention, hope what is written is clear enough,
    Estades.

    Are you targeting a "worst design award"? What kind of "processing" would take place on a UI component?
    I am sure from what you write that you missed to seperate your model from your view. Read about MVC and retry designing your application.
    Edited by: stefan.schulz on Sep 15, 2007 7:30 PM

  • How to get column values on item added event receiver

    Hi,
    I have two columns in a document library and one is people or group column and the other one is choice column with check boxes.
    I want to know how to read column values on Item Added event receiver, so that I can create if statements based on those values.
    Thank you,
    AA.

    Hi AOK2013, 
    Have you had a look at this Microsoft tutorial: http://msdn.microsoft.com/en-us/library/office/gg981880(v=office.14).aspx
    Essentially, you want to use the AfterProperties property to access the changed field value. 
    E.g. 
    var personvalue = properties.AfterProperties["YourPersonFieldName"]
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • In BADi , How to pass the values between two Method

    Hi Experts,
    We have two methods in BADis. How to pass the value  between two Methods. Can you guys explain me out with one example...
    Thanks & Regards,
    Sivakumar S

    Hi Sivakumar!
    Create a function group.
    Define global data (there is a similiar menu point to jump to the top include).
    Create one or two function modules, with which you can read and write the global data.
    In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
    Regards,
    Christian

  • How to copy NCLOB value(Contains Word Document) into file system

    How to copy NCLOB value(Contains Word Document) into file system or display in sqlplus

    The UTL_FILE package will write it only to text file not(NCLOB Value[containts images as well as text])

  • How to Copy a value of a String to the RAM memory?

    Hi there,
    I was wondering how to copy a String into the ram memory (consider you're doing right click on THIS word and choose 'Copy'; the String's Value will be to the ram memory for a later Paste).
    In my application, a user has a table and he right click on it and choose Copy. I get the value of the item (Obj) but face dificulties to add it to RAM.
    my code looks like this:
              if (obj!=null)  //inside I have the value (say: 12345 --< Obj.toString)
                   Action copyAction = TransferHandler.getCopyAction();
                   int id = ActionEvent.ACTION_PERFORMED;
                   String name =  (String) copyAction.getValue(Action.NAME);
                   long l = EventQueue.getMostRecentEventTime();
                   copyAction.actionPerformed(new ActionEvent(XXXXXXX, id, name, l ,0));     
                            ///what comes in the XXXXXXX      
              }I tried, instead of the XXXXXXX, to put Obj or Obj.toString but...nothing.
    Anyone?

    Thanks,
    should implement ClipboardOwner
    and do this:
                  StringSelection stringSelection = new StringSelection( obj.toString() );
                  Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
                  clipboard.setContents( stringSelection, this );
    @Override
         public void lostOwnership(Clipboard clipboard, Transferable contents)
              //do nothing!
         }

  • Forms6i- how do i pass values between two forms

    Forms6i- passing values between forms
    I have two forms. FORM1 does a call_form to FORM2.
    How do i send values from FORM1 over to FORM2?
    I want the 2 values in FORM1 to be passed top FORM2 and displayed as a TEXT ITEM.
    But i don't know what is involved in passign vales between forms.

    Define Parameters in Form2, and pass parameters with the same name from Forms1 with the parameter list option of your call_form built-in.
    It is in the online help.

  • Urgent: How to copy multiple sales order items into a return sales order?

    Dear developers,
    I have a requirement to copy multiple sales order items into a single return sales order. For example, generated return sales order have 2 items, item 10 is created with reference to sales item 2610/10 and item 20 is created with reference to sales item 2611/20. What's more, when it happens, copy control should be taken care of. I know it is possible to create this kind of order by transaction. But how to do it in coding?
    In current SAP release, there is only BAPI for creating with reference on 1:1 relationship which means copy one document to another but what I need is N:1 copy.
    Any suggestion is high appreciated!!
    BR,
    Tony.

    Hi ,
    If you are creating sales order by using bapi then after calling bapi you can check import parameter <i><b>SALESDOCUMENT</b></i> in the bapi function module .If this parameter is not initial then sales order is created in this case you can create return order. If this import parameter is initial then sales order is not created and you cannot use return bapi function module.
    Bapi is simple method than BDC.
    In above case it is required to call BAPI_TRANSACTION_COMMIT after every successful sales order creation.
    One more important point is you have to clear import parameter <i><b>SALESDOCUMENT</b></i>  before calling sales order creation function module.
    Thanks,
    shyla

  • How can I share values between different jsp pages?

    Hi,
    I'm doing a jsp, bc4j application (JDeveloper 9.0.3), and I need to share some values between different jsp pages. To do this,
    I have used the tag <jsp:usebean.....></jsp:usebean> in this way:
    on pageone.jsp
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    on pagetwo.jsp     
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    and so on, in order to refer to the same instance of the class "Parameters".
    After deploying, the application works well only if the client is the same pc where the AS resides, otherwise the variables of "Parameters" are null.
    Please, could you help me?
    Thanks
    Nunzio.

    I am seeing an indication on 9.0.3 that static includes are not static, but instead always dynamic. The compiler generates a call to the included page, and doesn't include the content in the calling page as it should.

  • How to copy Location value from PO Schedule to Deliver To in PO Distrib.

    Hi,
    While creating a Purchase Order in Buyer's Work Bench, I need to copy value entered in the Location field of Schedules Tab into Deliver-To field of Distributions tab. Can it be done by OA Personalization using SPEL ${oa.<viewObject>.<viewAttr>}.
    Where do I find what is the viewobject and viewattribute name of Location field in Schedules tab?
    Thanks
    Rao

    SPEL cannot be used for this purpose.
    You need to extend the controller and copy the value like..
    VoRow.setAttribute("XXXAttribute",VoRow.getAttribute("YYYAttribute"));
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                               

  • How to copy Characteristics of main item to sub item after RBATP?

    Hi Experts,
    We are having MTO process, where we are creating sales order
    for configurable material. Then we are triggering RBATP and getting
    confirmation based on product allocations.
    But while creating sub items after RBATP, sales order not updating
    configurable characteristic values from main item (TAPA) to sub item (TAN).
    System is asking to maintain characteristic values for sub item again during
    RBATP manually.
    How we can copied these characteristic values of configurable material from
    main item to sub item automatically?
    Regards,
    Narendra

    Hi Experts,
    We are having MTO process, where sales order for configurable material. For these SO,
    we are triggering RBATP and getting confirmation based on product allocations
    & then accordingly it will consider for further planning in APO. But while
    creating sub items for SO after RBATP, system is not updating configurable
    characteristic values from main item (TAPA) to sub item (TAN) automatically.
    System is asking to maintain these characteristic values for sub item again
    during RBATP manually.
    We need to understand, how we can copy these characteristic values of configurable
    material from main item to sub item automatically?

  • How to reference the value of items in a generic report

    Hello
    I have created a generic report. The source is a PL/SQL-Function returning a query stored in a package of the parsing schema, using the apex_item package. I set the p_item_id values depending on p_idx and rownum. In the browser I can see the unique (id="...") of the items. The report works well.
    One column is an analytical funtion and shows for every row the same value. The column is hidden. Depending on that value I want to show or hide buttons.
    How can I get the value of this column. Apex_application.g_fxx don't work. Apex_application.g_fxx.COUNT =0 for all possible columns.
    So how can I reference the value in the report.
    Any suggestions?
    Thanks

    Hallo varad
    Should I do really?
    The SQL is a function in a package returning a sql-string. It's a join over five tables (one outer join) refrences some other package variables. For testing purposes I put in into the region, but nothing changed. SQL is ok.
    So here is the region source:
    declare
    v_mdt_id pkg_typ_lagerplatzbelegungen.mdt_id_coltype;
    v_laplstat_frei pkg_typ_lagerplatzbelegungen.laplstat_id_coltype;
    v_laplstat_leermeldung pkg_typ_lagerplatzbelegungen.laplstat_id_coltype:=1;
    v_sql VARCHAR2(10000);
    BEGIN
    v_mdt_id :=:g_mdt_id;
    v_laplstat_frei:=pkg_konst_lagerplatzstati.fkt_laplstat_frei;
    v_sql:= ' WITH lapl_lagepos
    AS
    (SELECT (rownum ) zeile
    ,laplbe1.mdt_id
    ,laplbe1.lapl_koor1
    ,laplbe1.lapl_koor2
    ,laplbe1.lapl_koor3
    ,laplbe1.lapl_koor4
    ,laplbe1.lapl_koor5
    ,lagepos.lage_id
    ,lagepos.lagepos_id
    ,pkg_sel_lagerplaetze.fkt_get_lapl_kurzbez_display( laplbe1.lapl_koor1
    ,laplbe1.lapl_koor2
    ,laplbe1.lapl_koor3
    ,laplbe1.lapl_koor4
    ,laplbe1.lapl_koor5
    , laplbe1.mdt_id) lapl_kurzbez
    ,laplbe1.lavo_id
    ,mat.mat_id
    ,mat.mat_id mat_id_neu
    ,mat.matart_id
    ,mat.matart_id matart_id_neu
    ,mat.mdt_id_mat
    ,mat.mdt_id_mat mdt_id_mat_neu
    ,mat.mat_name1
    ,mat.mat_name2
    ,lagepos.lagepos_menge
    ,lagepos.meschl_id
    ,NULL zumenge
    ,NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)
    ,CASE
    WHEN NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0) = 0
    AND (laplbe1.laplstat_id < '||v_laplstat_frei||' OR NVL(laplbe1.lage_id,0) > 0) THEN 0
    ELSE
    NVL(SUM(lagepos.lagepos_menge) OVER (PARTITION BY lagepos.lage_id),0)+1
    END leerkennung
    FROM (SELECT laplbe.mdt_id
    ,laplbe.lapl_koor1
    ,laplbe.lapl_koor2
    ,laplbe.lapl_koor3
    ,laplbe.lapl_koor4
    ,laplbe.lapl_koor5
    ,laplbe.lage_id
    ,laplbe.laplstat_id
    ,lapl.lapl_kurzbez
    ,lapl.lavo_id
    FROM lagerplaetze lapl
    ,lagerplatzbelegungen laplbe
    WHERE lapl.lapl_kurzbez ='||'''77B04B1'''||'
    AND lapl.mdt_id ='||v_mdt_id||'
    AND laplbe.mdt_id ='||v_mdt_id||'
    AND laplbe.lapl_koor1 = lapl.lapl_koor1
    AND laplbe.lapl_koor2 = lapl.lapl_koor2
    AND laplbe.lapl_koor3 = lapl.lapl_koor3
    AND laplbe.lapl_koor4 = lapl.lapl_koor4
    AND laplbe.lapl_koor5 = lapl.lapl_koor5
    AND laplbe.mdt_id = lapl.mdt_id) laplbe1
    , (SELECT lage_id
    ,lagepos_id
    ,mdt_id
    ,mat_id
    ,matart_id
    ,mdt_id_mat
    ,meschl_id
    ,lagepos_mengeneinheit
    ,lagepos_menge
    FROM lagergebindepositionen
    WHERE NVL(lagepos_archiviert,0) =0
    AND mdt_id = '||v_mdt_id||') lagepos
    ,(SELECT mat_id
    ,matart_id
    ,mdt_id_mat
    ,mat_name1
    ,mat_name2
    FROM materialien
    WHERE mat_archiviert= 0
    AND NVL(mdt_id_mat,'||v_mdt_id||')='||v_mdt_id||') mat
    WHERE laplbe1.lage_id = lagepos.lage_id(+)
    AND lagepos.mat_id =mat.mat_id(+)
    AND lagepos.matart_id = mat.matart_id(+)
    AND lagepos.mdt_id_mat=mat.mdt_id_mat(+))
    SELECT APEX_ITEM.hidden (31, zeile,'''',''P95801_f31_''||zeile ) zeile
    ,APEX_ITEM.text (32, leerkennung,10,10,''P95801_f32_''||zeile ) "Leerkennung "
    ,APEX_ITEM.hidden (33,mdt_id ,'''' ,''P95801_f33_''||zeile ) mdt_id
    ,APEX_ITEM.hidden (34,lapl_koor1 ,'''' ,''P95801_f34_''||zeile) lapl_koor1
    ,APEX_ITEM.hidden (35,lapl_koor2 ,'''' ,''P95801_f35_''||zeile ) lapl_koor2
    ,APEX_ITEM.hidden (36,lapl_koor3 ,'''' ,''P95801_f36_''||zeile) lapl_koor3
    ,APEX_ITEM.hidden (37,lapl_koor4 ,'''' ,''P95801_f37_''||zeile) lapl_koor4
    ,APEX_ITEM.hidden (38,lapl_koor5 ,'''' ,''P95801_f38_''||zeile ) lapl_koor5
    ,APEX_ITEM.hidden (39,lage_id ,'''',''P95801_f39_''||zeile ) lage_id
    ,APEX_ITEM.hidden (40,lagepos_id ,'''' ,''P95801_f40_''||zeile) lagepos_id
    ,APEX_ITEM.display_and_save(41,lapl_kurzbez,''P95801_f41_''||zeile) "Lagerplatz"
    ,APEX_ITEM.display_and_save(42,lavo_id ,''P95801_f42_''||zeile) "Fachtyp"
    ,DECODE(mat_id ,NULL, APEX_ITEM.popup_from_lov (43,'''',''MATLAVO'','''','''',0,'''',''''
    ,''onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" ''
    ,''YES'',''P95801_f43_''||zeile)
    ,APEX_ITEM.display_and_save(43,mat_id,''P95801_f43_''||zeile)) "Material-Id"
    ,DECODE(matart_id,NULL, APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)
    , APEX_ITEM.hidden(44,matart_id ,'''' ,''P95801_f44_''||zeile)) matart_id
    ,DECODE( mdt_id_mat,NULL, APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )
    ,APEX_ITEM.hidden (45,mdt_id_mat ,'''' ,''P95801_f45_''||zeile )) mdt_id_mat
    ,APEX_ITEM.display_and_save(46,mat_name1 ,''P95801_f46_''||zeile) "Materialname"
    ,APEX_ITEM.display_and_save(47,mat_name2 ,''P95801_f47_''||zeile) "Materialbezeichnung"
    ,APEX_ITEM.display_and_save(48,lagepos_menge ,''P95801_f48_''||zeile) "Lagernde Menge"
    ,APEX_ITEM.display_and_save(49,meschl_id ,''P95801_f49_''||zeile) "Mengenschlüssel"
    ,APEX_ITEM.text(50,zumenge,10,10,'' style="width:120px" onFocus="fkt_set_bordercolor(this)" onBlur="fkt_reset_bordercolor(this)" onkeydown="fkt_submit_tab(event,this)" '',''P95801_f50_''||zeile ) "Einzulagernde Menge"
    FROM lapl_lagepos';
    RETURN v_sql;
    end;
    Thank you for help

  • How to copy the value of two tables into a view.

    Hi Experts ,
    I have a requirement in which i have been provided with two tables(T1,T2) of same table structure ,i need to copy their entries into a table view with the same structure as the two tables(T1,T2) .
    suppose T1 has entries name age T2 has entries
    A 20 D 40
    B 30 E 46
    C 40
    the view should have all the entries,duplicate values no issues ...
    Could you please suggest how can i do that ?
    Thanks and Regards
    Debashis

    if table have same structure then you can use
    select * from t1
    union all
    select * from t2

  • How to combine Submit value and item values in report condition?

    What I have is a report with some input parameters, one of which is a Select List with Submit that forces population of a second Select List. There is also a GO button. Depending on the combination of the two drop-downs, one of three report regions then gets displayed. This all works fine, but the users would like the report NOT to show UNTIL they click on the GO button. I'm trying to figure out how to tweak my conditions to include a Submit value along with item values. Can someone suggest a solution?
    (PS. I'm using dependent selects because I'm still using APEX 3.2)

    Hello
    When your page is submitted due to the the parent select list's value getting changed the APEX 'REQUEST' variable is set to the name of the select list item.
    You could perhaps use this to perhaps set a hidden item on the page whose value can then be checked in the conditions that control the display of your report regions.
    varad

  • How to copy automation data between projects?

    I can copy regions from one project to another, but not automation data (e.g. volume curves). Why? How to work around this?
    Cheers,
    Conor

    In project one, open the Automation Event List for the region in question, select all, goto project two, do the same but use paste instead.
    Slightly awkward perhaps, but it works. It would have been easier if the automation would just follow the regions when you drag them between projects.
    Edit: the Automation Event List is only available as a KC, Ctrl + Cmd + E as default.
    /juhani
    Message was edited by: juhani h.

Maybe you are looking for

  • How do I get my iTunes library from Nano to computer?

    I recently lost all my data from my laptop, including my iTunes library and I didn't have it backed up. Each time I try to sync my iPod it gives me the message that this iPod is connect to another library. I was wondering if anyone knows how to impor

  • I am having trouble getting audio from a DVD.

    Initially when I insert the DVD i get audio playing.  Then, I pair my bluetooth headphones, they say they are connected but I get no audio from the laptop speakers or from my headphones.  I disconnect the headphones and still get no audio from the la

  • G4 powerbook and G3 desktop with linksys help

    In either case, laptop, or g3, I can type in the linsys router address and get to config page, but on either - I cannot access the internet. On my laptop, wirelessly - I have tried the WPA password avenue and all kinds of different scenarios, then I

  • What are the questions they will  ask for output determination?

    hi gurus very good evening, pls... can anybody give the details for output determination. what are the settings we to configure in the system for o/p determination? thanks all arun Message was edited by:         arunteja vasan

  • About Word for Mac Header Sections...

    Hi, Could somebody help me pls? I just don't understand why make this Word for Mac new section from my document's page 18th. It's true that part was insert from another doc but now it has to be a whole instead of sections.. I never made sections... w