Dynamic names for Datagrid column headers?

How can I put data from my ws into the headerText for a
DataGrid?
I was hoping to find a defined property something like
"HeaderTextFunction" built into the DataGrid but I didn't see
anything like that. Do you have to use the Advanced DataGrid for
something like this?
I also can't make out whether I should import the WS value
into an XMLList or just parse it directly into a function, or what
the syntax of this should be vis a vis e4x etc.

"Developer504" <[email protected]> wrote in
message
news:gfc8pi$17p$[email protected]..
>
quote:
Originally posted by:
thebouv
> First element of the header list returned by
myheaders..header
>
> Like I said, it'll depend on how your XML is set up the
exact syntax of
> the
> e4x you'll use. If you have a more specific example I
could help you
> further.
> If not, good luck!
>
>
> This is the structure of my XML file:
>
> <bankCodes>
> <banks bank1="Bank A" bank2="Bank B" bank3="Bank C"
bank4="Bank D"
> bank5="Bank E" bank6="Bank F"/>
> </bankCodes>
>
> There is only one record.
>
> So what I wanted to do was put a different one of these
on each column
> header.
yourXML.attributes(0), yourXML.attributes(1), etc.

Similar Messages

  • Finding source database table/column name for a column in a view

    Hi i need to be able to identify the original database table/column name for a column in a view.
    e.g. say i have a view like this
    create v1 as select a.name fname, b.name bname, c.name cname,......
    from u1.names a, u2.names b. u3.names c
    where .....
    Now I want to find out that the database table/column name for the fname, bname and cname columns in the view v1, which in this instance is u1.name.name, u2.names.name, u3.names.name.
    But i need to be able to do it for any view. Short of parsing the SQL is there an easy way of doing this?
    Now obviusly I can't do this for virtual columns but I will know my column is not virtual as it has an index on it.

    But i need to be able to do it for any view. Short of
    parsing the SQL is there an easy way of doing this?No, parsing the SQL is the only way. Good luck it is not something I would want to attempt.

  • Alias name for the column name in Prompt

    Hi,
    I have a scenario where I am taking column names into prompt. I have used the following SQL in the SQL results under "Show" option of the Prompt.
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' END FROM "Real Time"
    My problem here is I am getting the column names into the Prompt as "Orders"."By OrderDate" and "Orders"."By ShipDate", which is not acceptable and readable for mat for the user. Is there any way that I can assign an alias name for the column name such as OrderDate and ShipDate in the above SQL.
    Your quick respose is appreciated.
    Thanks,
    Rama

    hi,
    try an alternative one....in your administrator make new columns with alias to ones you want...so you wiil be able to show whatever you want.
    Otherwise,is it possible to show
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' as "xxxxxxxxxxxxx"END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' as "yyyyyyyyyyyyyyyy"END FROM "Real Time"
    Ending,you want the data from your columns?or just the name??
    hope i helped...
    http://greekoraclebi.blogspot.com/

  • Dynamic Name for Yellow Interface Table

    Hi All,
    Can anybody guide me how to use dynamic name for Yellow Interface Target Table.
    Eg: T_SESSIONID.
    I tried
    1)Refreshing the SESSIONID in a Variable V1 and using T_#V1 directly
    2) Refreshing the T_#V1 in a Variable V2 and using #V2
    But its not creating properly.
    Please guide.

    You want to create dynamic target table name right?
    You can refresh a variable like #GET_SESSION
    #GET_SESSION= SELECT <%=odiRef.getSession("SESS_NAME")%> FROM DUAL
    My tmp table name like TMP_#GET_SESSION
    then in your package refresh #GET_SESSION variable and you can use it.
    I hope this can be helpful
    Thanks

  • Dynamic name for the physical table

    Hi Guys,
    How to setup dynamic names for the physical table? Where it is useful?*
    Pls help me out on this.
    thanks

    Check this similar post which might be of help dynamic physical table source schema
    Cheers,
    KK

  • DataGrid: data driven datagrid column headers

    I have a datagrid that I would like to populate the
    datagridcolumn headers with specific data at runtime.
    I'm going through the array of data objects and creating each
    column but I still need to figure out how to set the header for
    each one. I tried setting the itemRenderer for the column to a
    simple lable component but then I don't know how to set the text of
    this label to the correct datadriven objects say name field.
    Any help would be greatly appreciated,
    Ruben

    I figured this out. Basically before you set the
    headerRenderer you get your component and wrap it around a
    ClassFactory object and then set the property you want to appear in
    the header. You can do this in a loop and change the header as you
    go. Here is some code that might go in a loop:
    var lblFact:ClassFactory=new ClassFactory(Label);
    lblFact.properties={text:"changing text data"};
    dgColumn.headerRenderer=lblFact;
    Maybe this will help someone later on.

  • Dynamic name in formula column header

    Greetings, i have a question - is it possible to create dynamic header of formula column?
    For example - year on the form is 2012? in the header i want something like ratio "current year picked from forms year" to "current year -1", i.e. ratio 2012 to 2011
    Is it possible?

    It looks like forms are not supporting text functions like FR yet, I gave it a try <<MemberName("<Formname>","<POV DIM Name>)>> in the formula header area and it didn't like it. It is just displaying what ever I typed in there.

  • Dynamic binding for table column

    Hi,
    I am using standard application and in a table (not ALV) i want to chnage the name of a column. Already a OTR is placed in it so am planning to do a dynamic bind for the text in the header. Kindly suggest ways.
    Thanks,
    Koushik

    DATA:
            l_caption          TYPE string,
            l_title            TYPE string.
      data lr_caption type ref to cl_wd_caption.
    *---Get OTR Text for Value Description
      CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
        EXPORTING
          alias      = 'ZPERF_MGMT_DEV/RATING'
      language   =
        RECEIVING
          alias_text = l_title.
    lr_caption ?= view->get_element( 'TBL_VAL_HELP_DESCRIPTION_HEADER' ).
    lr_caption->set_text( value = l_title ).

  • How to give dynamic name for csv export files?

    Hi,
    how we can give dynamic file name for each csv export file? ex(&item_name.csv)
    I am using apex 4.1 and IE 6,
    thanks in advance
    regards
    Chandran

    Please help me on this
    I am using report template as a csv export..
    when user click on download link on other page he will redirect to csv export temlate page and he is is directly get the open or save window
    but dynamic title name is not working for only for this.
    regards
    Chandran

  • File to mail scanario   Dynamic name for e-mail attachments

    Hi ,
    I am using standard mail package for Dynamic name in the mail attachment.
    Content_Disposition : = attachment
    Content_Type =  file name  I am taking from DynamicConfiguration
    Now I received mail , but file name have (abc.txt.dat) extension .dat  but i want it same as send by sender file adapter(abc.txt)
    Please suggest how to handle this.
    Thanks
    Mohit

    Hi,
    my pretty solution
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3202
    Regards,
    Michal Krawczyk

  • Dynamic names for I$ ,C$ and E$ tables in ODI

    Dear ODI Team,
    We have a requirement where we are loading header data and then line data in our Package.ODI internally creates work tables to load data into target tables.If multiple sessions of the same interface is executed at the same time the I$table of the previous session affects the I$ table of the next session.Hence if session1 has completed loading then it is at the stage of dropping the I$ table.Hence the second session is erroring out.Kindly let me know if there is an option to create these work table names dynamically for each session
    Thanks ,
    Anand

    Even I an getting similar error trying to use Global variable for dynamic names of the work tables
    Scripts Generated by the IKM :
    create table XDO.#global."gv_test_dynameSSTST_AN"
    ANY_NEW_ID NUMBER(22) NULL,
    ANY_NEW_ATTRIB1 VARCHAR2(50) NULL,
    ANY_CONC_ATTRIB2 VARCHAR2(150) NULL,
    DECODE_CODE1 CHAR(5) NULL,
    ANY_REF_CODE2 VARCHAR2(60) NULL,
    ANY_DATE1 DATE NULL,
    ANY_DATE2 DATE NULL,
    IND_UPDATE char(1)
    NOLOGGING
    Getting the following error on execution :
    911 : 42000 : java.sql.SQLException: ORA-00911: invalid character
    java.sql.SQLException: ORA-00911: invalid character
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
    at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.g.y(g.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Thread.java:595)

  • Custom dynamic names for outbound payment files in R12

    I have asked this on a couple of forums, but somehow missed this one.
    We are upgrading from 11i to R12 and require custom dynamic file names for the Payments output files (cheques, advices, efts). I see that you can create a custom prefix and extension through payment profiles, but the functionality is very limited (i.e. no date stamp). I am thinking that others must have come across this before, and am wondering how you have handled such a requirement. Is it possible to add custom steps to the seeded payment process? Can the payment process be run as part of a request set and then a custom step added which grabs the output file and renames it based on information obtained from the batch and the process profile. Our goal is a fully automated payment process where batches are scheduled, processed and files renamed and sent out to banks and a 3rd party printer with no user interventation.
    Any advice/tips would be appreciated.
    Thanks.
    Tam.

    Hi Tam,
    Could you please let me know if you got the solution as we have a similar requirement of renaming the output file as perthe business needs fro which we need custom program.
    Thanks,
    Manas

  • How to provide dynamic labels for calculated columns in HANA calc views

    Hi all,
    we have the requirement to provide dynamic labels for some calculated columns in our calculation view - how to do that?
    Thanks and kind regards,
    Alexander

    Calculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
    Consider using a workflow to accomplish your goal.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Dynamic names for class and variable

    Hi Folks,
    How do you make a new instance of a class with a dynamic name.
    var dynamicname = new dynamicname()
    i try something
    var this["test"]:Class = new ["Test"]()
    but offcourse its not this...
    I need this couse i have a librairy with SWC fonts they are only reference.. I get the font name from a CSS file and after i need to make a instance of the SWC file so the font is embedded.
    Thanks anyone who can help me!
    Cheer, Michierl

    Btw Murphy its not working......
    var fontRef = Class(getDefinitionByName("Arial"));
    var font = new fontRef();
    trace(font);
    The varibable definition not defined.
    I have 5 fonts as SWC Files set as reference lib in flex.
    But i dont wann to load all fonts yet cosue that will make my movie 200kb ... so i copy the fontname of the stylesheet and then make a instance of that font class.
    But how? With yours it need already a refrences to that class.

  • Cannot generate dynamic alert for initial column in SNP.

    Hello,
    I have an SNP alert macro with a simple condition running from Initial column for 158 weeks. The alert is generated correctly for all other weeks but not for initial column.
    The IF condition works correctly because a CELL_BG() in the same alert macro is correctly changing the color of the Initial column cell.
    Is there some setting I need to make to generate alert for initial column?
    Regards,
    SS

    Hello jejeje,
    thanks for your efforts - what you describe is something users have found out on our side too - a problem remains: you can save this setting "Period from last Selection" and it brings you to the INITIAL column but: once you have scrolled forward in the SNP data view (so that the INITIAL column has disappeared) and you leave the SNP data view or select another product ... it "remembers" that you last time left the data view NOT having INITIAL column as a start column.
    So, my users say that they scroll back to INITIAL column before selecting another part or using another SelectionID or leaving the SNP data view ... and of course they hate this since they have to do this a few hundred times a day worse case.
    We had a call open to SAP on this and I told them that is about productivity and usabaliity issue moving from SCM5.0 to SCM7.0 - but they have nothing more to say than "not supported anymore" - and the ultimate solution is / will be to modifiy SAP SCM standard coding - unless somebody from SAP is reading the discussioons here and is dedicated to help their customers which pay millions every year into SAP support fees.
    Thanks for your responses and effort !
    Regards
    Thomas

Maybe you are looking for

  • Can't load music or podcasts after downloading a video

    I had subscribed to the Twilight Eclipse podcast, and after downloading the latest video, my iPod refuses to load my music, podcast, and video libraries. Any idea why? My friends also downloaded the video with no effects. Please help!

  • Trying to up date my i pod and now it will not turn  on

    tried to update the os and the ipod will not turn on. shows the itune logo and usb cable. every time i have tried to up date the ipod i have problems.  how can i get ipod to reset

  • Have a problem with bb browser

    Since 2 days I was using my twitter from bb browser very well but today I installed ubertwitter and used my twitter through it then when I uninstalled it I can't access my twitter from bb browser every time i type my user name and password it says wr

  • Airplay Video quality and buffering

    I'm new to apple TV and am trying to watch my home movies (holidays etc) over airpay. However, I've found that if I try to watch in Full HD there's a considerable amount of buffering (2-3 mins) before the movie will start to play, and if I skip if bu

  • How can a Multiple Projects in P6 can be linked to One Project in Unifier

    Hello Team, Can anyone help me with some solution to link Multiple Projects in P6 to a One Project in Unifier Regards, Avinash