Javascript help!

Hi all,
Appreciate that this is an ABAP forum, however there doesn't appear to be a Javascript specific forum so here goes...
I would like to dynamically call the active query technical name within a BW WAD button using java script. I had previously asked for help within the BI forum but unfortunately not one was able to help me. See thread here: Re: Opening a URL from a button within a Web Template
I was able to ascertain that using the command: sapbi_page.GetMainTemplateName(); will give me the technical name of the webtemplate although I'm finding it hard to find the command for getting the technical name of the current report.
There doesn't appear to be a definitive list of these backend type commands in help.sap.com?
The end result of what iI want to accomplish is for the user to click a button within a WAD report that will open a new window that redirects the user to another page with the technical name of the query within the URL (as an argument).
Please help!

did you manage to install AppWorld?
The search box on top-right of this page is your true friend, and the public Knowledge Base too:

Similar Messages

  • InDesign JavaScript "help" file

    I have used Jongware's InDesign JavaScript help files and have really found them essential. I am grateful for his efforts to make these available.
    I am primarily a FrameMaker user and Adobe is going to provide ExtendScript support for the next version of FrameMaker. The FrameMaker object model is shown in the ExtendScript Toolkit CS5 Object Model Viewer. I would like to do something similar to what Jongware did in extracting the data to a series of HTML files. I am having difficulty figuring out where this data is stored. I can't find an XML file that contains the data. I am mainly posting this here because I haven't been able to contact Jongware directly. Thanks in advance for any help.
    Rick

    Oops :-) Yeah to avoid sp@m I don't really want to post my mail addresses on public sites.
    I sent you a P.M., I'm hugely interested in what you are planning!

  • [CS5/JS] Ann: Javascript Help files updated

    Hi everyone. The new user-friendly Javascript Help files have been updated with a CS5 version. Download link on its homepage: http://www.jongware.com/idjshelp.html
    Only in Windows CHM-format for the moment (does anyone at all use the HTML version? If not ... well ... I dunno...).
    I spotted a few additions and changes in the Help file -- apart from support for the new commands, obviously -- such as proper Superclass referencing, and a few objects with Class properties, which apparently are something else than Instance properties. Hey, don't ask me. I only converted the file.
    Among the more interesting new objects:
    * "PlaceGun" -- finally, a way to 'load' the gun with text created solely by scripting?
    * "BeforeCreate", "AfterCreate" (and a few more similar): trap the event for (possibly) every object you can place into ID!
    * A new Scripting Preference: measurementUnit. Apparently, this is "the measurement unit used during script processing" and, ya-hey!, we scripters don't have to awkwardly read, save, change, and restore, the measurement units anymore!

    Minor cosmetic updates to the CHM version:
    * The bullet was shown as a decoded UTF-8 value on Robin Lu's Mac CHM viewer. Changed from its Unicode value to "•" (quite the trick, as Saxon firmly objects to HTML stuff like that!). There may be more 'mangled' characters remaining, dunno if it's worth the trouble hunting them down one by one tho'.
    * Contrary to what I stated before, the Help does contain a few examples -- in the JavaScript Base Classes section. Rather terse, so for the experienced scripter they are hardly relevant; but perhaps newbies can put them to good use. They are marked by a pretty-in-pink background.
    * The list of parents in the Hierarchy view was not sorted alphabetically -- fixed. (I've finally started using XSLT 2.0 functions. Yay!)
    * Lists of multiple object datatypes were not sorted alphabetically -- fixed, by sorting them on the comma and the word "or". However, some of the more incomprehensible descriptions now got just a bit more incomprehensible ...
    E.g., common in "resize" functions: "Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers." I have no idea how to mentally parse that, let alone have my computer do it.
    * Added more and more hyperlinks. I think most of ScriptUI's internal links to "Button", "Window", etc. which also have a 'regular' UI counterpart finally point to ScriptUI's own objects. Hard to check, really.
    * Also added hyperlinks for the common objects "Boolean", "String", "Number", and "Array" -- just to be complete!
    * The total number of internal hyperlinks now tops out above 104,000! (And no, I didn't check all of them.)
    Direct link to the CHM version: http://www.jongware.com/binaries/idcs5js_chm_3.0.3.zip
    (the minor version number jump from .1 to .3 is because of a lot of testing before I got everything right -- again...)
    The HTML version follows, somehow, somewhere, some time later. (HTML users: is that full function index of any use?)
    * For some reason the page for the "Global classes" was interpreted in the CHM contents as a 'book', rather than a regular help page, and you could not navigate to there! (A search for 'inifinity' still landed you on that page.) Fixed by hand, but I wonder why this happened ...
    Oh darn it! I found out why that happened, re-wrote part of my XSLT transform to fix it and broke lots of other things. Today, I fixed that, and now I see this doesn't work anymore -- again!
    You will be expecting a 0.4 version shortly, then.

  • Javascript Help - Customising buttons to display varied data

    Hi there,
    I'm looking for some Javascripting help since I'm new to this form of scripting. In the report template I'm creating, I need to have a series of radio buttons with each being able to display a different amount of data when selected. So for example, if you choose option a and hit the select button: one layout for the document is shown, option b: another different layout would display, etc.
    Here's a link to an existing pdf which demonstrates what I'm looking for in the second half of the page. The pdf is locked so I can't look at the existing coding or anything that they've used. Any help would be greatly appreciated~ Thanks.
    http://www.lands.nsw.gov.au/_media/lands/pdf/rp_dealings_interactive/01T_v3-2.pdf

    Nariko,
    Place your "different amounts of data" in their own subforms. Have each subform default as hidden so that they won't show. Next in the change event for the radio button group place the following javascript (this assumes your radio button group has it's values bound as 1, 2, & 3):
    if(this.rawValue == 1)
    subForm1.presence = "visible";
    subForm2.presence = "hidden";
    subForm3.presence = "hidden";
    else if(this.rawValue == 2)
    subForm2.presence = "visible";
    subForm1.presence = "hidden";
    subForm3.presence = "hidden";
    else if(this.rawValue == 3)
    subForm3.presence = "visible";
    subForm1.presence = "hidden";
    subForm2.presence = "hidden";
    This will display and hide the objects in the various sub forms based on which radio button is selected.

  • JavaScript:  Help with IF Statement

    I am not familar with Java and I have been fighting with this IF statement and I cannot get it to work.  I am sure it is something fairly basic.  Can anyone help?  I have seeminly tried everything.  In this example below I am trying to check if the data the user has entered in the FAVOR field is AAA and if it is then put up a message and if it isn't then put up a different message.  My top node in my hierarcy is data and then I have a MainSubform and then a Contact02Subform.  I have this code attached to a button and notthing happens when I click the button.  If I remove the if statement and just have the message box by itself then it shows the message box.  So I know it is my IF statement and I am sure it is simple.  Help please?
    if (xfa.resolveNode("xfa.form.data.MainSubform.Contact02Subform.FAVOR").rawValue == 'AAA')
      xfa.host.messageBox("My IF"); else;  xfa.host.messageBox("My ELSE");
    endif;

    Try this.
    if (xfa.resolveNode("xfa.form.data.MainSubform.Contact02Subform.FAVOR"). rawValue == 'AAA')
              xfa.host.messageBox("My IF");
    else
               xfa.host.messageBox("My ELSE");
    endif is used in FormCalc generally not in JavaScript.
    Thanks,
    Bibhu.

  • JavaScript help Including JavaScript in a .js File Referenced by the Page

    I need help with JavaScript. I have been doing the Advanced Tutorial, and still don't feel that understand how to make it work.
    The example in "Oracle Database Application Express User's Guide" shows this line:
    <script src="http://myserver.myport/my_images/custom.js" type="text/javascript"></script>
    I understand that "my_images" is hypothetical, but where is the real equivalent to this?
    Is there a working example/tutorial of Including JavaScript?
    <li />Also how does one create AJAX functionality?
    If I want to do something like this http://www.w3schools.com/ajax/ajax_server.asp
    in APEX, where do I place the "time.asp" script?
    <li />Can we assume that the HTML and ASP file are in the same directory?
    Please any assistance with these topics are greatly appreciated.

    Hello,
    >> what is the directory structure you would use for /my_images/custom.js? Where does one load these .js files? where is it in the local machine?
    C:\oracle\product\10.2.0\db\Apache ?
    The documentation only gives you a possible example (and I might agree that it’s not the best one). You should put your external JS files (on the server OS file system) wherever it will be most accessible and maintainable for you. The best place, IMHO, is under the /images/javascript/ directory. The reason is very simple. You can use the alias /i/, which defined in your DAD file, to gain a very simple path to the file. In this case, the loading statement will look similar to the following:
    <script src="/i/javascript/custom.js" type="text/javascript"></script>
    >> Do you mean "Oracle Database PL/SQL Packages/Types and htp packages?"
    I’m assuming you are talking about the on-demand process. This is a regular PL/SQL anonymous block, which will be fired only upon specific request - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/bldr.htm#BABEAIIE . This is the mechanism for handling the server side of AJAX.
    >>Anythig else available for us to levarage?
    Denes examples site can also be a valuable resource - http://htmldb.oracle.com/pls/otn/f?p=31517:1 .
    Regards,
    Arie.

  • Javascript help - Hide/Show a page item

    Environment:
    APEX 3.1.00.09 running on AIX 5.3
    Sample application on apex.oracle.com:
    Workspace: GALWAY
    UserID: gwicke
    Password: gwicke
    To see where my issues are:
    1- Start on page 3
    2- In the Agency drop down select 'J & B Marketing'
    3- In the Contract drop down select the only contract that appears
    4- Click on 'Edit Existing Contract'
    5- Note the page item 'LY Closings' has the value 261
    6- Click on the link (really a tab in my theme) at the top labeled 'Cost Detail'
    7- The 'Estimate Justification' is the page item to be displayed/hidden as noted below.
    8- The 'Homes Per Year' under the 'YEAR1' column is the user input page item
    9- The P2_BUILDER_CLOSINGS (value 261 noted above) is the page item to be used in the comparison
    I need to do a couple of things with a potentially hidden page item:
    1- Every time the page loads I need to check to see if the page item (P8_ESTIMATE_JUSTIFICATION) is not null and if it is indeed not null, make it displayed.
    2- When the user enters a value in another page item (P8_HOMES_PER_YEAR1), call a function to see if that value is more than 120% of another page item (P2_BUILDER_CLOSINGS) and if so make the above page item displayed (P8_ESTIMATE_JUSTIFICATION).
    I have the javascript function created (showHideEstimateJustification) and in the HTML Header of the page. The function is being called currently with an onChange check on the page item entered by the user as noted above (P8_HOMES_PER_YEAR1).
    Issues:
    1- I need to force a SUBMIT after the user enters the value for P8_HOMES_PER_YEAR1 so it is available in session state and hence to the javascript function (other ideas welcome!)
    2- I am currently using the x.style.display = 'inline' versus 'none' to hide/show the page item, where x is derived from var x = document.getElementById(P8_ESTIMATE_JUSTIFICATION) Is there a better way????
    Any help is greatly appreciated.
    -gary (a.k.a. Javascript newbie)

    Hi,
    Only your messages use the session state. The code would use the entered value, but you would need to change:
    var homes = parseInt(document.getElementById('P8_HOMES_PER_YEAR1'));to
    var homes = parseInt(document.getElementById('P8_HOMES_PER_YEAR1').value);so that "homes" becomes the numeric version of the value of the item
    Normally, for the label, you would just enter an ID="xxx" into the HTML Table Cell Attributes for the label which you can then use in your javascript. For some reason this doesn't seem to want to work in this page.
    What you could do is find all the labels and then check which is the right one before showing/hiding it. Something along the lines of:
    var xx = document.getElementsByTagName("LABEL");
    var zz;
    var label;
    for (zz = 0; zz < xx.length; zz++)
    if (xx[zz].htmlFor == 'P8_ESTIMATE_JUSTIFICTION")
      label = xx[zz];
    xx[zz].style.display = 'none';
    {code}
    Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Javascript help for newbie

    Hi,
    I have a 18x12 booklet form PDF (each PDF page consists of 2 9x12 images) that I need to split into single 9x12 pages.
    Found 2 scripts on the net to split pages in Acrobat and the other one to reorder the split pages. (after splitting the pages one ends up with page 1, page 24, page 2, page 23, etc.) Need to reorder the pages and found the Reorder script below.
    But it doesn't work in Acrobat 9 - I'm getting an illegal character error in line 20. (seems to be this line? nStart: i * 4 – 3).
    I don't even get a menu item called Reorder Pages under Documents.
    Help?
    Script:
    ReorderDocument = app.trustedFunction(function()
    // create a new document
    app.beginPriv();
    var newDoc = app.newDoc();
    app.endPriv();
    // reorder pages in booklet order into new document in sequential order
    var i = 0;
    var n = this.numPages;
    for (var i = 1; i <= n / 4; i++)
    newDoc.insertPages( {
    nPage: newDoc.numPages-1,
    cPath: this.path,
    nStart: i * 4 – 3,
    nEnd: i * 4 – 2
    newDoc.insertPages( {
    nPage: newDoc.numPages – 1,
    cPath: this.path,
    nStart: n – 1
    for (var i = 1; i 1)
    newDoc.deletePages(0); // this gets rid of the page that was created with the newDoc call.
    // add the menu item
    app.addMenuItem({
    cName: "reorderPagesJS", // this is the internal name used for this menu item
    cUser: "Reorder Pages", // this is the label that is used to display the menu item
    cParent: "Document", // this is the parent menu. The file menu would use "File"
    cExec: "ReorderDocument()", // this is the JavaScript code to execute when this menu item is selected
    cEnable: "event.rc = (event.target != null);", // when should this menu item be active?
    nPos: 1

    Hold on - just found another webpage with different code. This one seems to work now. Posting it here in case somebody else needs it: this script is to reshuffle pages are having split a booklet form PDF into separate pages:
    ReorderDocument = app.trustedFunction(function()
    // create a new document
    app.beginPriv();
    var newDoc = app.newDoc();
    app.endPriv();
    // reorder pages in booklet order into new document in sequential order
    var i = 0;
    var n = this.numPages;
    for (var i = 1; i <= n / 4; i++)
    newDoc.insertPages( {
    nPage: newDoc.numPages-1,
    cPath: this.path,
    nStart: i * 4 - 3,
    nEnd: i * 4 - 2
    newDoc.insertPages( {
    nPage: newDoc.numPages - 1,
    cPath: this.path,
    nStart: n - 1
    for (var i = 1; i <= n / 4 - 1; i++)
    newDoc.insertPages( {
    nPage: newDoc.numPages - 1,
    cPath: this.path,
    nStart: n - i * 4
    newDoc.insertPages( {
    nPage: newDoc.numPages - 1,
    cPath: this.path,
    nStart: n - i * 4 - 1
    newDoc.insertPages( {
    nPage: newDoc.numPages - 1,
    cPath: this.path,
    nStart: 0
    if (newDoc.numPages > 1)
    newDoc.deletePages(0); // this gets rid of the page that was created with the newDoc call.
    // add the menu item
    app.addMenuItem({
    cName: "reorderPagesJS", // this is the internal name used for this menu item
    cUser: "Reorder Pages", // this is the label that is used to display the menu item
    cParent: "Document", // this is the parent menu. The file menu would use “File”
    cExec: "ReorderDocument()", // this is the JavaScript code to execute when this menu item is selected
    cEnable: "event.rc = (event.target != null);", // when should this menu item be active?
    nPos: 1

  • Set text of container - javascript help, please!

    I have used Dreamweaver behaviours to "Set text of container" and make different writing appear inside a box when I click a hotspot. Now I want people to be able to click on the writing that just appeared and make more text appear in another box. Could someone tell me how to do this? I don't think I can use Dreamweaver's behaviours for this because there's no material trigger... in that the writing that is the trigger only appears when the first trigger is clicked, but I'm more than happy to be corrected!!
    So, I've been trawling through javascript libraries but I don't know what I'm doing, so if someone could either tell me how to do this in dreamweaver or really spell out what libraries etc. I need to download and what code I need to make a bit of text that's already a set text of a container into a trigger for a set text of another container, that would be great!
    Sorry for the complicated question, it's difficult to explain what I mean.
    All help very much appreciated ^^

    flozzle19262010 wrote:
    I... really don't see how that will help you, considering I'm just asking HOW to do something. It's not like there's a mistake in my CSS or whatever, I just want to know if such a thing as described above is possible...
    As I say, I'm reluctant to upload it as it's for someone else.
    Have a look here http://forums.adobe.com/message/2691056#2691056.
    Both Nancy (one of the best in the business) and I have been trying to help. It's your call.
    I wish you the best of luck.
    Ben

  • Images with hyperlink in javascript - help needed

    Hai,
    I am having two hyperlinks say, "Good Morning" and "Good Evening". When I am clicking "Good Morning", a small arrow or a picture should display with the hyperlink.
    When I am clicking "Good Evening" this one should have the small arrow or a picture and "Good Morning" will be displayed normally (without picture).
    How can I do this using javascript?
    Did anyone has the code? Pls help me.
    <html>
    <head>
    <title>
    Moves the Arrow When Clicked the Headings for Sorting purpose
    </title>
    <SCRIPT language="JavaScript">
    function remove_picture() {
    function set_picture() {
    </SCRIPT>
    </head>
    <body bgcolor="peachpuff" width="90%" align="center">
    <table>
    <tr>
    <td align="left">Good Morning</td>
    <td>Good Evening</td>
    </tr>
    </table>
    </body>
    </html>
    - yogee

    <html>
      <head>
        <style type="text/css">
          #notclicking .highliter {
            display: none;
          #clicking .highliter {
            display: inline;
        </style>
        <script type="text/javascript">
          function showHighliter(elem) {
            elem.id="clicking";
          function hideHighliter(elem) {
            elem.id="notclicking";
        </script>
      </head>
      <body>
        <a href="#" id="notclicking"
           onfocus="showHighliter(this);"
           onblur="hideHighliter(this)">
          <img border="0" class="highliter"
               src="http://forum.java.sun.com/im/duke.gif"/>
          Good Morning
        </a><br/>
        <a href="#" id="notclicking"
           onfocus="showHighliter(this);"
           onblur="hideHighliter(this)">
          <img border="0" class="highliter"
               src="http://forum.java.sun.com/im/duke.gif"/>
          Good Evening
        </a><br/>
      </body>
    </html>

  • Javascript help required

    Hi,
    I am using external ITS with R/3 4.7c and am updating an SAP HTML Template with javascript. I am stuck at the point where I want to add validation for a check box at the click of button.
    Any help would be appreciated.
    I am trying to add hTml code here..but it is not allowing me to do so....
    regards
    Atul Shrivastava

    Hello Atul,
    You will need to give more information on the actual error you are experiencing, what and why is it not allowing you to do so?  Are you using SE80, the old SAP@Web Studio, a text editor to edit a template?  Are you then trying to upload the template and getting an error, what is the error?  ...
    Edgar

  • Javascript help for date.

    I am starting to create a website and would like to include
    the current date on my site. I searched around on the internet and
    came across this code but it doesn't seem to show up when I include
    it in the code of the webpage.
    <script type="text/javascript">
    var d=new Date()
    var weekday=new
    Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    var monthname=new
    Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
    document.write(weekday[d.getDay()] + " ")
    document.write(monthname[d.getMonth()] + " ")
    document.write(d.getDate()] + ", ")
    document.write(d.getFullYear())
    </script>
    Is this code incorrect? Or am I not using character spacing
    correctly? I have been looking for additional javascript to use but
    I thought that I should try this forum for assistance. Any help
    would be greatly appreciated. Thanks in advance.

    And the URL is:
    http://blog.kaosweaver.com/index.php?entry=entry071010-093431
    (sorry)
    Paul Davis
    http://www.kaosweaver.com/
    Visit us for dozens of useful Dreamweaver Extensions.
    http://www.communitymx.com/
    Partner at Community MX - Extend your knowledge
    JaneGarner wrote:
    > Bregent, I agree that there is better content to have on
    a website, but I am
    > very new to web design and am trying to learn different
    things. I am interested
    > in learning the javascript to have the date, but not
    sure if I will include it
    > when I design my website. And the date would be the date
    that the visitor views
    > my website, not the current date of the server.
    >
    > E Michael Brandt, yes the script is all on one line and
    it is in the body of
    > the page
    >
    > I did attach the code but this is just a test page to
    work with the date.
    >
    > <!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=iso-8859-1" />
    > <title>TestPage</title>
    > </head>
    >
    > <body><script type="text/javascript">
    > var d=new Date()
    > var weekday=new
    >
    Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    > var monthname=new
    >
    Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
    > document.write(weekday[d.getDay()] + " ")
    > document.write(monthname[d.getMonth()] + " ")
    > document.write(d.getDate()] + ", ")
    > document.write(d.getFullYear())
    > </script>
    > </body>
    > </html>
    >

  • Iframe redirect javascript help please

    Hi:
    My client uses a loan application on another service's site, and I embedded the form in an iFrame to keep the user on my client's site.
    At the Submit of the form, it redirects to the client's home page, but it does it within the confines of the frame -- I want the redirect to go to the "top" Home page.  Unfortunately, the offsite service cannot apply a target="_top" to the redirect link script.
    The link is http://sequoiapacificmortgage.com/loan-application/
    The service said this:
    "The thank you page after the application and before the redirect URL has a unique URL.
    Is it possible to code your iframe to recognize this URL and redirect the full site to your home page rather than depending on the vLender redirect within the iframe?
    I am including the unique thank you page URL from Lori's website below, the ref_ID attribute is the unique application ID number assigned to my test application (the application ID's are generated using the first 3 letters of the applicant's first name [LYN for Lynsee] and the first 3 letters of the applicant's last name [TES for Testing] followed by the numeric sequence) but you should be able to remove that and have your custom site's code recognize the .php url which would trigger a redirect within your site's code that would take place before our system enacts its redirect to the home page within the iframe.
    (https://www.vlender.com/apps/templates/new_thank_you.php?ref_id=LYNTES998262971)"
    I have seen several references to Javascript to accomplish the desired redirect, but I am not sure how to construct it, nor if it can capture the presence of the mentioned URL to trigger it.
    Can anyone help please?  Thanks much!
    Rgds, Ned

    You are talking about JavaScript - Java and JavaScript are two completely different things. Therefore, this is not the correct area to post that question.

  • Javascript Help Please

    I want to be able to have a combo box to automatically populate a field with a certain phrase or number. I dont know javascript and need some help.
    For example, in "combo box 1"- Cats, Dogs, Hamsters, Fish
    If I chose Cats, "Text1" field should populate "25,000"
    If I chose Dogs, "Text1" field should populate "10,000"
    I know this is a simple custom calculation but still need assistance
    Thanks

    The easiest way is to set the export value of each combo box item to the corresponding numeric value. The calculation simply sets the value of the field to the value of the combo box. In JavaScript, this would be:
    event.value = getField("combo box 1").value;
    If you don't want to set export values fro the combo box items, the custom calculation script could look like:
    (function () {
        // Object to associate combo box items with numbers
        var oVals = {
            "Cats" : "25,000",
            "Dogs" : "10,000",
            "Birds" : "15,000"
        // Set this field value to number associated with item, or blank if missing
        event.value = oVals[getField("combo box 1").value] || "";

  • Javascript help for pagecount

    H All,
    I am trying to write a javascript to show the address if the page count on the form is less than 10 pages . the form grows dynamically based on the .xml data
    my address field has javascript
    xfa.resolveNode("Correspondance.#subform.Client_Addrp1").rawValue = xfa.resolveNode("Correspondance.#subform[4].Client_addr_Name").rawValue + "\n" +  xfa.resolveNode("Correspondance.#subform[4].Client_addr1").rawValue + "\n" + xfa.resolveNode("Correspondance.#subform[4].Client_addr2").rawValue + "\n" + xfa.resolveNode("Correspondance.#subform[4].Client_addr_City").rawValue + " " + xfa.resolveNode("Correspondance.#subform[4].Client_addr_State").rawValue + " " + xfa.resolveNode("Correspondance.#subform[4].Client_addr_zip").rawValue;
    but i also want to show the address on the page if the page count is less than 10 pages, can somebody help me to incorporate the pagecount logic on the address field.
    Thanks in advance.
    Cwilliam

    Thanks srini, it worked ..thank u very much..
    also if possible can you please tell me the difference between
    xfa.host.numpages and xfa.layout.pageCount()
    i have tried if(xfa.host.numpages <10)
    { }, it did not work though..
    Thanks again
    cwilliam

Maybe you are looking for