How to present nested class attributes as af:table column?

Facade method returns list of classes A, which in turn contains class B.
I would like to present some attributes of class B.
Looking at SRDemo sample - I would like to present product name on SRList page.

why nobody reply ?
I am confused so much !

Similar Messages

  • How to find a classes attributes at runtime?

    Hi,
    I need to write a program that inspects a class and finds out what attributes it has and then converts them to an XML string. Any idea how to get the classes attributes at runtime? I want this to work with 3rd party API's hence the reason I don't just either code a toXML function in each class or have a method to return the attribute names.
    Thanks
    Andre

    Hi,
    I need to write a program that inspects a class and
    finds out what attributes it has and then converts
    them to an XML string. Any idea how to get the classes
    attributes at runtime? I want this to work with 3rd
    party API's hence the reason I don't just either code
    a toXML function in each class or have a method to
    return the attribute names.
    Thanks
    AndreYou might want to take a look at Java's reflection mechanism:
    http://java.sun.com/docs/books/tutorial/reflect/index.html

  • How to use two JS attributes in the single column

    Hi friends,
    I have a tabular form. In that for the one of the column i need to display the content of that column in the right justified manner and for that i have given the below code in the element attributes of the column
    style="text-align:right;"The above is working fine as i can able to print the content in the right justified.
    In that same column i need to receive a calculated value and this value only needs to be printed in the right justified manner.
    For that i have created a function in the javascript and called that function in the element attributes of that column like
    onfocus="calculateNet(this);"But how i can able to call both codings in the same element attribute in the tabular column.
    i tried by giving like specifying comma in between the two, but none of it is firing, what may be the problem and how i can able to give the two in the same element attribute section of the column in tabular form.
    Brgds,
    Mini

    Hi dirk,
    Thanks it worked well.
    I have one question for you in the tabular form.
    i have totally 10 columns in my tabular form, in that 9 column is of database column and only one column is non-database column, while updating the row in the tabular form it is throwing the below error like
    Current version of data in database has changed since user initiated update process. current row version identifier = "A0FD649E5A28DF9244990A3B9368298A" application row version identifier = "44CE02A233595BCA6F7D4A140BD4DF30" (Row 1)I thought the above error is due to the existence of non-database column in my tabular form. Is there any way to solve this issue. I need to have a non-database column in my tabular form but the presence of that column is not allowing to perform update in that tabular form.
    how to get rid of this issue dirk.
    Any ideas??
    Brgds,
    Mini

  • How to create object class for a z table

    Hi All,
    I have a z table and I want to register the changes of fields should be logged to CDHDR and CDPOS table.
    Is this possible?
    If yes how can I creat an object class for a z table. I have already checked the change document option in z data element.
    Please help.
    Regards,
    Jeetu
    Moderator message: standard functionality, please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 6, 2010 6:16 PM

    Tcode SCDO. You'll need to create a change document for you Z table and then use the FM created to record the changed data.

  • How can I apply new attributes to a table-Tag in an JEditorPane?

    I'm using a JEditorPane as a base for a small HTML-Editor. The manipulating of the attributes of an image-tag such as href works fine. But now I want to add the width-attribute to an table-tag.
    The result: Nothing in the table-tag, but other strange things (width is set to any TD oder in every cell a new table is added.
    How can I do this? Any suggestions??
    Thanks.

    Did you ever solve this problem?
    I can manipulte the <p> tags and character styles, but the manipulation of <td>, <div> and other standard tags I cannot figure out.
    Please let us know, [email protected]
    By the way:
    If you have only a width tag in your images, does it resize proportionaly, as in a normal browser or is the height taken from the original picture, as it happens with me?
    This is quite nasty, since I do not know the original picture sizes.

  • How to use selectOneList in a updateable data table column

    Hi,
    Could someone tell me how to use selectOneList (source from a vo X) in an updateable data table column (from another vo Y)?
    I successfully created a page with the data table. However, strange things happened:
    1) the values populated on the selectOneList column don't match the underlying value in vo Y. in fact, every rows in the column got the same value.
    2) when I update one of the rows, the column value in every other rows turns to the new value.
    3) when I sort other columns in the table, the values shown in the selectOneList column get toggled between blank and some incorrect value.
    I believe it is something related to the fact that the same iterator is used to the source view object. If this is the case, how can I solve it?

    See #7 here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html

  • How to write XML with attributes to a table in Oracle?

    I tried to find solutions over the internet. Some of the stuff I looked at:https://forums.oracle.com/thread/2182669 http://www.club-oracle.com/forums/how-to-insert-data-from-xml-to-table-t2845/
    In all these cases, the solution considers XML structure with only nodes and child nodes but not attributes. In fact, one of the solutions suggests transforming the XML into a canonical form with only nodes w/o attributes.
    This is a sample of xml structure I am working with:
    Sample XML
    <rep type="P" title="P List"> <as> <a id="3" /> <a id="4" /> </as> </rep>
    I am working with oracle client 11.2 and SQL developer
    My question is: how to write XML data into a table with attributes also as column values, beside the nodes?

    My question is: how to write XML data into a table with attributes also as column values, beside the nodes
    The question you should be asking is : "how do I access attributes in the XPath language?"
    and the answer to that is easily found in any XPath tutorial you may find over the Internet, it is not related to Oracle in particular.
    Short answer : you use an "attribute::" axis before the attribute name, or more commonly a "@", e.g. @type, @id etc.
    Using the method described in the first link, something like this will extract the root attributes :
    SELECT x.*
    FROM XMLTable(
           '/rep'
           passing <xmltype variable/column goes here>
           columns type  varchar2(1)  path '@type'
                 , title varchar2(30) path '@title'
    ) x ;
    For deeper levels, use additional XMLTable calls as described in the mentioned post.

  • How can show dimension's attributes as BIBeans table's columns?

    I want to create a table like that:
    customer...phone_no....address....money
    Jones........011010111...Washington..$120
    Michal.......022010111...NewYork......$123
    customer info is a dimension ,and money is a measure.
    customer dimension has three attributes: customer & phone_no & address,
    I set customer attribute as a short_description,then it can be shown as a column,
    but only a short_description attribute allowed,how can I show phone_no & address as table's columns?
    thanks for any advice.

    Hello ming,
    You might want to create a new column/attribute in your dimension for each level that contains a description of that level. So when you are doing your mapping, you could put the customer||phone||address into the level description and use that attribute as your short description.
    Example level1_desc = customer||to_char(phone_no)||address.
    hope this helps
    doug

  • How to get all program attributes (Variables, types, tables....)

    Hello,
    i want to analyse a programe source code, so i want to get all variable declaration.
    like in SE38->utilities->display list object, but in abap code.
    can you please help me.

    Hi Yassir,
    If ur program has TOP include then all global variables declarations will exist in this include. All local variables declarations exist with in the FORM.
    Open ur program in SE80. Here u can see all objects of ur program like Fields(Variables), TYPES,Tables, Routines etc.
    Thanks,
    Vinod.

  • How to change the css behaviour of af:table column with rowheader

    Hi
    Can we change the css look and feel of the af:column with rowheader attribute set true ? Currently I am getting a projected look with shades in the left side. I want it to be like normal af:column style. If there any specific styleClass I need to put please provide the details
    THanks
    Suneesh

    Hi,
    you can use skinning for this. The skin selectors are shown here:
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e15862/toc.htm
    Frank

  • How to Load file name in to Oracle table column

    hi,
    I am loading data from flat file(TEST_GRET.DMP) to oracle table.
    while the Target Oracle table has four coloumns, in which one is File_name.
    I want to load the FILE NAME into that table too. as there is no ????
    how it can be done???
    Regards,

    If you are loading multiple files using a single interface, using variables, Bhabani's first solution and my solution are good.
    If you only have one interface with your datastore, you know the file name and it won't change, you can use Bhabani's second solution or mine.
    I did not test my solution but it is quite simple to test.
    Just put the code provided for the mapping of your target column.
    This solution has the advantage it should always work.
    Regards

  • How to find the sum of an advanced table column?

    Hi All,
    Good Morning..
    I have requirement where i need to calculate the sum of a column in an advanced table.and i need to put that value into some other field.
    i am doing customization so i can't touch the Standard page properties.so i need to achieve it through Pro-grammatically..
    my column name is unit price in the advanced table region.so i need the code to calculate the sum of the unit price.
    Thanks in advance
    Bharat

    Hi Bharat,
    No need for Programatic way as Advanced Table already provides this facility.
    The following steps describe how to enable Totaling for a column in the footer of an advanced table.
    Step 1: In the Structure pane of OA Extension, select the column container for which you want to enable Totaling Any column except for the first column can be totaled. Set the Total Value property for this column container to True.
    Step 2: In the Structure pane, select your advancedTable region and choose New > footer from the context menu. OA Extension creates an advancedTables Components folder containing a footer named child, that contains a tablefooter container (labeled tableFooter1).
    Step 3: Select the tableFooter container and choose New > total from the context menu. OA Extension creates a tableFooter Components folder containing a total named child, that contains a new totalRow item as shown in the figure below.
    Please let me know if you are still unable to get the Total Column
    HTH,
    Regards,
    Syed.

  • How to keep the cellEditor after remove/add table columns

    The cellEditor/render will be invalid after fireTableStructureChange event. How to make the cellEditor work properly as before the structure changed?

    After a fireTableStructureChange event the TableColumnModel is recreated and the default renderers and editors are used. If you are using custom renderers or editors you need to reinstall them for the appropriate column.

  • How to dynamically get default value from a table column

    Hi all,
    Here's my problem: Our front end application sends insert and update queries to a pl/sql package. I've got a procedure that gets a PL/SQL table with all the column names an values, a table-name and a primary key name and value. That procedure creates an insert or update statement. So far, so good.
    Now the problem: our front end doesn't know what the default value for a column is. So when a number field doesn't get a value in the front-end, it's inserted with a value '0' though is should ben NULL. My sollution for this is to know the default value of a column: when there's a default of '0', then the value that will be inserted is '0'. When there's no default value and the column can ben NULL, it'll be inserted as NULL. if the column has a not null constraint, a '0' will be inserted.
    Ofcourse I can get the default value from the system-views all_tab_columns or user_tab_columns, but our application is installed at some 100 clients, and has various database installations. Most of the times, the tables are in the same schema as our procedure that performs the insert or update, but sometimes some of the tables are in another schema (in the same database) and also sometimes some tables are stored in another database. In all these situations, a synonym for that table exists in the schema.
    Is there a api function or procedure that I can call to get the default value of a column? I looked at dbms_sql and dbms_metadata, but those packages don't give me that perticular information. if not, I'll stuck with the 'does table exists in schema' yes->use table, no query user_synonyms to look for the owner of the table (and database link) and query all_tab_columns to get the default value. Only this seems a bit overkill to me.
    I hope I'm clear enough? And please don't reply with "don't do inserts this way"! I know, this is not the most optimal sollution, but it does gives us a couple of advantages in our application...

    there is no way that I can think of, apart from what you have already discovered (i.e. views), where you can determine if a column has a defuault value defined against it.
    The other option is triggers, but I guess doing that across 600 tables would not be an option, and besides I stay clear of triggers.
    A different approach therefore, if you cannot pre-determine the data, is to consider a post problem handler, hence I suggested the use of an exception handler.
    The exception handler works regardless of whether the statement is dynamic or not.
    SQL> truncate table abc;
    Table truncated.
    SQL>
    SQL> declare
      2    NULLVAL exception;
      3    pragma exception_init(NULLVAL, -01400);
      4 
      5  begin
      6 
      7    begin
      8 
      9      execute immediate 'insert into abc (y) values (1)';
    10 
    11      exception
    12        when NULLVAL then
    13          -- handle the error
    14          execute immediate 'insert into abc (x,y) values (0,1)';
    15 
    16    end;
    17 
    18    commit;
    19   
    20  end;
    21  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from abc;
             X          Y
             0          1

  • How to display the sorting arrows in the table column header

    Hi
    I am doing a sorting for some columns from the click of the table column headers, In Developer studio, we are able to view the up and down arrows, I need that also to be made visible at run time, so that the user knows that there exists sorting based on that particular column. Is there any other way of doing it ? I cant place more than one control on the header or wrap the text to two lines..also. please clarify. thanks

    I assume you are using NW 04.
    The table column header contains a IWDCaption element which may display an icon and a text. See property IWDCaption.imageSource.
    The table tutorial might also be helpful.
    Armin

Maybe you are looking for

  • ABAP and JAVA stack on different SP Level

    Hi We tried to move our XI System on SP 21 and we managed to do so for ABAP stack on 21, while Java is still in 19. Will it make a difference and any problem will occur, is there any Notes/Link in this regard for a matrix to prove that inconsistency

  • Do we need a Inbound Inteface  in a Proxy to File scenario

    Hi, In Proxy To File Scenario, please let me know whether we have to create inbound Message Interface or not ? 1) If it not required to create inbound Message Interface in Proxy To File Scenario, then what is the procedure to pick the Inbound Interfa

  • Grant Permission to create/drop functions only

    I have to grant permissions to a user to drop/create/execute functions owned by several schemas. How do I do it without giving away the keys? Thanks

  • Can anybody provide me the link between these tables

    Hello, Can anybody provide me with the link between these tables. Is there any link for the CTSNUMC and PNTPR 1) /SAPSLL/CTSNUMC          Fields: STCTS                    CCNGN 2) /SAPSLL/PRGEN         Fields : ATTR20A                   ATTR05A      

  • Logon Database Trigger

    I want to write a database trigger that fires when a user logs onto the database. Oracle has this in 8i+. I am using 9i. I want to use this trigger to determine if the session is questionable(ie. Hacker). If it is then i want to either kill the sessi