SAP UI Table and escaped JSON data

Hi,
There is table which is bound to a JSON data.
I'm getting the JSON data via ajax call. Some of the data in the JSON is escaped.
But, i'm loading the table data via Table.bindRows() API. This shows the data in the escaped format. I want to show it in the unescaped format
===========================  Representative code =================================
oControl = new sap.ui.commons.TextField().bindProperty("value","Token").setEditable(false);
oMasterTbl.addColumn(new sap.ui.table.Column({
label : new sap.ui.commons.Label({
text : "MYDATA"
template : oControl,
sortProperty : "mydata",
filterProperty : "mydata",
width : "50%"
          function onBody() {
          var aUrl = '../services/MyCustom.xsjs;
          jQuery.ajax({
          url: aUrl,
          method: 'GET',
          dataType: 'json',
          success: this.onCompleteBody
          function onCompleteBody(myTxt){
              oModel.setData({ businessData : myTxt });
              oMasterTbl.bindRows("/businessData/MyData");
              oMasterTbl.setModel(oModel);
              oMasterTbl.invalidate();
===========================  End Representative code ==============================
Tried oModel.setData({ businessData : unescape(myTxt) });
This invalidates the JSON and the table data is empty.
How and where do i unescape the relevant data ?
I know that the value in the field may be escaped. How do i unescape the data from the model ?
regards,
sreeram

Hello,
The below code snipped worked
          function onCompleteBody(myTxt){
              oModel.setData({ businessData : myTxt });
              oMasterTbl.bindRows("/businessData/MyData");
              oMasterTbl.setModel(oModel);
              var nrows = oModel.getProperty("/businessData/MyData");
              var cntxt, len, i;
              len = nrows.length;
              for (i=0; i<len; i++) {
              cntxt = oMasterTbl.getContextByIndex(i);
              tkn = cntxt.getProperty("mydata");
              tkn = unescape(tkn);
              oModel.setProperty("mydata", tkn, cntxt);
              oMasterTbl.setModel(oModel);
              oMasterTbl.invalidate();

Similar Messages

  • SAP CRM Tables and Fields for Contract start and End dates

    Hi Experts,
    Please Provide me SAP CRM Tables and Field names for the below.
    SAP CRM Contracts start date and End date
    SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
    Thanks and Regards,
    Teja

    correction
    10 Replies Latest reply: 24 May, 2013 8:38 AM by nishant Vasudev  
    Tweet
    SAP CRM Tables and Fields for Contract start and End dates
    This question has been Answered.
    Teja Dhar 12 Oct, 2009 8:03 PM  
    Currently Being Moderated
    Hi Experts,
    Please Provide me SAP CRM Tables and Field names for the below.
    SAP CRM Contracts start date and End date
    SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
    Thanks and Regards,
    Teja
    Correct Answer by Sreekantha Gorla  on Oct 22, 2009 8:22 PM
    Hi,
    dates will be stores in the table 'SCAPPTSEG'.
    I double checked it. This table stores all the date types of one order transactions...
    The relationship is as follows..
    CRMD_ORDERADM_H- guid = crmd_link-guid_hi
    crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
    Thanks and regards,
    Sreekanth
    <:footer>See the answer in context
    6281 Views
    Topics: Customer Relationship Management
    Reply
    Average User Rating
    0
    (0 ratings)
    My Rating:
      Rating Saved!
    Comment on your rating
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Robert Jesionowski 14 Oct, 2009 2:23 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    you should try with FM: CRM_DATES_READ_SINGLE_OB or CRM_DATES_READ_DB.
    There is something in table SCAPPT and SCGENAPPT.
    Regards, R
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 22 Oct, 2009 5:30 PM (in response to Robert Jesionowski)  
    Currently Being Moderated
        Hi Robert, 
    I am not able to find contract start date and End dates in the tables SCAPPT and SCGENAPPT.
    Can you suggest some relevant tables.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Sreekantha Gorla 22 Oct, 2009 2:35 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    Table SCAPPTSEG stores the contract start and end dates.
    Thanks,
    Sreekanth
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 22 Oct, 2009 5:32 PM (in response to Sreekantha Gorla)  
    Currently Being Moderated
        Hi Sreekanth, 
    I am not able to find contract start date and End dates in the table SCAPPTSEG.This is for appointments.
    Can you suggest some relevant tables.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
    Correct AnswerRe: SAP CRM Tables and Fields for Contract start and End dates
    Sreekantha Gorla 22 Oct, 2009 8:22 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    dates will be stores in the table 'SCAPPTSEG'.
    I double checked it. This table stores all the date types of one order transactions...
    The relationship is as follows..
    CRMD_ORDERADM_H- guid = crmd_link-guid_hi
    crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
    Thanks and regards,
    Sreekanth
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Wim Olieman 23 Oct, 2009 9:12 AM (in response to Sreekantha Gorla)  
    Currently Being Moderated
        Hi, 
    I can tell you where the pricing records are saved, replicated from ECC.
    The data from ECC table Axxx (e.g. A304) is replicated to CRM table
    CNCCRMPRSAPxxx (e.g. CNCCRMPRSAP304).
    Here you can find fields TIMESTAMP_TO and TIMESTAMP_FROM.
    About the dates: what Sreekantha Gorla stated, about table 'SCAPPTSEG' is correct.
    What might help is to execute program "CRM_ORDER_READ". Here you can find
    the relevant entries also.
    regards,
    Wim
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 23 Oct, 2009 4:59 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi Experts, 
    Thanks a lot for your support.My problem got resolved.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    rajesh gadamsetty 27 Nov, 2009 12:29 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi Teja 
    Please let me know how you got the dates. i got the same requirement
    Report Abuse
    Like (0)
    Reply
    Correction on above mail.
    Hi Sanjay,
    Can you please help me to find the contract st art date and end date fetching from the table as below
    ITEM DATES:
    Select guid_set from table CRMD_LINK where guid_hi              =  CRMD_ORDER_I-GUID AND
                                                                              OBJTYPE_HI     =  '06'
                                                                              OBJTYPE_SET  =  '30'.
    Select * from SCAPPTSEG where APPL_GUID = guid_set.
    as from the table scapptseg has some unusal fields which fields to select to get the start date and end date and on what condition and isuppose we need to convert als the same
    pls suggest further on same
    regards
    Arora

  • SAP R/3 and JAVA based data base

    hi,
    I have two data base one is SAp r/3 and another is JAVA based.
    i need to link one table from Sap r/3 and one from JAVA based data base.
    using crystal reports how can i do this????
    thanks

    hi,
    in Crystal reports go to data base expert in the pop up link JAVA based data base using JDBC and connect SAp r/3 using SAP.
    You will be able to get SAp menue only if you are using crystal reports version 2008 or version 12.
    Once the connection is established select the tables you require and rest remains same.
    Thanks.

  • How to protect SAP Application Tables and Reports in R/3

    Hi Gurus,
                 Any one please explain me detail how to protect tables in R/3 with different senarios.
                  How to protect reports in SAP R/3 without assigning SA38 transaction access
                  How to protect Program in SAP R/3 in R/3

    Hello Happyman,
    <b>What do you mean by Protect Table, Program and Report?</b>
    Let me ask you one base Question, On which area are you working? Are you from functional side or Technical side (Developement or Basis guy)?
    This is very clear cut answer that with the restricted autorization you can protect table and programs. Do not provide the change autorization.
    CATCH your BASIS guy and he will do rest of the things. Just explain him what are you want to protect.
    Hope this helps.
    Regards
    Arif Mansuri

  • Master details tables and no xml data source

    Hello
    I want to create mater - details tables where details table will be repeated for each master row.
    So i created master table and placed detail table into master table cell.
    so what i want to have
    product1 quantity
                              - item1
                              - item2
    product2 quantity
                              - item3
                              - item3
    for now i have
    product1 quantity
                             - item1
                             - item2
                             - item3
                             - item3
    product2 quantity
    here is how i fill the table
    for i in 1..5 do
                ("Cell1r", "quantity" + i.ToString())
                ("Cell2r", "product" + i.ToString())           
            ] |>p
            for j in 1..2 do
                        ("Cell11", "product" + i.ToString())
                        ("Cell21", "serial" + j.ToString())
                        ("Cell31", "function" + j.ToString())
                    ]|>p
    i found an axample how to do it from xml data sourcem but have no idea and did not find how  to do it manualy(when i bing by name from code dynamicaly)

    i found hot to do it with xml source
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000241.html
    but how to do it manualy ?

  • Complicated Question (see pdf): Use data from one table to find the same data in a second table and take other data from that table and place it in a third table. :)

    I don't even know if this is posible.
    I'm using iwork '09 
    View PDF

    I hope I can clarify:
    For our purposes here:
    Table 1 = "Step 2 - Product Sizes"
    Table 2 = "Option id Master"
    Table 3 = "Export - Product Info"
    Table 1:
    The user would enter values for "productcode," "Horz," and "Vert"
    "Size" would auto fill based on values in Horiz and Vert (I have this taken care of already).
    Table 2: This is a completely static table that I want to search against. - Data from other tables in the doc does not alter or change the data in this doc.
    We just want to look at table 2. Find the existing value in "table 2 : size" column that matches the "table 1 : size" column  and then pull the "optionids" and "productprice" from that row.
    Can the value from "Table 1 : Size" be used as a search term in "Table 2 : Size?"
    Table 3: The user does not enter any values on this table. 
    "productcode" is pulled from table 1 - "Table 1 :: A5" = "Table 3 :: A5"
    "optionids" and "productprice" are pulled from Table 2 columns "D" and "E" - however we do not know which Table 2 row it is pulling from until we enter data in Table 1.
    As I'm writing this I'm realizing that
    A. this is probably really confusing to you.
    B. this may be impossible inside of numbers.
    If you have some other method that would facilitate the same out come but be structured differently please let me know.
    --- maybe to help you understand further what I am doing here is my current workflow:
    I record the size of a piece of art.
    Then I manually go to my "Option id Master" and find the same size.
    I then copy the corresponding "optionids" and "productprice" cells. (these options control the prices displayed on my website)
    I got to my "Export - Product Info" table and paste the values in the corresponding cells.
    I was hoping to automate this as it takes a long time when you have hundreds of products.
    Thanks for the help!

  • Select from 2 tables and insert same data into 2 other tables(BPEL Process)

    Hi All,
    Please suggest me how to select from 2 tables and insert the same data into 2 tables. I am successful in selecting data from 2 tables, but i am not able to insert the same data into 2 other tables. There is foreign key constraint between 2 tables.
    Thanks in Advance,
    MAH

    I have created DB Adapter for selecting from 2 tables and also DB adapter for insert and i have created parent child relationship between 2 tables.
    I am getting this error
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is 6f3fe20c1b031057:-6cc7dfb5:11b8bf5fbe1:-7fa4. Please check the process instance for detail.</faultstring>
    </Fault>

  • SAP R/3 and DSXI tool   (Data Services)

    Can we find any documentation in sap help or service.sap on how to integrate SAP R/3 and DSXI. Basically our requirement is when ever a customer master is created with out GEOCODE value (ZIP+4 value), that customer record need to be picked by DSXI and update it with the geo code value. For this we want to know any standard interfaces/programs exist to link up SAP R/3 and DSXI.
    Thanks,
    Srini

    Here is the documentation link...
    [http://wiki.sdn.sap.com/wiki/display/SAPMDM/IntegratingSAPNetWeaverMDMwithSAPBusinessObjectsDataServices]
    Cheers,
    Rc

  • SAP Draft table and Approval stages table

    Dear All,
    We need to build a report to show each draft on which stage. I know Draft table is ODRF and the approval table is OWDD.
    How can we link this 2 tables? Tried ODRF.DocEntry and OWDD.WDDCode and it cannot work properly if we deleted some drafts from SAP (If not, we can use  ODRF.DocEntry = OWDD.WDDCode)
    Thanks in advance.
    Regards,
    Yuka

    Hi Gordon, they need to setup an alert to send out email. The email is a user query (report): what documents are waiting for this person to approve. The report needs
    SAP Doc# (draft doc#), posting date, doc type, stages, approve template, etc.
    If there is no direct link, is there anyway we can link them? In OWDD table, we can see internal key (docentry) and if I click the orange arrow, it gives me the request approve screen. Then if I click document number, it open the draft document for me.
    Regards,
    Yuka

  • How to read a table and transfer the data into an internal table?

    Hello,
    I try to read all the data from a table (all attribute values from a node) and to write these data into an internal table. Any idea how to do this?
    Thanks for any help.

    Hi,
    Check this code.
    Here i creates context one node i.e  flights and attributes are from SFLIGHT table.
    DATA: lo_nd_flights TYPE REF TO if_wd_context_node,
            lo_el_flights TYPE REF TO if_wd_context_element,
            ls_flights TYPE if_main=>element_flights,
            it_flights type if_main=>elements_flights.
    navigate from <CONTEXT> to <FLIGHTS> via lead selection
      lo_nd_flights = wd_context->get_child_node( 'FLIGHTS' ).
    CALL METHOD LO_ND_FLIGHTS->GET_STATIC_ATTRIBUTES_TABLE
      IMPORTING
        TABLE  = it_flights.
    now the table data will be in internal table it_flights.

  • Va01:whay sap say pricing and condition missing data?

    I want use the T-CODE VA01 to create a sale order.When I input one material 001 and it's quantity 250 and save the sale order,the sap show some error message like below.I thought it mean that the item of material 001 in the sale order miss some data about the pricing and condition.I check the item->Conditions and can not found any matter.I use the standard pricing procedure and the CnTy like PR00,K007,KP02,SKTO was exist.So my question was how could I found what the missing data was?Is there any one who have meet such problem can give me some reference or advice?Thank you.
    error message:
    Missing data: Pricing
    Message no. VU019
    Diagnosis
    The system checked the document for completion and found some missing data.
    System Response
    You cannot continue processing.
    Procedure
    Enter the missing data.

    hi mello
    u can check it  in document level item details.... conditions....u can see a icon called <b>Analysis</b> click on that u can find  all the details of  the condition types in the procedure
    kiran

  • Insertion in XML Type table and fetching the data in Pro*C

    I have a Pro*C program written which populate one temp table. That temp table is used for writing the records to a flat file and then the table is purged by this program itself. Now my requirement is to write a new procedure in this progarm which simultaneously populate new XML Type table. Also i have to write some other procedures/functions to query the XML type table
    in Pro*C. I am new to XML part of database. Could somebody suggest how to go ahead with this problem

    Please check the Oracle Database 10g: XML DB Developer's Guild for example.

  • ADF FACES: af:table and complex column data

    Using EA15.
    I want to use an af:table to allow the in-place editing of the data. However, I have some fields that are not simple text entry fields. Two of them would ideally use af:selectOneList elements. This doesn't work given the limitations of how af:column elements work.
    Is there anyone out there creating complex, in-place edit tables? If so, how are you doing it?
    Thanks.

    I was mistakenly believing that you couldn't use a selectOneChoice in an af:table given some experimentation where they simply failed to render at all.
    It turns out that I had a hadn'e created the appropriate setter method for the property. However, instead of making the data readOnly (as most of the ADF FACES controls do) it just didn't render anything. Thus making me think it just didn't work inside of a table.
    FYI - in case this happens to anyone else.

  • Converting sap.m.table data to JSON

    Hi All,
    I have an problem about converting data of sap.m.table control to JSON.
    Table does not bind datas from any services  . User adding some rows into table by manually . I need sent data of table to sap backend rest service . I could not find something useful on the internet for me.
    So I need your help .
    Thanks .

    Thanks Rumeshbabu ,
    your answer is correct
    Also I wrote my JSON  serializer here . But it is better use your way .
    var oTable = sap.ui.getCore().byId("oTable");
         var JSON = "[" ;
         for(var i=0;i<oTable.getItems().length;i++)
                    JSON += "{";
          for (var j=0; j<oTable.getColumns().length;j++)
          JSON += '"';
          JSON +=oTable.getColumns()[j].getHeader().getText();
          JSON += '"';
          JSON += ":";
          JSON += '"';
          JSON +=oTable.getItems()[i].getAggregation("cells")[j].getText();
          JSON += '"';
          if(j!=oTable.getColumns().length-1)
          JSON += ",";
          if (i==oTable.getItems().length-1)
            JSON += "}";
          else
          JSON += "},";
         JSON += "]" ;
        console.log(JSON);

  • How to pull records only for particular date range in Flex frm SAP wd table

    Hi,
    Can anyone help me with databing for datefield.
    I am using two datefields in Flex for Start Date and End Date. When I click the Execute button, it should pull only the records for that date range from SAP wd table and display in my Flex datagrid.
    Thanks,
    Sri
    Edited by: rmsridevi on May 17, 2011 4:38 PM

    Hi,
    Your query has mistakes as well. I corrected them.
    Check this two different ways were in first you can define the period (month) you want and in second you have the option to select from the drop drown list :
    SELECT T0.DocNum, T0.DocDate, T0.CardName,T0.DocTotal,T1.whsCode
    FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE t0.docdate >= '2011.01.01' and t0.docdate <='2011.01.31'
    OR
    SELECT T0.DocNum,T0.DocDate,T0.CardName,T0.DocTotal,T1.whsCode
    FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE t0.docdate >= [%1] and t0.docdate <= [%2]
    Kind Regards,
    Jitin
    SAP Business One Forum Team

Maybe you are looking for