How to read values from the following XML?

I have been using "extractValue" to get the values from a xmltype field and no problems until now.
The xmltype now is like:
<a>1</a>
<b>2</b>
<c>1221</c>
<c>1412</c>
<d>11111</d>
<e>3333</e>
I'm able to read values from 'a,b,d,e' but not from 'c'.
Questions:
1)- Is posible to read the values of field c?. How?
2)- If is not posible to read the field values, Is posible to transfor the xmlfield to:
Where I will be able to use xmltable columns and loop getting the values.
<a>1</a>
<b>2</b>
<k>
<c>1221</c>
<c>1412</c>
</k>
<d>11111</d>
<e>3333</e>
Like always
Thank you in advance for your help.
Jose Galan

SQL> with XML as
  2  (
  3   select xmltype(
  4  '<root>
  5    <a>1</a>
  6    <b>2</b>
  7    <c>1221</c>
  8    <c>1412</c>
  9    <d>11111</d>
10    <e>3333</e>
11  </root>'
12  ) XMLDOC
13    from dual
14  )
15  select a, b,c, d, e
16    from XML,
17         XMLTABLE
18         (
19            '/root'
20            passing XMLDOC
21            columns
22            A number(5) path 'a',
23            B number(5) path 'b',
24            D number(5) path 'd',
25            E number(5) path 'e',
26            C_XML_FRAG xmltype path 'c'
27         ),
28         XMLTABLE
29         (
30           '/c'
31           passing C_XML_FRAG
32           columns
33           C number(5) path '.'
34         )
35  /
         A          B          C          D          E
         1          2       1221      11111       3333
         1          2       1412      11111       3333
SQL>

Similar Messages

  • How to read and save the following XML-Doc?

    Hi all,
    I have a XML-Document:
    <root>
    <employees>
    <emp1>
    <ename>Test1</ename>
    <empno>1</empno>
    <sal/>
    <ord>
    <item>1</item>
    </ord>
    </emp1>
    <emp2>
    <ename>Test2</ename>
    <empno>2</empno>
    <sal>1000</sal>
    <comm>200</comm>
    <ord>
    <item>3</item>
    </ord>
    </emp2>
    </employees>
    </root>
    This should I save in the databse table:
    CREATE TABLE XML_DOC
    ID NUMBER(38),
    FATHERTAG NUMBER(38),
    TAGNAME VARCHAR2(250),
    TAGCONT VARCHAR2(4000)
    And tha data should be saved in the following format:
    =======================================
    | ID | FATHERTAG | TAGNAME | TAGCONT|
    | 1 | | root | |
    | 2 | 1 | EMPLOYEES | |
    | 3 | 2 | EMP1 | |
    | 4 | 3 | ENAME | Test1 |
    | 5 | 3 | EMPNO | 1 |
    | 6 | 3 | SAL | |
    | 7 | 3 | ORD | |
    | 8 | 7 | ITEM | 1 |
    | 9 | 2 | EMP2 | |
    Has anyone any Idea how to realize it?
    Regards

    Leonid,
    Why don't you just store the xml document in the database as an xmltype? You could then build a view over the object-relational table to pull the data out into the format you want.
    The following code Example is from one of my favorite DBA's Johnathan Gennick and can be found at this link.
    http://www.oracle.com/technology/oramag/oracle/03-jan/o13xml.html
    CREATE VIEW cd_master (Title, Artist, Website, Description) AS
    SELECT extractValue(value(x),'/CD/Title'),
    extractValue(value(x),'/CD/Artist'),
    extractValue(value(x),'/CD/Website'),
    extractValue(value(x),'/CD/Description')
    FROM CD331_TAB x;

  • How to read values from DMM4040

    Hi,
       I am using DMM4040, NI PXI 6509 device.
    I need to make some port pins high which i have already done and now i have to read value captured by DMM then i have to make my port pins low if my value is within limits.
    Can u suggest me how to read values from DMM and then by notification i ll make my port pins low.
    '' A professional is someone who can do his best work when he doesn't feel like it''...........

    What language are you using?  If using LabVIEW, you use the NI-DMM API to communicate with the 4040.  Just take your reading, do your limit comparison, and set your lines based on the comparison results.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to read value from Key flexfield added on to the newly created SIT

    Hi Experts,
    I have a requirrment to display a new structure in the Special Information Types (SIT) screen in SSHR. The data entered into the segment needs to be validated using PL/SQL function.
    I have performed below steps to display the structure/field on SIT Page
    1. Created new flexfield structure as XX_LEAVE_ENCASHMENT under the "HUMAN RESOURCE" Application (Application id- 800) and flexfield TITLE "Personal Analysis Flexfield" (PEA).
    2. Added a new segment "Encash Days" for the newly created flexfiled structure "XX_LEAVE_ENCASHMENT".
    3. Added this new structure in the Special Information Types form in HRMS responsibility
    4. The structure is enabled on the SIT screen.
    Now I want to validate the data entered in Encash Days field in this page by calling a PL/SQL function. This can be done by extending the SIT page Controller.
    But how should the ID of the newly enabled segment (in the new Flexfield strucuture) be retrieved in the controller inorder to read the user-entered value (to further call the validation program)? Or is there any other way of achieving this functionality in OAF?
    Please help.
    Thanks.

    Hi,
    Yes, u can get the value from the SIT and perform the relevant validation too.
    Refer http://apps2fusion.com/at/43-ss/453-oaf-extension-case-study
    Regards,
    Gyan

  • Getting Tag and value from the selected Xml element value

    Hi All,
    I have an xml file which i import to the Indesign CS3 .From the structure view , i drag and drop the root node on to the page. Now i select an xml value from the page. Now i need to get the element tag and value from the selected value.
    For example
    File Name : sample1.xml
    <Root>
    <employeeName> A</employeeName>
    <employeeEmail>[email protected]</employeeEmail>
    </Root>
    Now i import this sample.xml in my indesign CS3 and from the structure view i drag the Root  tag and drop it on the page.Now the values of the element tag are displayed.
    Now i select "[email protected]" from the page and i have a menu "Get Selected XML" on clicking which  i should get element tag with value.(i.e <employeeEmail>[email protected]</employeeEmail>)
    How to go about it.?
    Thanks
    Sakthi

    Hi Steve,
    If you haven't already done so, I recommend posting this question in the LivCycle Forms forum.
    Jared

  • How to pass value from the Z Report to the selection screen of the std rep

    Dear Experts,
    i have developed a report and the values are maintained only in internal table based on some condition.  When I execute the report, for example MM60, there is a material number field for multiple selection.
    the report should call the standard transaction and pass the values from the internal table to the multiple selection- material number of the standard transaction.
    the standard transaction should never get executed automatically.  Only the value should get passed from internal table to the standard t code.  Please help.
    regards,
    Shankar

    Hai
    Go through the following Documents
    SUBMIT rep.
    Additions
    1. ... LINE-SIZE col
    2. ... LINE-COUNT lin
    3. ... TO SAP-SPOOL
    4. ... VIA SELECTION-SCREEN
    5. ... AND RETURN
    6. ... EXPORTING LIST TO MEMORY
    7. ... USER user VIA JOB job NUMBER n
    8. ... Various additions for parameter transfer to rep
    9. ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Calls the report rep . Leaves the active program and starts the new report rep .
    Addition 1
    ... LINE-SIZE col
    Effect
    Prints the report with the line width col .
    Addition 2
    ... LINE-COUNT lin
    Effect
    Prints the report with lin lines (per page).
    Addition 4
    ... VIA SELECTION-SCREEN
    Effect
    Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained.
    Addition 5
    ... AND RETURN
    Effect
    Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode .
    Addition 6
    ... EXPORTING LIST TO MEMORY
    Effect
    Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" .
    Addition 7
    ... USER user VIA JOB job NUMBER n
    Effect
    Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN .
    Note
    When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
    Addition 9
    ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Uses variants of the program prog when executing the program rep .
    Note
    Important
    The programs prog and rep must have the same SELECT-OPTIONS and PARAMETER s. Otherwise, variants of the program prog may be destroyed.
    Note
    When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari . On the other hand, all variant-related actions on the selection screen of rep (Get , Save as variant , Display , Delete ) refer to the variants of prog .
    Example
    SUBMIT REPORT01
    VIA SELECTION-SCREEN
    USING SELECTION-SET 'VARIANT1'
    USING SELECTION-SETS OF PROGRAM 'REPORT00'
    AND RETURN.
    Effect
    Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00 .
    Note
    Runtime errors
    LOAD_PROGRAM_NOT_FOUND : The specified program was not found.
    SUBMIT_WRONG_TYPE : The specified program is not a report.
    SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a report parameter.
    SUBMIT_WRONG_SIGN : Invalid value passed to a selection with the addition SIGN .
    SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with WITH sel IN itab had an unexpected structure.
    Try with this Example
    Data: listobject like abaplist occurs 1 with header line.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1 .
    IF sy-subrc <> 0.
    message ID '61' TYPE 'E' NUMBER '731'
    with 'LIST_FROM_MEMORY'.
    ENDIF.
    Thanks & regards
    Sreenivasulu P

  • How to read value from gride

    dear all
    can you tell me how to read the value from the gride view coloum...
    when i double click on the RowsHeader then i need to pick the value for 2 coloum.
    thanks in advance...

    Hi Kishor,
    Try This......
    If pVal.FormUID = "test3" And pVal.ItemUID = "grid" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK And pVal.BeforeAction = False Then
                oform = sbo_application.Forms.Item("test3")
                ogrid = oform.Items.Item("grid").Specific
                For i As Integer = 0 To ogrid.Rows.Count - 1
                    If ogrid.Rows.IsSelected(i) = True Then
                        MessageBox.Show(ogrid.DataTable.Columns.Item(0).Cells.Item(pVal.Row).Value)
                        MessageBox.Show(ogrid.DataTable.Columns.Item(1).Cells.Item(pVal.Row).Value)
                    End If
                Next
            End If
    Thanks
    Shafi

  • How to get value from ___.co.xml ???

    Hi All,
         I am trying to deveop a KM service that should be configurable(by the User) so that he/she can specify the folder on which the service should act on...
    I have created a CM repository called "<b>test_Rep</b>" for my purpose and added my rep. service to it. Guess what! The uploaded documents are getting renamed .. HURRAY!!!!!!!!!
    i changed the
    ___.co.xml
    and
    ___.cc.xml
    files by adding another parameter!
    After editing the XML files, i have tried to read the properties in the received() method as follows :
    String repositoryPath = this.properties.getProperty("myFolder");
    <b>It works!</b>
    Original value of myFolder (in co.xml file) = /test_Rep/folder1
    <Configurable .....>
    <property name="myFolder" value="/test_Rep/folder1" />
    </Configurable>
    But, in PORTAL when i change, System Admin >> System config >> Content management >> rep. services >> com.test.SampleService >> myFolder = <b>"/test_Rep/folder2"</b>, and try to check in that folder... it doesn't work .. 
    I even restarted the server .. but, doesn't help!
    <b><u>Doubts:</u></b>
    1) when the user changes the value of 'myFolder' (in  content mgt >> rep. services >> com.test.SampleService), does it change the XML file inside the par file?????
    2) How should i retrieve the value of this parameter at runtime (the latest value which the user entered in  content mgt >> rep. services >> com.test.SampleService)
    please see the below code of received(IEvent event) method:::::
    private static final Location log = Location.getLocation(SampleService.class );
    public void received(IEvent event) {
      IResourceEvent myEvent = (IResourceEvent) event;
      IResource resource = (IResource) myEvent.getParameter();
      String repositoryPath = this.properties.getProperty( "myFolder");     //getting folder name at runtime!!!!!!!
      String parentPath = "";
      try {
         parentPath = resource.getParentCollection().getRID().toString();
      } catch (AccessDeniedException e1) {
         e1.printStackTrace();
      } catch (ResourceException e1) {
         e1.printStackTrace();
         if (resource != null && (!resource.isCollection()) ) {
         try {
         /* my business logic...
         } catch (NotSupportedException e) {
              log.errorT("Got exception: Not Supported Exception!" );
         } catch (ResourceException e) {
              log.errorT("Got exception: Resource Exception!" );
    plz help..
    Any ideas on this scenario ..
    Regards,
    Krish.

    Hi,
    you don't have to create a ConfigListener. But if you want it - you can. Have you noticed in another sections of CM configuration that you do not have to restart the J2EE to apply changes?
    In your *.cc.xml you can define it by adding the <i>hotReload, hotLoad, hotUnload</i> attributes. See my example:
    <ConfigClass
         id="name"
         name="NewDocuments"
         hotReload="true"
         hotUnload="true"
         advanced="false"
         hotLoad="true"
         configurable="cz.sap.szif.newDocuments.handler.EventHandlerService" >
                <attribute name="name" type="string" mandatory="true"  visibleColumn="true"/>      
              <attribute name="replicator" type="boolean" mandatory="true" default="false"/>              
    </ConfigClass>
    Now create an implementation of IConfigListener interface (something like this):
    public class NewDocumentsServiceConfig implements IConfigEventListener {
      // plugin definition
      private static final String PLUGIN_NEW_DOCUMENTS = "/cm/customer";
      private static final String CONFIGCLASS_NEW_DOCUMENTS = "NewDocuments";
      private static final String readPlugins[] = { PLUGIN_NEW_DOCUMENTS };
      // config data
      private List configList = null;
       * constructor
      public NewDocumentsServiceConfig() {
        try {
          // read initial data
          reconfigure();
          // register event listener for my configuration
          Configuration.getInstance().getConfigEventServiceInstance().addConfigEventListener(
            this,
            readPlugins);
        } catch (Exception e) {
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
       * call before object destroy
      public void destroy() {
        try {
          // unregister listener
          Configuration.getInstance().getConfigEventServiceInstance().removeConfigEventListener(this);
        } catch (InitialConfigException e) {
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
        } catch (Exception e) {
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
      /* (non-Javadoc)
       * @see com.sapportals.config.event.IConfigEventListener#getConfigListenerId()
      public String getConfigListenerId() {
        return toString();
      /* (non-Javadoc)
       * @see com.sapportals.config.event.IConfigEventListener#configEvent(com.sapportals.config.event.ConfigEvent)
      public void configEvent(ConfigEvent event) {
        // this is a simple example
        // if an event occurs - reconfigure == re-read all configurations
        // ...you could catch which configuration was changed and only change the config for only this one
        try {
          if (event.getType() != ConfigEvent.CONFIGURABLE_LOADED
            && event.getType() != ConfigEvent.CONFIGMANAGER_TERMINATED)
            reconfigure();
          LogWriter.traceInfo(LogWrapper.trace, " event:" + event.getType());
        } catch (Exception e) {
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
       * Reload all the configurations
      private void reconfigure() {
        try {
          IConfigClientContext context = IConfigClientContext.createContext(ConfigCrutch.getConfigServiceUser());
          IConfigManager cfg = Configuration.getInstance().getConfigManager(context);
          IConfigPlugin configPlugin = cfg.getConfigPlugin(PLUGIN_NEW_DOCUMENTS);
          this.configList = new LinkedList();
          if (configPlugin != null) {
            LogWriter.traceInfo(LogWrapper.trace, " configPlugin:" + configPlugin.getName());
            IMutableConfigurable[] configurables =
              configPlugin.getConfigurables(CONFIGCLASS_NEW_DOCUMENTS, false);
            for (int j = 0; j < configurables.length; j++) {
              IMutableConfigurable configurable = configurables[j];
              if (configurable.getConfigClass().getName().equals(CONFIGCLASS_NEW_DOCUMENTS)) {
                // this is a simple object which holds the attribute values
                // in a HashMap (hMap.put(PROP_NAME, configurable.getPropertyValue(PROP_NAME));...)
                NewDocumentsConfigRecord record = new NewDocumentsConfigRecord(configurable);
                this.configList.add(record);
          } else {
            LogWriter.traceWarning(
              LogWrapper.trace,
              " configPlugin == NULL for pluginName:" + PLUGIN_NEW_DOCUMENTS);
        } catch (InitialConfigException e) {
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
        } catch (Exception e) {
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
       * @return all my configurations
      public List getConfigList() {
        return this.configList;
    ...and in your service:
    public class EventHandlerService extends AbstractService implements IEventHandlerService {
      private NewDocumentsServiceConfig config_listener;
      public void afterInit() {
        // setup config listener
        config_listener = new NewDocumentsServiceConfig();
      public void release() {
        config_listener.destroy();
        config_listener = null;
    Now you should be able to catch the changes in the configuration.
    Hope this helps,
    Romano

  • How to read value from select list

    Hi,
    i'm using jdev 10.1.3.1.0, adf, jsp and struts.
    i've made a simple viewobject 'bestyrer' (danish for department) and it contains a list of all available department in my organization.
    it appears in my jsp page as a dropdown list and when the user chose a specific department all employees in that department are shown as a master detail relationship.
    It works and its standard drag'n'drop in JDev.
    I need to know which department the user have chosen because the information i show to the user depends on it.
    my view look like this:
    SELECT KBestyrer.BESTYRER,
    KBestyrer.NAVN
    FROM K_BESTYRER KBestyrer
    bestyrer is a number and navn is the name of the department.
    the code generated in my jsp based on drag and drop is:
    <html:select property="KBestyrerView"
    disabled="${!bindings[\'KBestyrerView\'].updateable}"
    onchange="DataForm.submit();">
    <html:optionsCollection label="prompt" value="index"
    property="KBestyrerView.displayData" />
    </html:select>
    and the corresponding HTML generated is:
    <select name="KBestyrerView" onchange="DataForm.submit();"><option value="0" selected="selected">0 Vejdirektoratet</option>
    <option value="1">101 København</option>
    <option value="2">147 Frederiksberg</option>
    <option value="3">151 Ballerup</option>
    <option value="4">153 Brøndby</option>
    <option value="5">155 Dragør</option>
    <option value="6">157 Gentofte</option>
    <option value="7">159 Gladsaxe</option>
    <option value="8">161 Glostrup</option>
    <option value="9">163 Herlev</option>
    <option value="10">165 Albertslund</option>
    <option value="104">999 Andet</option></select>
    First of all i don't want the indexed values as values of my individual options but the real values as seen in fron of the name. i.e. 101 147 151 and so on.
    how do i obtain this and how do i read the value the user have chosen?
    hope to receive some help.
    thanks
    br
    kim gabrielsen

    Ok,
    thanks for the pointer. it clearifies a bit but i cannot make it work.
    I've created a second binding as described in the dokument which gives me another binding in the pagedef file:
    <attributeValues IterBinding="KBestyrerViewIterator" id="Bestyrer">
    <AttrNames>
    <Item Value="Bestyrer"/>
    </AttrNames>
    </attributeValues>
    i guess i should be able to reference this binding using 'Bestyrer' as the id.
    in my JSP page i insert the following:
    <html:select property="KBestyrerView"
    disabled="${!bindings[\'KBestyrerView\'].updateable}"
    onchange="inspect(this.form)" >
    <html:optionsCollection label="prompt" value="#{bindings.Bestyrer.getInputValue()}"
    property="KBestyrerView.displayData" />
    </html:select>
    but it fails with an error:
    org.apache.commons.beanutils.NestedNullException: Null property value for '#{bindings'     at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:669)     at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)     at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)
    I've tried #{bindings.Bestyrer} and #{bindings.Bestyrer.inputValue()}
    but they fail too.
    so there is clearly something i don't understand regarding this binding stuff.
    Assuming i get this to work how do i actually accesss the value chosen by the user?
    as far as i recall in plain HTML i gave the select list a name like:
    name=MyList
    and called a javascript function like this:
    onchange="inspect(this.form)"
    in my JS function i could access the value like this:
    function inspect(form){
    alert(form.MyList.options[form.MyList.selectedIndex].text)
    but when i name the select list i receive an error:
    javax.servlet.jsp.JspException: Cannot find bean under name MyList     at org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:301)     at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:244)     at brugeroversigt.jspService(_brugeroversigt.java:75)     [brugeroversigt.jsp]
    I'm a bit confused here so any input would be appreciated.
    br
    kim gabrielsen

  • How to retrieve values from the struts DAO to Struts JSP

    Hi friends,
    I have one question. i want to display values in the struts jsp file from the struts DAO class. can anyone tell how do it.
    Appreciated for your help.
    Thanks
    G1 :)

    Hi Santosh,
    Thanks for your prompt reply.
    Actually, my problem is i want to display complete rows from the DAO to JSP page. I'm displaying all the rows in the DAO from DB.
    But i dont know how to retrieve all these data from DAO. Can i take arraylist.??
    DAO:
    ------------     public Customers getData(Customers customers){ // Reading data from DB
         //ArrayList list = null ;
         try
              Connection conn = getSQLConnection();
              Statement statement = conn.createStatement();
              String qry = "select * from register";
              ResultSet resultSet = null;
              PreparedStatement pstat = conn.prepareStatement(qry);
              // pstat.setString(1, customers.getFname());
              resultSet = pstat.executeQuery();
    //Print the data to the console
    while(resultSet.next()){
              String fnam = resultSet.getString(1);
              String lnam = resultSet.getString(2);
              String gen = resultSet.getString(3);
              String addres = resultSet.getString(4);
              String cit = resultSet.getString(5);
              String zip = resultSet.getString(6);
              String county = resultSet.getString(7);
              String emal = resultSet.getString(8);
              System.out.println("First name:"+fnam);
              System.out.println("Last name:"+lnam);
              System.out.println("Address:"+addres);
              customers.setFname(fnam);
              customers.setLname(lnam);
              customers.setGender(gen);
              customers.setAddress(addres);
              customers.setCity(cit);
              customers.setZipcode(zip);
              customers.setCountry(county);
              customers.setEmail(emal);
                   statement.close();
                   conn.close();
              }catch(Exception e1){
                   e1.printStackTrace();
              return customers;
    Bean:
    I have specified in this line in Bean:
    request.getSession().setAttribute("customers", customers);
    But in JSP. how will i populate all these data. Pls..send some code.
    I'm sorry this is just practicals. i'm not doin any real time project. that;s why i have placed all these code.
    Thanks for your patience for resolving my problems.
    Thanks
    G1

  • How to read data from the data provider using javascript

    Hi,
    Please let me know how to read the data from the dataprovider using javascript(query assigned to the data provider).
    My query has filter charateristics, free charateristics, charateristics in rows and key figure in column.
    Thanks a lot for your kind help
    Regards
    Kandasamy

    Kandaswamy,
    Assign an ID to your table item , then in JavaScript , you can use ID.innerHTML and you will get the HTML code within that table for the same , then you can find out how best to get the exact value you desire from the innerHTML value which is a string with the entire HTML from within the table item.
    Arun
    Hope it helps....

  • HCM Flexible appraisal template how to read value from a dropdown selection

    We are on EHP5 based HCM system.
    We are trying to read a drop down value populated in appraisal document. This drop down value is coming from a scale type. Now when i check webdynro application HAP_DOCUMENT_BODY , method BUILD_DOCUMENT_BODY seems to be building the UI and populating all the values. Now I am trying to put a break point  and capture instance of this drop down and then based on selected value of the drop down wanted to populate another field attached to same column. Well that will be number two but yeah first thing first, need to find how i can capture drop down instance.
    Thanks for your time.
    Rgds,

    got a body hrhap00_value_det which can do the trick..but i am still trying to figure out how to pin point my element and then process the logic.

  • How to get values from the page excpet pagecontext.getparameter

    i have a requirement wherein i am passing paramteres from the "submit" button.but the problem being that,i have multiple rows in my page.what is happening is that my "submit" button is passing the values of the previous row,instead of the current row.this is i think because "commit" gets called later and params are passed before it.
    how do i solve this problem
    or if i can get to get paramteres in a advance table layout,i l be able to achieve my requirement.beacuse in advance table layout,i am not able to do pagecontext.getparameter("---" of the item

    thanks guys,
    i did try working with row refrence but it returns a null only.
    my requirement was that i had update functionality as well as "add new rows" on the same advtbl bean.an whenevr i click on "add new row" and submit,i was always gettin the parameters for the previous row.
    now,i have got a workaround to that,by having a radio button to select rows to update and whenever i click on "add new rows" ,i disable the radio button,and get the handle based on the value from radio group.
    but still row refrence dint work for me.i will appreciate if sum1 can send me the code

  • How to read value of the period for which the sales volume has been entered

    Hi Experts,
    In the transaction "/ncrm_ipm_d_usage_data", we have a scenario where a user can enter value in the "sales volume reported" column for more than one period. Now we need to read the period_from (date from) for the first "sales volume reported" value entered.
    For example: If a user enters values in "sales volume reported" column for the period_from 02/01/2009, 05/01/2009 & 08/01/2009. We need to read the first period_from value for which sales volume value is entered. Which means it should be 02/01/2009.
    Our issue is that we are unable to find the standard method or variable which holds this value. We found these classes through debugging but it does not help us.
    1. Class CL_CRM_IPM_USAGE_DATA
    Methods we found:
    1. FIND_CONTRACT
    2. MAINTAIN_DATA
    3. MAP_UI_DATA
    4. FILL_CUMULATED_I
    5. GET_USAGE_DATA_KEY
    Please help us to find the standard method or variable which reads the period_from for the first sales volume entered.

    Hi Student5088,
    I used a Copy-Block to create a delay for a certain number of values (time) of a signal. With that you can continuously compare signal at T1 with Signal at T1*0.5.
    Greetings
    Walter
    Attachments:
    Compare.DAC ‏28 KB

  • How to read data from the Deep structure.

    Hi
    How to get from the deep structure. Means i have one table in that having onother structure. i need to read data from that inner structure.
    Regards
    Reddy

    Hi,
    you can access in the way u use for the normal structure, u should only consider a deep structure is a table without headerline.
    TABLES: BKPF, BSEG.
    TYPES: TY_ITEM TYPE TABLE OF BSEG.
    DATA:   BEGIN OF W_DOCUMENT,
                    HEADER TYPE BKPF,
                    ITEM       TYPE BSEG,
                 END    OF W_DOCUMENT.
    DATA: T_DOCUMENTS LIKE STANDARD TABLE OF W_DOCUMENT.
    Insert the data:
    SELECT * FROM BKPF WHERE ....
       W_DOCUMENT-HEADER = BKPF.
       SELECT * FROM BSEG INTO TABLE W_DOCUMENT-ITEM
                                       WHERE BUKRS = BKPF-BUKRS
                                            AND BELNR  = BKPF-BELNR
                                            AND GJAHR  = BKPF-GJAHR.
       APPEND W_DOCUMENT TO T_DOCUMENTS.
    ENDSELECT.
    Read the data:
    LOOP AT T_DOCUMENTS INTO W_DOCMENT.
    Header data
        WRITE: / W_DOCUMENT-HEADER-BUKRS,
                      W_DOCUMENT-HEADER-BELNR,
                      W_DOCUMENT-HEADER-GJAHR.
    Item data
        LOOP AT W_DOCUMENT-ITEM INTO BSEG.
             WRITE: / BSEG-BUZEI,
                           BSEG-WRBTR CURRENCY W_DOCUMENT-HEADER-WAERS.
        ENDLOOP.
    ENDLOOP.
    Regards,
    Padmam.

Maybe you are looking for