Values having html tags not getting populated while using AJAX in APEX

Hi,
I am using AJAX to populate certain values in a tabular report.
I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049)
<script language="JavaScript" type="text/javascript">
function f_set_multi_items_tabular(pValue, pRow){
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
if(pValue){
get.add('TEMPORARY_APPLICATION_ITEM',pValue)
get.add('T_ROWNUM',pRow)
}else{
get.add('TEMPORARY_APPLICATION_ITEM','null')
gReturn = get.get('XML');
if(gReturn){
var l_Count = gReturn.getElementsByTagName("item").length;
for(var i = 0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("item");
var l_ID = l_Opt_Xml.getAttribute('id');
var l_El = html_GetElement(l_ID);
if(l_Opt_Xml.firstChild){
var l_Value = l_Opt_Xml.firstChild.nodeValue;
}else{
var l_Value = '';
if(l_El){
if(l_El.tagName == 'INPUT'){
l_El.value = l_Value;
}else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
l_El.parentNode.innerHTML = l_Value;
l_El.parentNode.id = l_ID;
}else{
l_El.innerHTML = l_Value;
get = null;
</script>
And I have the application process as follows
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="f05_000' || :T_ROWNUM || '">' || :TEMPORARY_APPLICATION_ITEM || '</item>');
HTP.prn ('</body>');
END;
If I have :TEMPORARY_APPLICATION_ITEM as 'Vikas' it gets displayed properly but if I have '&lt;b&gt;Vikas&lt;b&gt;' it shows null. if it has any HTML tags function l_Opt_Xml.firstChild.nodeValue is not working properly .Please tell me what modiifcation can I use in function l_Opt_Xml.firstChild.nodeValue to get Values with HTML tags also to get displayed.
Thanks,
Vikas

Vikas,
Try escaping special characters: htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)Regards,
Dan

Similar Messages

  • Full text not getting displayed while using RSRT

    Hi,
    I am facing issue while downloading data using RSRT in BI system.
    When I go to RSRT and execute a report the output doesn't display full text for a characteristic. i.e. the characteristic has a size of 60 characters, but only 30 chars ( approx) are being displayed as report output in RSRT.
    COuld anyone here please help me in getting the full text using RSRT transaction?
    I am not using Bex here for the reason that the output has more than 1.8 lac records and hence I get an error while using Bex
    WHen I try to execute this report using Bex for a small selection I could see full text there.
    And there is no text master data maintained for this characteristic.
    Thanks in advance for your replies.

    Hi,
    As you said you have 1.8 Lac records, There is no point in increasing the size to maximum number possible i.e 65K .
    You have following three options to satisfy your requirement.:
    1.    Usage of  web reporting for export of more than 65k rows. According the note: 1127156 - Safety belt: Result set is too large, in BW version 7.x it I possible to set parameters that would allow such a massive export of data.
    2.    Functionality of OpenHubs. Data can be placed directly into the files (e.g. in CSV format) on application server. Be careful here OpenHubs are specially licensed and by using it there are additional fees.
    3.    Coding of custom ABAP report which runs BW query and gets all its output and saves it in the flat files.
    Please let me know if this info is helpful.
    Regards,
    Krishna Tangudu

  • Problem while using Ajax in APEX.

    Hi All,
    I am using the this function in my application to overcome the && problem.. here is the query
    DECLARE
    l_counter NUMBER;
    l_o_name VARCHAR2 (2000);
    BEGIN
    FOR rec IN (SELECT distinct HTF.ESCAPE_SC (atct_attr_type) a,HTF.ESCAPE_SC (atct_attr_type) b
    FROM t_new
    WHERE atct_atcl_code =:F41_ATCL_ATT_TYPE_REP_CODE )
    LOOP
    --HTP.prn ('<option value="' || rec.b || '">' || rec.a || '</option>');
    dbms_output.put_line('<option value="' || rec.b || '">' || rec.a || '</option>');
    end loop;
    END;
    it is working fine with out any issues..
    But i want to show atct_attr_type in upper case..
    How to use upper case in the above query..
    Thanks,
    Anoo..

    Whats the problem with using the UPPER Function
    HTF.ESCAPE_SC (UPPER(atct_attr_type)) in the SQL Query(for loop inline cursor)

  • I am not getting required output after importing xml file having HTML tags, MathML and Latex code

    I created well formatted xml having html tags, MathML code and Latex code inside
    XML with sample latex
    <question>
        <p> 8. In this problem, <Image  style="vertical-align: -9pt" title="5a\frac{7b}{3}" alt="5a\frac{7b}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%5Cfrac%7B7b%7D%7B3%7D%0A"></Image> and <Image href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%207b%5Cfrac%7B5a%7D%7B3%7D" style="vertical-align: -9pt" title="7b\frac{5a}{3}" alt="7b\frac{5a}{3}"> </Image>are both mixed numbers, like <Image src="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%203%20%5Cfrac%7B1%7D%7B2%7D%20=%203.5" style="vertical-align: -9pt" title="3 \frac{1}{2} = 3.5" alt="3 \frac{1}{2} = 3.5"></Image>. The expression <Image style="vertical-align: -9pt" title="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" alt="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%20%5Cfrac%7B7b%7D%7B3%7D%20%5C%20%5Ctimes %207b%20%5Cfrac%7B5a%7D%7B3%7D"> </Image>is equal to which of the following choices? </p>
    </question>
    XML with sample html tags
    <p>4. Examine the expression 3<i>k</i><sup>2</sup> + 6<i>k</i> - 5 + 6<i>k</i><sup>2</sup> + 2.</p><p>When it is simplified, which of the following is the equivalent expression?</p>
    XML with sample MathML tags
    <p>5. Find the vertex of the parabola associated with the quadratic function <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo> </mo><mo>=</mo><mo> </mo><mo>-</mo><msup><mi>x</mi><mn>2</mn></msup><mo> </mo><mo>+</mo><mo> </mo><mn>10</mn><mi>x</mi><mo> </mo><mo>+</mo><mo> </mo><mn>4</mn></math></p>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math>
    None of the above works fine after importing xml to Indesign document/templete, it is not renderting equivalent out instead it is showing the same text inside tags in the Indesign document.
    I have lot of content in our database, I will export to XML, import to Indesign, Indesign should render required output like what we see in the browser and export the output to printed format.
    Import formated XML to indesign --> Export to Quality Print Format
    Can any one guide me and let me know whether it is posible to do with Indesign, if so let me know in case if I am missing anything in importing xml and get required output.
    Thanks in advance. Waiting for reply ASAP.

    Possibly your expectations are too high. ... Scratch that "possibly".
    XML, in general, cannot be "rendered". It's just an abstract data format. Compare it to common markup such as *asterisks* to indicate emphasized words -- e-mail clients will show this text in bold, but InDesign, and the vast majority of other software, does not.
    To "render" XML, HTML, MathML, or LaTeX -- you seem to freely mix these *very* different markup formats, unaware of the fact that they are vastly different from each other! -- in the format you "expect", you need to apply the appropriate software to each of  the original data files. None of these markup languages are supported natively by InDesign.

  • OVS value not getting populated in field

    Hi Experts,
    Kindly suggest me a solution for the below given issue.
    I have added three custom fileds to an already existing WD Coponent.
    And also added OVS help as an input help method to these fields.
    If I right click on the WD application and TEST, the application opens in browser and I am able to select the value from OVS list.
    If I run the application by copying the URL and paste it in the browser, or clicking on Portal link, if we select the value from OVS list that value is not getting populated in the field.
    Below is the logic I have written.
    method ON_OVS_PAYMENT .
    TYPES:   BEGIN OF ty_payment,
                 payment TYPE char4,
                 desc    TYPE char30,
               END OF ty_payment.
    * declare data structures for the fields to be displayed and
    * for the table columns of the selection list, if necessary
      types:
        begin of lty_stru_input,
    *   add fields for the display of your search input here
          payment type char4,
    *      desc    type string,
        end of lty_stru_input.
      types:
        begin of lty_stru_list,
    *   add fields for the selection list here
          payment type char4,
          desc    type char30,
        end of lty_stru_list.
      data: ls_search_input  type lty_stru_input,
            lt_select_list   type standard table of lty_stru_list,
            ls_text          type wdr_name_value,
            lt_label_texts   type wdr_name_value_list,
            lt_column_texts  type wdr_name_value_list,
            lv_window_title  type string,
            lv_group_header  type string,
            lv_payment       type string,
            lt_payment       TYPE TABLE OF ty_payment,
            ls_payment       TYPE ty_payment,
            lv_short         TYPE string,
            lv_table_header  type string.
      field-symbols: <ls_query_params> type lty_stru_input,
                     <ls_selection>    type lty_stru_list.
      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
    *   in this phase you have the possibility to define the texts,
    *   if you do not want to use the defaults (DDIC-texts)
          ls_text-name = `PAYMENT`.  "must match a field name of search
          ls_text-value = `Terms of payment`. "wd_assist->get_text( `001` ).
          insert ls_text into table lt_label_texts.
          ls_text-name = `PAYMENT`.  "must match a field in list structure
          ls_text-value = `Terms of Payment`. "wd_assist->get_text( `002` ).
          insert ls_text into table lt_column_texts.
          ls_text-name = `DESC`.  "must match a field in list structure
          ls_text-value = `Description`. "wd_assist->get_text( `002` ).
          insert ls_text into table lt_column_texts.
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title = lv_window_title
                    table_header = lv_table_header
                    col_count    = 2
                    row_count    = 20 ).
        when if_wd_ovs=>co_phase_1.
          ovs_callback_object->context_element->get_static_attributes(
              importing static_attributes = ls_search_input ).
    *     pass the values to the OVS component
          ovs_callback_object->set_input_structure(
              input = ls_search_input ).
        when if_wd_ovs=>co_phase_2.
          if ovs_callback_object->query_parameters is not bound.
    ******** TODO exception handling
          endif.
          assign ovs_callback_object->query_parameters->*
                                  to <ls_query_params>.
          if not <ls_query_params> is assigned.
    ******** TODO exception handling
          endif.
    *     call business logic for a table of possible values
    *     lt_select_list = ???
          lv_short = <ls_query_params>-payment.
          CALL FUNCTION 'ZSIILESD001' DESTINATION 'LOGICALE22'
          EXPORTING
          i_payment             = lv_short
          TABLES
          ET_PAYMENT            = lt_payment.
        lt_select_list[] = lt_payment[].
          ovs_callback_object->set_output_table( output = lt_select_list ).
        when if_wd_ovs=>co_phase_3.
    *   apply result
          if ovs_callback_object->selection is not bound.
    ******** TODO exception handling
          endif.
          assign ovs_callback_object->selection->* to <ls_selection>.
          if <ls_selection> is assigned.
            ovs_callback_object->context_element->set_attribute(
                                   name  = `PAYMENT`
                                   value = <ls_selection>-payment ).
          endif.
      endcase.
    endmethod.

    Hi Pradeep,
    I don't think it really make any difference to the application run if we run from SE80 or run via application url.
    Try to set the external break point in OVS PHASE3 for your user. Check if the break point is reached and data is set after selection from OVS.
    Regards,
    Rama

  • Values not getting populated in the o/p

    Hi,
    I have a requirement,where in which I have to add MRP Controller(marc-dispo) and production scheduler(marc-fevor) fields in the selection screen and the same should be added in the o/p.These fields are not getting populated in the o/p,even if I give some values for these fields in the selection-screen.What would be the reason for this?
    Regards,
    Hema

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Default Value in a DFF is not getting populated in Self Service Page

    I had an issue in Self Service Page.
    In the SS page there is hidden mandatory field in DFF segment,which should get populated with a default select statement.
    But this field is not getting populated with the default values.
    But this is working fine in Forms , i.e the default value is populated in forms.
    Why the default value is not populated in Self Service Pages?
    For Eg: If there is a DFF "SAMPLE_DFF" which has some context with segment
    Context Code : GB_CODE
    Segment : "Enter the Group"
    and this segment is made required and defaulted with a select stmt (select stmt returns 'XXXXX')
    In forms if am not entering any value, then its defaulted to 'XXXXX'.
    But in Self Service this is not happening.
    Can anybody help me out...

    Actually, I have narrowed down the problem. It is not quite the same.
    DFF is Receivables, Address Information (Release 12). We have 2 attributes defined and we want the default value of the 2nd to be dependent on what the user selects in the 1st.
    So the default value of the 2nd is defined as a SQL Statement, select :$FLEX$.INDUSTRY_CODE from dual (where INDUSTRY_CODE is the value set name from the 1st).
    We know the syntax is correct because if we actually hardcode a default value in the 1st attribute (select 'BLAH' from dual), then we do see that the default value for the 2nd attribute fills in with BLAH as well. However, we do not want that. We want the user to choose a value for the 1st attribute from the LOV, and then have the 2nd attribute default to that same value. This is the part that does not seem to work in OAF, but definitely used to work in Forms.
    Any thoughts?
    Thanks much!

  • XREF3 field not getting populated in BSEG table while posting MIRO

    Hi,
         I have one query in MIRO tcode.I have activated xref3 field in MIRO tcode using enhancement LMR1MF6Q.Now when i try to post document with some values in xref3 field on screen ,value is not getting populated in BSEG table.Please tell me what else needs to be done to achieve this ?
    any hint on this?
    Thanks & Regards,
    Soniya S.

    Hi,
    1.- According to SAP Note 904652 - MIRO: Different from FB60
    https://service.sap.com/sap/support/notes/904652
    MIRO is an independent Materials Management (MM) transaction that does not
    claim to be the same as the accounting transactions (such as FB60 or FB01).
    MIRO was developed to allow users to process vendor invoices within the
    context of the MM procurement processes as simply as possible.
    For this reason, among other differences, the field selection was limited
    to the absolutely necessary. For example, the following fields from the
    accounting document are not available in Transaction MIRO (this list is not
    complete):
    Reference key (BSEG-XREF1, -XREF 2, -XREF 3)
    2.- SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
    https://service.sap.com/sap/support/notes/1156325
    Have a look at badi MRM_ITEM_CUSTFIELDS.
    This badi will create a new tab at item level in order to display the new fields.
    I haven´t used this badi so i cannot talk from experience here.
    Think twice before deciding.
    Best regards.

  • Values not getting populated in the SMOPCCAPRO

    Hi,
    We had added a new field to CPGProduct in component CPGOE_ABLOCKS. But the extension field was not included to the BOL structure automatically.
    So ,we had used the SAP note 1472567 to add the include structure INCL_EEW_MKTPL_PRD to structure CRMS_MKTPL_CPG_PROD which inturn would rectify our BOL  structure CRMS_MKTPL_IB_CPG_PROD.
    The field which we had added using AET was added in tables CRMD_MKTPL_PROD and SMOPCCAPRO. But we are facing an issue that the values are not getting populated in the SMOPCCAPRO table on save.The values are gettign populated in the CRM table.
    Do we need to implement any other SAP note on the midleware side too to rectify this issue as i infer some interface structure would be missing this field which results in the truncation of value from being passed to the CDB table . Any pointers in this regard would be helpful.
    Thanks
    Swapna.

    Hi Swapna,
    as the CDB table has been extended with the new field I assume that you have enabled the mobile flag for the enhancement.
    Then it will also extend the mobile BDOC and the data should be transfered automatically.
    If this does not happen there's an error somewhere. Either the middleware is not set up properly or the mapping routine does not transfer the fields properly.
    I recommend to raise an OSS message for this.
    Best regards
    Matthias

  • I am having an iPad 4. I am not getting alerts while receiving any call in my ipad. Is there any solution for this?

    I am having an iPad 4. I am not getting alerts while receiving any call in my ipad. Is there any solution for this?

    Check your settings
    Settings>Notifications>FaceTime/Message>Alert Style

  • Users details not getting populated in the portal tables..

    Hi,
    We have implemented single sign on (SSO) and we do not create users in the portal as user/pwd come from OID.
    Now becoz of this the portal tables are not getting populated.I require that all the users of the OID to be populated in the portal tables. How can I do it.I depserately require it.

    You can use the function wwsec_api.activate_portal_user to create the shadow records in the portal repository.
    Ref. : http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwsec_api.html

  • WBS element is not getting populated in Excise entry in Project billing

    Hi SAP Guru's
    We have the case where we are doing the billing from manufacturing plant against Project. While billing WBS element is appearing in the invoice but in excise invoice entry same is not getting populated. This is affecting RR and P&L.
    Can you help me by providing the standard solution to meet this requirement or update if we can meet this requirement by some function module or through any exit.
    Thanks
    Surender Gupta

    Hi,
      In transaction" VTFA" and for your sales and billing type,select your item category and in the same scree,your pricing type should be "D".This will copy all the conditions from sales order item.
      Reward if this helps.
    Regards
    Karan

  • Search Help for Vendor Feild not getting populated in the Screen Element

    Hi Everyone,
    In transaction Miro, I get a POP-UP for Invoicing Party i.e. Vendor and Users required a custom search help.
    The Search help for Vendor(LIFNR) is KRED_C and i appended a Z search help under this.
    Now that the search help exists and I can drill down the values too but when i select/choose any value,  that value is not getting populated in Screen feild.
    is there any validation I need to do for this.
    Please suggest me... I checked SDN there are many things but i couldn't figure out wat i need to do and where I need to modify.
    Regards,
    Raj

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • SGTXT field is not getting populated in 315 document

    While placing stock in storage location through MIGO (movement 315) with reference to movenet 313 document, TEXT (SGTXT) field which is entered in 313 document is not getting populated from referred document.

    Hi,
    This is Standard SAP functionality.The Text does not get automatically populated from the referred document. You will have to use enhancement for the same. Use BADI - MB_MIGO_ITEM_BAdI

  • In VA01  In Schedule line Delivery date not getting populated

    Hello,
    We have developed enhancement for VA01 tcode.
    Depending upon the quatity entered for a material it should show one more item as free good.
    If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
    But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
    Can any one please suggest what i need to do in order to display delivery date for free good.
    Thanks in advance.
    Regards.

    Thanks for your response.
    Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
    Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again.

Maybe you are looking for

  • This SQLite query takes ages in Flash but not in SQLite Administrator

    Hi Are there ever occasions when flash adds time to queries? I have a query that is taking almost 5 seconds on a database in Flash, yet when I put the same query into SQLite Administrator with that database loaded, it takes 15ms. I set up a flash tim

  • Can't save Numbers Documents

    Hi there, I'm having issues saving Numbers documents - every time I try to save, or try to export as a PDF it gives me an error message, like this one below: Some of the documents I'm working from were created in Microsoft Office (Excel) and then I'v

  • IPad 2 as only computer

    Can an iPad 2 be used as your only computer? I'm considering buying one for my wife. (her MacBook is way too slow)  Her use is: email, web, Skype/Facetime, occastional MS word, and most importantly iPhoto. She takes a lot of photos of our toddler, so

  • Error RAC installation

    hi all, please help me resolve this problem: I'm installing RAC on vmware follow this instructions: http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnWindows2003UsingVMware.php i using vmware installed on my windows to create 2 vi

  • How does AGPM select a domain controller?

    Hi all, My apologies if this is common knowledge or available somewhere, can't seem to find it. Looking to understand how AGPM works. If I Import from... production, or Control a GPO.  Which domain controller does AGPM select from?  Does it behave li