Capture an advaced table attribute in lov fire action

Hi Gurus,
I have one advanced table in the custom page. There is one lov field in the table. My requirement is, I need to pass a session (one attribute from the advanced table) value when the lov is pressed or tabed out. How to achieve this in the lov fire action.
Waiting for needful solution for this requirement.
Regards,
Tarun

Attach a PPR to the LOV field, capture the LOV event in PFR of CO and get the row reference (if needed). You should be able to create session value or pageparameters etc once you capture the event. Search for older threads on similar topic.
Thanks
Shree

Similar Messages

  • How to retrieve 2 values from a table in a LOV

    Hi
    I'm pretty new to APEX. I try to retrieve two values from a table using a LOV. I have a table named DEBIT with then columns SITE, NAME and KEY
    I want to display NAME to the user in a list. When the user select an item from the list, I want to retrieve the data of the SITE and KEY column of this item in order to launch an SQL command based on this two values.
    How to retrieve thes two values whant the user chooses an item from the list ?
    I apologize for my english, being french.
    Regards.
    Christian

    Christian,
    From what I understood about your requirement, you want a 'select list with submit' which displays "NAME" and based on the value selected, you want to get the corresponding values for "SITE" and "KEY" from the table.
    <b>Step 1: Create a select list with submit, say P1_MYSELECT </b><br><br>
    Use something like this in the dynamic list of values for the select list: <br>
    SELECT NAME display_value, NAME return_value
    FROM DEBIT<br><br>
    <b>Step 2: Create a page process of type PL/SQL block. Also create 2 hidden items P1_KEY and P1_SITE. </b><br><br>
    In the PL/sQL, write something like:
    DECLARE
      v_key DEBIT.KEY%TYPE;
      v_site DEBIT.SITE%TYPE;
      CURSOR v_cur_myvals IS
              SELECT KEY, SITE
              FROM DEBIT
              WHERE NAME = :P1_MYSELECT;
    BEGIN
      OPEN v_cur_myvals;
      LOOP
              FETCH v_cur_myvals
              INTO  v_key,v_site;
              EXIT WHEN v_cur_myvals%NOTFOUND;
    :P1_KEY := v_key;   
    :P1_SITE := v_site; 
      END LOOP;
      CLOSE v_cur_myvals;
    END; <br><br>
    Then you can use these values for whatever purpose you need to.
    Hope this helps.

  • How to set fire action event for particular rows in a table

    HI All,
    I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
    The table has columns like fullname,employee id etc.
    So i want to set fire action event for particulars rows only which will saisfy some condition.

    Atanu,
    Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
    Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
    In either case loop through the rows and when your condition is met write the action to be performed in controller.
    Regards,
    Anand

  • JDev 10.1.3.0.4 studio problem: table attribute not found in @JoinTable

    Hi,
    I tried to compile a EJB3 application in JDev 10.1.3.0.4 Studio version, but the compiler
    complains about the table attribute of the @JoinTable annotation.
    The following code is not accepted:
    * Retrieve the list of clubs this player played for
    * @return List of clubs this player played for
    @ManyToMany(fetch=EAGER,targetEntity=nl.company.contractadmin.Club.class)
    @JoinTable(table=@Table(name = "CONTRACTPERIOD")
    joinColumns = {@JoinColumn(name = "PYR_ID",
    referencedColumnName = "ID")}
    inverseJoinColumns = {     @JoinColumn(name = "CUB_ID",
    referencedColumnName = "ID")
    public Collection getClubs() {
    return clubs;
    public void setClubs(Collection<Club> clubs){
    this.clubs=clubs;
    This code compiles in the EA release of JDev 10.1.3..
    Can anyone tell me if there is something changed in the implementation of EJB3??

    On the latest build of JDeveloper, the backspace key mapping is still NOT WORKING. I've been trying to fix this since the early access release, but I failed.
    Backspace key is already mapped by default, but still not working.
    Did I missed something during the installation here? The installation documentation said that I should only extract the archive then edit the jdev.conf file to set the JDK to use.
    I already pointed my installed JDK and JDeveloper's JDK but the backspace is still not working.
    Help!

  • Issue to check in parent-child closure table attributes to OBIEE repository

    I use OBIEE 11.1.1.5 Administration Tool to open repository in online mode and set up parent-child hierarchy. There are no issues but after I check in changes to server, close repository and open it back from server, closure table attributes are missing.
    On the other hand when I save repository file locally, close it and then open offline, all mentioned attributes are there. Also all other modifications (except hierarchy) are properly checked in to remote repository.
    When I compare UDML from remote and local copy of repository here is part missing in remote:
    CLOSURE TABLE ATTRIBUTES( "xxx".."yy"."ORG_STRUCTURE_CLOSURE"."MEMBER_KEY",
              "xxx".."yy"."ORG_STRUCTURE_CLOSURE"."ANCESTOR_KEY",
              "xxx".."yy"."ORG_STRUCTURE_CLOSURE"."DISTANCE",
              "xxx".."yy"."ORG_STRUCTURE_CLOSURE"."IS_LEAF")
    When trying to build web report I get "[nQSError: 38107] Not all four columns are defined for closure table" (which is actually not surprising).
    Unfortunately I need to do this change in online mode without restarting obiee services.
    Any ideas how to force admin tool to check in all changes to remote repository?

    Finally I applied workaround:
    - modified hierarchy in offline mode
    - deployed repository
    Now when importing repo in online mode closure table parameters are in place.

  • Wee inconsistency in region template "Form Table Attributes"

    In the region template definition there is a field for specifying form table attributes. If I specify table attribute(s) they work as expected. If I then add an item type of "Stop and start table" to the region, the custom attributes are not used in the subsequent tables.
    It's a minor thing... perhaps this can be fixed (or has been fixed) in 3.0?

    Atul:
    I dont know what the 'Alternate Source' is
    In the Source section set
    Source value or expression to be the name of the database column that has the URL (company_url)
    Post calculation Computation to be '<a h ref="' || :pxx_company_url || '">' || :pxx_company_url || '</a>'; where pxx_company_url is the page-item name.
    I have specified 'h ref' instead of 'href' so that the forum software doesnt mess up the post.
    Varad

  • MVC Problem with getter method of table attribute in model class

    Hi,
    I am on 620 SP34. I am writing a bsp application with mvc. One of the model classes has an attribute of type table. I use this attribute in a htmlb-tableview and '//MODEL/ZMY_TAB' for data binding. If I try to activate a getter method for this attribute, the application dumps with exception <i>BSP exception: Structure component with name "ZMY_TAB" does not exist</i>. I find the SAP source, that raising this exception (see below). The source code looks like: <i>"I don't support getter methods for tables in attribute path"</i>! The setter method works fine, so I am at a loss. Has anyone of you wrote a getter method for an table attribute in bsp-mvc? Have I to consider anything special?
    Thanks,
    Carsten
    Main Program CL_BSP_MODEL==================CP
    Source code of CL_BSP_MODEL==================CM00Z
    METHOD IF_BSP_MODEL_BINDING~GET_ATTRIBUTE_DATA_REF
           * check if attribute exists for binding!                                   
             if exists_attribute( l_name ) is initial.                                
               return.                                                                
             endif.                                                                               
    * setter or getter defined? Not supported for DATA REF requests            
             if get_getter( attribute_name = l_name ) is not initial.                 
               raise exception type cx_bsp_inv_component                              
                 exporting name = l_name.                                             
             endif.                                                   

    You have two options:
    1. Make your attributes public. It should work fine.
    2. If you need to process the attribute values before it is used, you can make the attribute private but will need three methods
    GET_T_ZMY_TAB that returns the table
    SET_T_ZMY_TAB that sets the values
    GET_M_T_ZMY_TAB that returns DDIC information about the attribute. The same holds good for structures(Change to GET_S_ and GET_M_S_ ) and simple attributes(Change to GET_ and GET_M_).
    The set and get methods are kind of documented at http://help.sap.com/saphelp_nw04/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/content.htm but there is no mention of the GET_M_ methods. I could not find one single document on the Model part MVC.
    Once I added the GET_M_XYZ methods to my attributes, my BSPs started to work fine.
    Cheers
    Sreekanth

  • Capture from Two Tables and Apply in one Table

    Hi All,
    Is it possible to capture from two tables (master and child table) and apply in one table?
    For example,
    1. DEPT and EMP tables in source database with relation
    DEPT table structure is like DEPT_ID, DEPT_NAME, LOC_NAME
    EMP table structure is like EMP_ID, EMP_NAME, EMP_DOJ, EMP_SAL, DEPT_ID
    2. EMP_DEPT_STAGING in destination database
    EMP_DEPT_STAGING table structure is like EMP_ID, EMP_NAME, EMP_DOJ, EMP_SAL, DEPT_ID. DEPT_NAME, LOC_NAME
    if there is any update in DEPT table, EMP_DEPT_STAGING should get populated with Department and its employee details. Similarly, if there is any update in EMP table EMP_DEPT_STAGING table should get populated with Employee details and along with department detail.
    Is it possible to accomplish this? If yes, could you please provide me some examples?
    Thanks & Regards
    Thiyagu
    Edited by: mt**** on Sep 4, 2011 11:22 PM

    like this
    INSERT @PlantNew  (PlantID, PlantName, PlantDirExists, PlantAssistantDirID, PlantDirID) 
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    You're missing a FROM
    insert into @PlantNew
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    from @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID

  • Custom Table Attribute - How to handle the PropertyScriptElement

    Hi All,
    I have a custom Table attribute that I'd like to process via snippets.
    I've added kCellObjectScriptElement to my ScriptProviderBoss and I can see the request coming in to my ScriptProvider.
    The trouble is, I need to extract the ITableModel and GridID from the IScript in my AccessProperty() method in order to access my custom attribute, and I have no idea how.
    GetObjectType() for the IScript returns c_Cell (i.e. 'ccel')
    The scripting DOM provides the following info:
    cell (kCellObjectScriptElement-object)
    ScriptID = 'ccel', Name = "cell", Description = A table cell., BaseObject = kIDBasedObjectScriptElement, Suite = kTableSuiteScriptElement, Plugin = Table Model.InDesignPlugin CollectionScriptID = 'Cels', CollectionName="cells"
    When I just hard-code a string to represent the attribute, it appears in the snippet as follows:
    <Cell Self="ucbie1i0" Name="0:0" RowSpan="1" ColumnSpan="1" AppliedCellStyle="CellStyle/$ID/[None]" AppliedCellStylePriority="0" Sgdata="Hardcoded String">
        <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle">
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"/>
        </ParagraphStyleRange>
    </Cell>
    Can anyone tell me how to proceed?
    Any help much appreciated.
    - Jackeen

    Moderator message - Please search before asking - post locked
    Moderator message - Cross post locked

  • Unable to set default table attributes in Keynote

    I've been trying to change the default table attributes in one of my themes, and as per the description in the Keynote manual (page 237-8), this should be a straightforward process:
    1) In the slide navigator, create a new slide.
    2) If you're setting up default attributes for a particular master slide (rather than all the masters in the current theme), click Masters in the toolbar and choose the master slide. [I want to change the table attributes in all master slides in the particular theme, I skip this step.)
    3) Place a table on the slide.
    4) Select the table and set its attributes.
    5) Do one of the following: To make the table the default for only the current master slide, choose Format>Advanced>Define Table for Current Master. To make the table the default for all masters slides in the current theme, choose Format>Advanced>Define Table for All Masters.
    6) If you don't want the table on the slide, delete the table.
    Step 1) through 4) is unproblematic, but the second I try to execute step 5), the new formatting is all mixed up, and I am left with a table that looks nothing like the one I have just created in step 4). (Choosing to make the new table layout valid only in the current master doesn't help.)
    Any thoughts on how to sort this out would be greatly appreciated!  I should mention that following a similar procedure for diagrams works like a dream.

    Hi!
              We have same problem!
             The layout can be selected in application, but it is not taken as default.
         We appreciate your feedback
    Best Regards.
    Angelica

  • Haw to capture changes in table control?

    Hi friends,
                    please tell me the answar of this question?
                     Haw to capture changes in table control?

    Hi Rinku ,
    module TC100_tab_modify input.
    MOVE-CORRESPONDING tc100_tab TO gt_tab.
    modify GT_tab
        index TC100_TAB-current_line.
    if sy-subrc <> 0.
    append gt_tab .
    endif.
    endmodule.
    Hope this helps.
    Regards
    Caglar

  • Automatically Change Database Table Attribute Value.

    Hi All,
    I am trying to write a tool which will run as a cronjob. This tool which runs periodically, connects to DATABASE and checks the System Central Date of the Server say 20070828(this format!) and also checks the values in Database Table.. if this matches then The Table Attribute should change from "postponed" to "initial".
    I have a table named "Task" it has attributes.. ID, TaskDate, Name, State..etc
    Now this tool should check the "TaskDate" and alter the "State" if it satisfies the condition.
    Could anyone of you help me by giving some tips, so that I can finish the project asap..? This is the last requirement which is pending now.. I am running out of ideas.. ;-(
    Let me know, if you require more info to suggest me.
    Thanks and Rgds,
    Pradeep

    Running out of ideas in the sense.. my mind is not workin!! ha ha.. just kiddin..
    I already know the concept to schedule cron job.. so the problem here ends..
    I wanted some tips how can i change the attribute by just checkin the TaskDate.. i need something like 20070828(i.e only the date related) but in database i have something like 20070828102000(total time!!)
    If any of you just give an idea.. then it would do a world of good for me..
    Thanks!

  • EJB3 Problem: table attribute of @JoinTable not accepted in JDEV 10.1.3..

    Hi,
    I tried to compile a EJB3 application in JDev 10.1.3.0.4 Studio version, but the compiler
    complains about the table attribute of the @JoinTable annotation.
    The following code is not accepted:
    * Retrieve the list of clubs this player played for
    * @return List of clubs this player played for
    @ManyToMany(fetch=EAGER,targetEntity=nl.company.contractadmin.Club.class)
    @JoinTable(table=@Table(name = "CONTRACTPERIOD")
    joinColumns = {@JoinColumn(name = "PYR_ID",
    referencedColumnName = "ID")}
    inverseJoinColumns = { @JoinColumn(name = "CUB_ID",
    referencedColumnName = "ID")
    public Collection getClubs() {
    return clubs;
    public void setClubs(Collection<Club> clubs){
    this.clubs=clubs;
    This code compiles in the EA release of JDev 10.1.3..
    Can anyone tell me if there is something changed in the implementation of EJB3??

    Use @JoinTable(name, catalog, schema, uniqueConstraints) instead of @JoinTable(table=@Table())
    http://www.hibernate.org/hib_docs/ejb3-api/javax/persistence/JoinTable.html

  • Inserting owa output to long raw table attribute

    hi there,
    i have some old code that creates an html page using owa facilities and then exports the file and uses sqlloader to import the file into a table with a long raw attribute.
    we would like to remove this step accessing the file system and would like to insert the html produced by the htp commands directly into the table.
    can someone provide me with a simple example of how to do this? is owa.get_page_raw of any assistance?
    thanks much.

    thanks for the response.... and i had seen similar examples.
    i guess that i should have asked... can someone provide an example of populating a long raw table attribute? are there any problems with looping and appending?
    create or replace procedure dump_page()
    is
    l_thePage htp.htbuf_arr;
    l_lines number default 99999999;
    begin
    owa.get_page( l_thePage, l_lines );
    for i in 1 .. l_lines loop
    ** populate a single long raw table attribute here
    end loop;
    end dump_page;
    /

  • SCREEN INTERNAL TABLE ATTRIBUTES

    Hi
    In the screen internal table attributes i have seen four groups namely by group1 to 4.
    My doubt is what is the concept behind this??
    How to find out the screen group for a particular field??
    it is already assigned or we have to assign it??
    Thanks and Regards
    Arun Joseph

    Hi Arun,
    (1)  what is the concept behind this??
    I will try to give a simple example for the same
    Imagine a field called TEST1 and test2 for which in the screen we have 4 groups
    Now the requirement is that
    (1) when user enters transaction X1 he needs to see the field TEST1 and TEST2
    (2) when user enters transaction X1 he needs to see the field TEST1 and dont want to see TEST2
    so if tcode =  X1
    we need both TEST1 and TEST2
    so in group1 (first of the 4 boxes we write G1 for both TEST1 and TEST2)
    we write the code
    loop at screen
    if screen-group1 = 'G1'
    screen-active = 1.
    else screen-active = 0.
    so if tcode =  X1
    we need to see TEST1 and hide TEST2
    in the second box of the group we write G2 only for TEST1
    we write the code
    loop at screen
    if screen-group2 = 'G1'
    screen-active = 1.
    else screen-active = 0.
    since TEST2 second box is empty the above code will execute the else part and hide field TEST2 but show TEST1
    In short screen groups help us group a particular set of screen fields based on a particular requirement
    in this case just 2 are mentioned , imagine a case with 10 fields,we can easily control thier screen properties through code by grouping them
    (2) How to find out the screen group for a particular field??
    Check the screen properties of the field in the screen painter and see which all groups are filled
    In the screen painter just see the boxes which are filled for "Group"
    if the first box is filled then in the ABAP code
    check by writing if screen-group1 = 'XX'
    if the second box is filled then in the ABAP code
    check by writing if screen-group2 = 'XX'
    the third box is filled then in the ABAP code
    check by writing if screen-group3 = 'XX'
    the fourth box is filled then in the ABAP code
    check by writing if screen-group4 = 'XX'
    this replaces the check  if screen-name = a field and checks which all fields fall under a group and does action on all the fields based on the code written
    (3)it is already assigned or we have to assign it??
    If it is a stndard program then it comes predefined if the group property of the screen is used to control it..to change it an access key maybe required provided there are no user exits for the same
    in a custom program we can fill the group properties of a screen element
    Pls revert if you need more clarifications
    Reward if helpful
    Regards
    Byju

Maybe you are looking for

  • Forms builder crashes when opening any pll

    Hi, I have gotten this problem that my forms builder crashes immediately when I try to open any pll file. (There is nothing wrong with the pll file - my colleagues can open these files with no problems on their computers). It crashes before the pll f

  • Why is the video quality for AVCHD when uploaded to youtube higher...

    when submitted from a mac? #1 http://www.youtube.com/watch?v=f8d-fQxdBmQ I sent this video directly from my Macbook using iMovie 8.0 and that's the video quality results #2 http://www.youtube.com/watch?v=5U3dDmAX7C0 I uploaded this using Adobe Premir

  • Thread refuses to work

    Ok, this is the weirdest thing ever happened to me ever since i started working with cellphone programming. Lately, one of my thread refuses to activate. I have this thread that communicates with a thermal printer to print something right. Well, i ha

  • Why doesn't my second generation ipod don't get wifi

    Why doesn't my ipod get wifi in my house but my sister's ipod gets wifi in the same house. Please help me

  • Change source array in JComboBox

    Is there a way to change the list of items in a combo box while the code is running? Thanks