JavaScript for HTMLDB_ITEM.TEXT

Do we support Javascript for HTMLDB_ITEM.TEXT ?
If so let me know the syntax
Not able to find the same in HTMLDB Help
thanks
-prashant

Hi Got it
FYI
HTMLDB_ITEM.TEXT(1,field1,8,10,''onchange=javascript:Hi();'')
thanks
-prashant

Similar Messages

  • Values for htmldb_item.text  field do not display in CSV output

    HTML DB experts,
    I have a report query with the following 2 items in the SELECT statement:
    wwv_flow_item.display_and_save(2, DOC_CD, 10) DOC_CD,
    htmldb_item.text(3, DOC_DESC, 50, 255) DOC_DESC
    I have enabled the CSV output for this report. The problem is, when I generate a csv file, only the DOC_CD (wwv_flow_item.display_and_save) displays. The values for the DOC_DESC (htmldb_item.text) do not display. What do I need to do to get the DOC_DESC to display?
    Thanks for your help.
    Message was edited by:
    [email protected]

    Items rendered using htmldb_item generate HTML tags on the form, not plain text. You are right, the CSV export excludes them.
    Your best best is to create another report region on some other page with the same query except replace all the htmldb_item() calls with regular columns i.e. make it a read-only report and use the "export: CSV" template and put up a link to this page at the bottom of your editable report (instead of the builtin CSV link). This way when you click on this link, it will generate your report and immediately offer to export it to CSV
    Hope this helps.

  • How do I write javascript for a text block to extract name from signature block?

    Hello,
    I've created a training certificate that the trainee has to sign electronically. To prevent someone from simply putting in their friends name in there and saving it; to send to their friend and help them from having to take the training and quiz I would like to write a javascript in the text block that would extract the name from their signature block and autofill the name in the text block. Is there a way to do this?

    You would have to use JavaScript to access the signature field object and then you can access the various properties of the signature depending upon the certificate or method for signing.
    signatureInfo
    console.show();console.clear();
    // Get particular info;
    var f = this.getField("Signature1");
    // uses the ppklite sig handler;
    var Info = f.signatureInfo();
    // Some standard signatureInfo properties;
    console.println("name = " + Info.name);

  • How do I localize text strings in the javascriptresource section i a Javascript for Photoshop?

    I have made a javascript for photoshop. I am using the <javascriptresource> and <terminology> tags to make the script to work with actions. How do I make the textstrings within the <javascriptresource> section local (translated)? The localize function and other ways to localize text that I described in the documentation do not work.

    I recommend that you post your question in the scripts forum as this forum is meant for beginners. It is not that we won't help, it is that we may not beable to provide the best help. Good luck, I hope you can figure it out.
    http://forums.adobe.com/community/photoshop/photoshop_scripting?view=discussions
    http://forums.adobe.com/community/photoshop/photoshop_sdk?view=discussions

  • How to validate an text field item using javascript for numbers only.

    hi,
    how to validate an text field item using javascript for numbers only.please help me on this urgent
    please mail me solun if posible on [email protected]

    Hi,
    Page HTML header
    <script>
    function onlyNum(evt) {
      // Usage: onKeyPress="return onlyNum(event)"
      evt = (evt) ? evt : window.event;
      var charCode = (evt.which) ? evt.which : evt.keyCode;
      if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        var status = 'This field accepts numbers only!';
        alert(status);
        return false;
      var status = '';
      return true;
    </script>Item HTML Form Element Attributes
    onKeyPress="return onlyNum(event)"Br,Jari

  • Advanced: JavaScript for billboards?

    Hi, I have an interest in implementing billboards in 3-d PDF figures. This allows us to do things like eg. place soft blobby textures at particle positions to produce really nice visualisations of star clusters etc.
    I've made some progress, but need help / ideas for going further.
    So far, I can import a VRML file with a textured quad at the origin of the coordinate system. By querying the camera view direction on every redraw, I can apply a rotation to the quad so that it always faces the camera. That code looks roughly like this:
    // rightObjsArray contains the meshes the quad
    // undo the previous rotation/s
    for (j = 0; j < rightObjsArray.length; j++) {
    rightObjsArray[j].transform.rotateAboutVectorInPlace(-angle, normal);
    // fetch camera
    var camera = scene.cameras.getByIndex(0);
    // calculate and normalise camera view direction
    var camdir = camera.position.subtract(camera.targetPosition);
    camdir.normalize();
    // create a z-aligned vector
    var zax = new Vector3(0., 0., 1.);
    // my quad is drawn in the XY plane, so the following calculates
    // a normal (vector) to rotate about, and the angle of rotation,
    // such that our quad's Z axis will become aligned with the camera
    // view direction
    normal = camdir.cross(zax);
    angle = -Math.acos(camdir.dot(zax));
    // apply the rotation to objects, eg...
    for (j = 0; j < rightObjsArray.length; j++) {
    rightObjsArray[j].transform.rotateAboutVectorInPlace(angle, normal);
    Now, this works pretty well, but there are two things that I still need to do:
    1. rotate the quad in the viewing plane (plane for which the camera view direction is a normal) so that it is "upright" on the screen. I wanted to use the camera.up vector for this but my calculations show that camera.up is not orthogonal to the camera view direction I calculate above.
    2. get it working for quads NOT at the origin of the coordinate system. I had hoped I could do this with a transform of the object to the origin, do the rotation, then transform back to the original position, but I can't seem to come up with any properties of the quad accessible from JavaScript that let me do this.
    I would be delighted to hear suggestions on the above, either in this forum, or directly by email to
    david.g.barnes at google's mail service
    thanks -
    David Barnes.

    Hi Got it
    FYI
    HTMLDB_ITEM.TEXT(1,field1,8,10,''onchange=javascript:Hi();'')
    thanks
    -prashant

  • JavaScript for Simplify Command

    Hello!
    I have combed through the Illustrator CS3 JavaScript Reference and am having some difficulty finding how to call the Simplify command using JavaScript. Does anyone know if this is possible. If it is, could you give me a hint as to where this may be documented?
    Thanks ahead of time for any help!

    Hi Got it
    FYI
    HTMLDB_ITEM.TEXT(1,field1,8,10,''onchange=javascript:Hi();'')
    thanks
    -prashant

  • Javascript for multiple date fields

    Hi all-
    I have to write javascript for 15 different date fields in a form.
    The requirement here is that we convert all date fields on Page 100 from date pickers (editable date fields) to display-only date fields with two controls for the users to set the date.
    If the field is empty (no date registered yet), there will be a green checkmark(X). When the user clicks this checkmark, the current date is entered into the field.
    If the field is not empty (there is a date already in the system), there will be a red X. When the user click this red X, the date from the date field is removed.
    The javascript I am using here is
    </script>
    <script type="text/javascript">
         function init(){
              var datePickerVal = $v2('P100_TODAYS_DATE');
              if(datePickerVal){
                   $x_Show('ToggleDateR');
                   $x_Hide('ToggleDateG');
              }else{
                   $x_Hide('ToggleDateR');
                   $x_Show('ToggleDateG');
         function toggleDateFunc(pValue){
              var sysDate = $v2('P100_DATE');
              if(pValue == 'R'){
                   $x_Hide('ToggleDateR');
                   $x_Show('ToggleDateG');
                   $x_Value('P100_TODAYS_DATE','');
              }else if(pValue == 'G'){
                   $x_Show('ToggleDateR');
                   $x_Hide('ToggleDateG');
                   $x_Value('P100_TODAYS_DATE',sysDate);
         window.onload = init;
    </script>
    This javascript is working for one date field( 'P100_TODAYS_DATE') but i have 15 different date fields in this page(100) all should have same funtionality. Please help me out how to write a logic to use this function for all the date fields.
    Thanks,(apex 3.2)
    Greenhorn
    Edited by: Greenhorn on Jul 19, 2011 12:30 PM

    Hi,
    You can do the needful by re-using the code if you can give the item names as P8_DATE1, P8_DATE_hh1, P8_DATE2, P8_DATEhh2 etc..So your item name just differs by a sequence.
    Now you write function which will return desired date value taking above items as input. Pass item names to this function, get session state using APEX_UTIL.GET_SESSION_STATE('item_name') API.
    Now modify you code as
    FOR i IN 1..30
    LOOP
    v_date_array[i] = f_get_date('P8_DATE'||i, 'P8_DATEhh'||i);
    END LOOP;
    ....Now you have all date valus in array. Just write one update as follows
    UPDATE  TABLE1
    SET date1 = my_date_array[1], date2 = my_date_array[2]..
    WHERE ....Hope it helps :)
    Cheers,
    Hari

  • Javascript to put text of selected tab in a header element at top of page

    Create a simple html document a header and main div's.   tab menu, say three tabs, in the main div.  Want the header to display the text of the selected tab.
    Here is the example with default SpryTabbedPanels.js and SpryTabbedPanels.css.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="header">Content for  id "header" Goes Here :Want this to be the text of the selected tab.</div>
    <div id="main">
      <div id="TabbedPanels1" class="TabbedPanels">
        <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0">Tab 1 text</li>
          <li class="TabbedPanelsTab" tabindex="0">Tab 2 text</li>
          <li class="TabbedPanelsTab" tabindex="0">Tab 3 text<br />
          </li>
        </ul>
        <div class="TabbedPanelsContentGroup">
          <div class="TabbedPanelsContent">Content 1</div>
          <div class="TabbedPanelsContent">Content 2</div>
          <div class="TabbedPanelsContent">Content 3</div>
        </div>
      </div>
      main content
    </div>
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    //-->
    </script>
    </body>
    </html>
    Anyone have a javascript for this?

    Just to clarify:

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • Controling space between Text Items when using htp.p('HTMLDB_ITEM.TEXT')

    I'm using the following code inside a table tag within a loop to generate a multi-row printable form
    htp.p('<td cellspacing="0" align="right" width="100%" style="font-size:8pt">'||HTMLDB_ITEM.TEXT(p_idx=>2,p_size=>1)||'</td>');
    I'm still getting gaps between rows.
    How do I control the space between each row ? I want each text item row packed up like a spreadsheet with no gaps between rows. Although not shown (border="0") there is the enclosing table cell for each field, so what I want is no cellspacing and maximized item height within each cell.
    But with the above code I'm getting...
    etc.
    but I want
    Anyone know how to do this?
    regards
    Paul P

    Hi Chris , how's it goin'...
    thanks for the response. I know how to control a table cell area's height but it's the height of the inner textitem that I'm having trouble with. When I turn on border="1" There's not much space left between cells, just the default width of a line. I just don't know how to expand the height of the text item. The CSS code you suggested, where do I put the code and how do I apply it?
    Here is the guts of the PLSQL report code
    for des_rec in des_cur loop
    htp.p('<table height="100%" width="95%"border="0">');
    htp.p('<tr>');
    htp.p('<td style="font-size:8pt;font-family:Arial" width="80%" nowrap >'||
    des_rec.DES_SERVICE_DESC||'</td>');
    htp.p('<td cellspacing="0" align="right" width="5%" style="font-size:8pt">'||
    HTMLDB_ITEM.TEXT(p_idx=>2,p_size=>1)||'</td>');
    htp.p('<td cellspacing="0" align="left" width="5%" style="font-size:8pt">'||
    HTMLDB_ITEM.TEXT(p_idx=>3,p_size=>1)||'</td>');
    htp.p('</tr>');
    htp.p('</table>');
    end loop;
    regards
    Paul P

  • Htmldb_item.text - show leading zero

    Hi,
    I've a report build up with the following query:
    select htmldb_item.text(1, to_char(num1, '9990D99'), 5, 5,'style="text-align:center"') num1
    from test1
    union all
    select htmldb_item.display_and_save(1, to_char(sum(num1), '9990D99'),5) num1
    from test1
    There are some numbers shown and at the end the sum of them. If the sum has a leading zero it is shown as 0.25, but for the value in the textfield is only shown 0 with to_char() - formatting, without it is shown .25 . What can I do to show there also 0.25. It seems to ignore my format given in the select.
    Thanks
    chrissy

    They give us this formatting option, and many more, in Numbers '09. My suggestion for your case if you wish to stay with '08 would be to not format the cells as percentage, but to multiply them by 100 to make them a percentage without displaying the percent sign. You could then label the column to clarify the situation.
    Jerry

  • HTMLDB_ITEM.TEXT : disable item !

    Hello,
    I have a question regarding the use of HTMLDB_ITEM.TEXT,
    Exemple, if my report contains the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year) year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    - the column year is diplayed but I have to disable it.
    - the column name is updated by the user.
    the save process is the following :
    for i in 1..wwv_flow.g_f01.count loop
    if wwv_flow.g_f01(i) is not null then
    update person set name = wwv_flow.g_f03(i)
    where id=:P1_ID and year = wwv_flow.g_f02(i) ;
    end if;
    end loop;
    works fine.
    My problem is : I must disable the column year, I have do the following :
    select
    HTMLDB_ITEM.HIDDEN(1,p.id) id,
    HTMLDB_ITEM.TEXT(2,p.year,3 ,2, 'DISABLED=DISABLED') year,
    HTMLDB_ITEM.TEXT(3,p.name) name
    FROM person p
    where p.id = :P1_ID
    Now, wwv_flow.g_f02(i) is no longuer recognized !!!!!!
    Any help !
    Jina.

    Jina,
    Perhaps this posting helps?
    Re: Bug: Disabled items on tabular form
    Regards,
    Marc

  • [CS3][JS] Apply XML tag for selected text

    Hi
      I need to apply XML tag to selected text in a tagged content.The XML tag is already applied for paragraph.I need to apply XML Tag for selected text in a paragraph.
    I have used following code, it applies tag for entire paragraph,not a selected text in a paragraph.
    app.selection[0].associatedXMLElements[0].markupTag=myDoc.xmlTags.item("italic");
    Please suggest me.
    Regards
    kumar

    The example script, markup.jsx
    //Markup.jsx
    //An InDesign CS4 JavaScript
    //Shows how to use the markup method.
    main();
    function main(){
        mySetup();
        mySnippet();
        myTeardown();
    function mySetup(){
        var myDocument = app.documents.add();
        var myPage = app.activeWindow.activePage;
        var myRootXMLElement = myDocument.xmlElements.item(0);
        var myXMLTag = myDocument.xmlTags.add("xml_element");
        var myXMLElementA = myRootXMLElement.xmlElements.add(myXMLTag);
        myXMLElementA.contents = "This is a paragraph in an XML story.";
        var myTextFrame = myPage.textFrames.add({geometricBounds:myGetBounds(myDocument, myPage)});
        myTextFrame.contents = "This is the first paragraph in a text frame.\rThis is the second paragraph in a text frame.\rThis is the third paragraph in a text frame.\rThis is the fourth paragraph in a text frame.\r";
    function mySnippet(){
        //<fragment>
        var myDocument = app.documents.item(0);
        var myPage = myDocument.pages.item(0);
        myDocument.xmlElements.item(0).xmlElements.item(0).markup(myPage.textFrames.item(0));
        //</fragment>
    function myTeardown(){
    function myGetBounds(myDocument, myPage){
        var myPageWidth = myDocument.documentPreferences.pageWidth;
        var myPageHeight = myDocument.documentPreferences.pageHeight
        if(myPage.side == PageSideOptions.leftHand){
            var myX2 = myPage.marginPreferences.left;
            var myX1 = myPage.marginPreferences.right;
        else{
            var myX1 = myPage.marginPreferences.left;
            var myX2 = myPage.marginPreferences.right;
        var myY1 = myPage.marginPreferences.top;
        var myX2 = myPageWidth - myX2;
        var myY2 = myPageHeight - myPage.marginPreferences.bottom;
        return [myY1, myX1, myY2, myX2];
    I think you can use the markup function on the selected item (Text Object have a markup method)
    Thomas B. Nielsen
    http://www.lund-co.dk

  • Html scripts for changing texts

    does anyone have an html snippet code for flashing text like on the hot news headlines at the bottom of the apple home page - i have located scrolling text - but not flashing, or changing text? thanks

    I just posted javascript snippet couple days ago to rotate images:
    http://discussions.apple.com/thread.jspa?messageID=7079863&#7079863
    The same method can be used for text head liners, however it's depend on how the head liners are supplied.
    If you have to supply the head lines, you are on your own; you'll have to update them.
    or you can use some ready made such as BBC: http://news.bbc.co.uk/nol/ifsnews/hi/frontpage/ticker.stm
    or you can use webclip, webclip makes part of a web page into Dashboard widget, then process Dashboard code into HTML code. Anyway, here is Apple header liners in webclip: http://hdl.50webs.com/Dashboard/Widgets.html

Maybe you are looking for

  • Problem with Database creating on Oracle 8.1.5 for Linux

    I found some error when I use dbassist to create database. ( copy from CD method ) Error dialogue show "CD ROM not detected ". I use both '/cdrom' and '/mnt/cdrom' as cd-rom mount point , if this's not correct mount-point. Where should I mount my CD-

  • Problem with my battery on iphone 5c

    problem with my battery on iphone 5c

  • Not getting DHCP address on HP 8000 Elite

    I'm using the Feb 2010 CD. Windows 2003 DHCP server Boot with the cd and no dhcp address. If I type "dhcpcd eth0 -n" enough times I will eventually get an address, although the first time it's usually "err, eth0: Failed to lookup hostname via DNS: Na

  • Constant selection

    Hello, in query definition, where I can see if a characteristic has constant selection? Thanks, Vito

  • Mail unable to send, Again

    For the second time in six months I can't send any mail last time it was due to the cloud introduction but I don't know what has changed now. I just keep getting a message saying it can't connect to the server and stuff about certificates being out o