Dynamic field in master page header?

Is it possible to put a dynamic field in a master page header that will either pull from a hidden text field added to each subform (e.g., appID) or pull in the title of the subform itself?  I have a number of variable-sized subforms that need the same header and footer, with the only distinct element being a different number at the top.
I've been looking for a standard variable or wildcard that can be used to dynamically reference an object at the same level in multiple subforms, but so far have not been able to find what I need.
Hierarchy:
form1
     masterpage
     subformApp1
     subformApp2

Hi Sankar,
Create on eattribute of type String and bind to title property of page header,
and your WDDOINIT or any event write code to set title for PG header,
You are using different buttons, use this code in your buttons and change text.
DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->Element_context.
  DATA lv_pg TYPE wd_this->Element_context-pg.
* get element via lead selection
  lo_el_context = wd_context->get_element( ).
  data pg1 type string.
  pg1 = 'selected the record'.
  lv_pg = Pg1.
* set single attribute
  lo_el_context->set_attribute(
    name =  `PG`
    value = lv_pg ).
In button 1..
lv_pg = 'Enter the entries'.
* set single attribute
  lo_el_context->set_attribute(
    name =  `PG`
    value = lv_pg ).
Cheers,
Kris.

Similar Messages

  • Echoing entered field in master pages/headers

    I'm creating a form that needs to have some data entered on the first page (a patient name) which then gets echoed to all of the subsequent pages on the form in case the pages get separated.
    I have two master pages: one for the first page, with the company logo, and one for subsequent pages, which has the same logo but also includes a read-only field for the redisplay of the patient name. The patient name is entered on the first page, and a script that runs on change populates the read-only field in the second master page with the value of the entered field.
    The second and following pages use the "subsequent page" master page.
    All of that works, but the odd thing is that the value of the field only displays on the FIRST iteration of the subsequent page. In other words, the value entered on page 1 displays correctly on page 2, but on pages 3 and forward it doesn't show. The field is there, but it's empty.
    I assumed that setting a read-only field's data within a master page / header would cause it to display on all pages that use that master page, but it seems to only get displayed on the first such page.
    How do I make the field entered/filled out on the first page echo on all subsequent pages, in the header?
    Thanks for any tips.

    The reason why the 1st one is the only one filled is that each field has a unique name .....soyou woudl have to determine how many pages you have and write a for loop to place th eentered value into each of the fields (the page number is part of the Expression that is used to make the field unique). You can see the unique expression by adding  the javascript comand app.alert(this.somExpression) in the enter event. Now each time you enter the field it will display the somExpression and you can see the difference in the field name (it will be a page occurance number).
    OR......
    If you set the binding to global then all fields that have the same name will get the same value.
    Hope that helps
    Paul

  • Master Page Header and Footer in Page Viewer Web Part

    Hi.
    I created a View in Pages Library to view specific folders.
    After that i added one Page Viewer web part to one of the aspx page.
    There in the Page Viewer web part properties Link i have provided the url of the view.
    It is displaying the folders but at the same time it is displaying the master page header and footer inside the web part.
    Now i need to display the folders alone inside the Page Viewer web part.
    Please let me know how to exclude the master page header and footer inside the Page Viewer web part?
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    I think that is the default behavior of the page viewer webpart.
    In the page viewer web part,your just enter the url of the website.So that is treated as webpage and it is displaying as per page.
    http://meritsolutions.com/meritmatters/archives/576-Displaying-a-File,-Folder-or-Web-Page-in-the-Page-Viewer-Web-Part.html
    If you want to display a folder, type in a network path to that folder under Link and the folder content will be displayed. 
    Find the more details about page viewer webpart in msdn
    http://office.microsoft.com/en-in/sharepoint-server-help/page-viewer-web-part-HA010024045.aspx

  • Changing font/-size of a text field on master-pages not possible? (field prop)

    Hi,
    I would like to change the font and font-size of a textfield on a master page.
    I wonder if I do anything wrong, because the font-options (size, font etc.) are simple greyed out / not avaliable, when I click on my text field.
    It seems, there is any way to customize the font-properties of a textfield (only) on master-page.
    Well I guess it would work with java script in init-event ...  but really, why the hell it should not be possible simply to use the properties/text properties?!
    Please correct me if I am wrong. Do I do anything wrong or is it really not possible to customize font of a text field on master pages?

    Hi,
    I was just about to post, that I figured it out.
    Actually, I use Livecycle Designer in SAP (transaction SFP). There seems to be a bug (one of hundrets by the way).
    If I click on a field, that does not have text-property e.g. subform, text-option menu greys out.
    Afterwards it stay this way until I click/doubleclick into a simple text (not text field). From that moment on, text/font-option menu is available again, until I click on something without text. => So pay attention and click wisely
    coming soon: "SAP meets Livecycle Designer - a (Bug)Lovestory", hardcover 124 Pages. ; )
    by the way: SAP does not sopport interactive forms higher than Reader 8.1. Its statement "8.1 is fine enough for everything you need in a SAP/Adobe Interactive Form". So beware of using XFA higher than in 8.1. sad, but true ...

  • Need graphic above master page header

    Hello,
    I'm a new user and starting to catch on.  However, I need a graphic to show up a Master page header.  I looked this up and found the following:
    "If you want a master item to appear in front of objects on the document page, assign a higher layer to the object on the master. A master item on a higher layer appears in front of all objects on lower layers."
    But how do I do this - the Master page layers do not show on the document page.
    Thanks so much!

    Hi, select your red object on the Master page, click the Effects panel and choose Isolate Blending
    Go back to your page and it should look correct!
    Michael

  • Dynamically Hiding a Master Page

    Dear All,
    I have two master pages.
    Is it possible to hide the master pages dynamically?
    If by FormCalc/javascript, kindly embed the code.
    Regards,
    Prosenjit.

    You can hide the master page depending on any condition you have. But there is one clean rule. If your master page doesn't want to get printed then content area of that master page should not contain any data. It means even if you hide all the data in the content area, your whole master page ( including its instances i.e overflown pages) will be hidden.
    For that you have to create a text field in your layout and drag and drop it in the content area of the master page which you want to hide. The text field acts like a flag whether or not to hide the master page. If 'X' then hide. Else do not hide. The value of the flag field will be decided while coding in the interface itself based on your condition. Then wrap the data of the content area including your flag field in a sub form. Do not forget to hide the flag field after wrapping it in the sub form because you don't want to show this on the page if that page is displayed by any chance.
    Finally click on the whole wrapped sub form. Write below Form calc script in events Initialization, Form Ready and Layout Ready.
    Here the HIDEPAGE_FLAG is nothing but your flag field.
    if ( $.HIDEPAGE_FLAG == "X" ) then
    $.presence = "hidden"
    endif
    This code hides your whole sub form . It means there will be no data shown in the content area and the Adobe framework doesn't print that specific master page(and all its instances). :-)

  • Master page: header changes are not reflected in existing topics

    A few months ago this forum helped me to troubleshoot and fix problems with the Show More | Show Less command that I inherited from a previous writer.  I chose to use the Single Button approach and used this code, on the Master Page, for "onclick":
    <body>
    <?rh-script_start ?><script src="ehlpdhtm.js" type="text/javascript" language="JavaScript1.2"></script><?rh-script_end ?>
    <?rh-region_start type="header" style="width: 100%; position: relative;" ?>
    <table style="height: 10px;" cellspacing="0" width="100%">
      <col width="186" />
      <col width="481" />
      <col width="97" />
      <tr>
       <td><h2><img src="NGP_Logo_small.png" alt="" style="border: none;"
           border="0" /></h2></td>
       <td><h2 style="text-align: right; margin-right: 20px;">Help</h2></td>
       <td><h2><img src="btnshowall.gif" onclick="ShowAll(this)" alt=""
           style="border: none;" border="0" /></h2></td>
    This worked fine until recently when I changed the logo in the left cell of the header table. Today I discovered that the img src = line had gone away. And so I re-entered it, and it works fine on new topics, and on some, but NOT all topics.
    Here's what happens on an older topic:
    Preview the topic.
    Click Show All button. A Script Error message appears: "The value fo the property 'ShowAll' is null or undefined, not a Function object. Code = 0. file = ...../Help/Administration/rlt1F1.htm.
    Here's the HTML code for this topic, which is missing the code btnshowall code.
    <body>
    <?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript"
            language="JavaScript1.2"></script><?rh-script_end ?>
    <?rh-placeholder type="header" ?>
    <table cellspacing="0" width="100%">
    <col style="width: 80.663%;" />
    <col style="width: 19.337%;" />
    <tr>
      <td><h1><?rh-variable_start name="title" format="default" showcode="showcode"
              value="Setting Global Defaults" ?>Setting Global Defaults<?rh-variable_end ?></h1></td>
      <td style="vertical-align: bottom;"><p style="text-align: right;
                 margin-bottom: 6pt; line-height: Normal;">&#160;</p></td>
    </tr>
    </table>
    I tried setting the Master Page to None and then re-setting it to Main. That does not help.
    The only workaround I've found so far is to create a new topic, copy the content from the old topic, delete the old topic, and rename the new topic using the old topic's name. But that is very tedious.
    Any thoughts on how to fix the problem without recreating every topic?
    Thank you.
    Carol

    A few months ago this forum helped me to troubleshoot and fix problems with the Show More | Show Less command that I inherited from a previous writer.  I chose to use the Single Button approach and used this code, on the Master Page, for "onclick":
    <body>
    <?rh-script_start ?><script src="ehlpdhtm.js" type="text/javascript" language="JavaScript1.2"></script><?rh-script_end ?>
    <?rh-region_start type="header" style="width: 100%; position: relative;" ?>
    <table style="height: 10px;" cellspacing="0" width="100%">
      <col width="186" />
      <col width="481" />
      <col width="97" />
      <tr>
       <td><h2><img src="NGP_Logo_small.png" alt="" style="border: none;"
           border="0" /></h2></td>
       <td><h2 style="text-align: right; margin-right: 20px;">Help</h2></td>
       <td><h2><img src="btnshowall.gif" onclick="ShowAll(this)" alt=""
           style="border: none;" border="0" /></h2></td>
    This worked fine until recently when I changed the logo in the left cell of the header table. Today I discovered that the img src = line had gone away. And so I re-entered it, and it works fine on new topics, and on some, but NOT all topics.
    Here's what happens on an older topic:
    Preview the topic.
    Click Show All button. A Script Error message appears: "The value fo the property 'ShowAll' is null or undefined, not a Function object. Code = 0. file = ...../Help/Administration/rlt1F1.htm.
    Here's the HTML code for this topic, which is missing the code btnshowall code.
    <body>
    <?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript"
            language="JavaScript1.2"></script><?rh-script_end ?>
    <?rh-placeholder type="header" ?>
    <table cellspacing="0" width="100%">
    <col style="width: 80.663%;" />
    <col style="width: 19.337%;" />
    <tr>
      <td><h1><?rh-variable_start name="title" format="default" showcode="showcode"
              value="Setting Global Defaults" ?>Setting Global Defaults<?rh-variable_end ?></h1></td>
      <td style="vertical-align: bottom;"><p style="text-align: right;
                 margin-bottom: 6pt; line-height: Normal;">&#160;</p></td>
    </tr>
    </table>
    I tried setting the Master Page to None and then re-setting it to Main. That does not help.
    The only workaround I've found so far is to create a new topic, copy the content from the old topic, delete the old topic, and rename the new topic using the old topic's name. But that is very tedious.
    Any thoughts on how to fix the problem without recreating every topic?
    Thank you.
    Carol

  • How to give a relative path from a button in the master page header?

    so I have this code in the header of my Master page in RoboHelp:
    <input type="image" value="View graphics legend"
    onclick="window.location.href='Graphics_legend.htm'"
    src="Images\graphic legend.png" name="image1"
    title="View graphics legend" style="width: 118px; height: 21px;" />
    i need to call the 'Graphics_legend.htm' file which is sitting in the root folder. When i try this it works fine for the html file which are in the root folder as well, but anything with is in a sub directory , the button stops working.
    It might be just to add a realtive path ,but i am failing to understand how to make a relative path for 'Graphics_legend.htm' ,.. ?

    Hi there
    Relative paths are relatively simple once you get the hang of them.
    For example, if you want to refer to something that is one folder above where you are, you prefix things with ../
    The ../ is HTML shorthand meaning one folder level above where I am. If you wish to go two folder levels up, ../../
    If you need to drop into a folder that is at the same level as where you are, ../FolderName
    From what you have written it would seem that RoboHelp isn't seeing your code and properly calculating the path. That's really not too surprising because you are using the Button element.
    If you are using CSS and linking to a style sheet you likely have a simple way to calculate what the relative path should be. Just examine the source code of the topic and note what prefixes the CSS file name. Assuming your CSS is in the project root (and it should be) then you could use the same prefix.
    Hopefully this helps... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Dynamic script in master pages

    hi,
    does anybody know how (if possible)  to
    write dynamic script in script editor
    in  master pages.
    thanks in advance,

    ami

  • How to place aggregated fields in the page header or group header

    Hi,
    i have a report where in i have to display a header based on the aggregated value of a field
    currently the field has values like
    row1  blank
    row2  blank
    row3 Cookies
    row4 blank
    I wanted to know how to get the maximum of these rows in the page header i.e. it should come as Cookies for this case.
    Is there any way to get this? it is easy in the footer where i can do a maximum of this field and get the value but not sure how to get this in the group header.How do we group maximum at the page header or group header?
    Require your help on this at the earliest.
    Thanks
    Shilpi

    Hi Shilpi,
    >
    Shilpi Sinha wrote:
    > currently the field has values like
    > row1  blank
    > row2  blank
    > row3 Cookies
    > row4 blank
    >
    Do display these things in a subreport(i mean adda subreport in detail section). And Create a formula in the subreport itself with shared varible for assiging  the maximum value ..
    Then in the main report , create one formula with same shared variable and just display in Header secton..
    Regards,
    Salah.

  • How to display user profile information in master page header

    I am trying to display user profile info like following in custom master page.
    I have just added a html code for displaying this info.
    Now, please tell me how could i achieve this
    I am doing this in sharepoint 2013 on-premise.

    see below is example for javascript and userprofile information
    <script type="text/javascript">//<![CDATA[
    $(document).ready(function
    var currentUser;
    // Ensure that the SP.js is loaded
    if (SP.ClientContext
    != null)
    SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser,
    'SP.js');
    else
    SP.SOD.executeFunc('sp.js',
    null, getCurrentUser);
    function getCurrentUser()
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    currentUser = web.get_currentUser();
    context.load(currentUser);
    context.executeQueryAsync(onSuccessMethod, onRequestFail);
    function onSuccessMethod(sender, args)
    var account = currentUser.get_title();
    var currentUserAccount = account.substring(account.indexOf("|")
    + 1);
    var currentUserAccountUnderScore = currentUserAccount.toLowerCase().replace(/\s/g,
    //alert(currentUserAccount);
    $("#username").text(currentUserAccount);
    $("#ProfileImage").attr("src",
    "https://mydomain-my.sharepoint.com/User%20Photos/Profile%20Pictures/"
    + currentUserAccountUnderScore +
    "_mydomain_onmicrosoft_com_MThumb.jpg");
    $("#ProfileImage").attr("alt", currentUserAccount
    + " User Profile Image");
    $("#ProfileImage").attr("class",
    "ss-profile-image");
    //This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args)
    alert('request failed' + args.get_message()
    + '\n' + args.get_stackTrace());
    $("#ProfileImage").attr("src",
    "https://mydomain.sharepoint.com/SiteAssets/userImageDefault.jpg");
    //]]>
    </script>
    -Nilesh

  • Dynamic Text in the Page Header

    Hi Gurus,
         I have a small requirement i.e., changing the text of title on page header UI element based on condition. if create then create data else if it is display then display the info some thing like that.
       Kindly can some help me regarding this....
    Regard
    Sankar

    Hi Sankar,
    Create on eattribute of type String and bind to title property of page header,
    and your WDDOINIT or any event write code to set title for PG header,
    You are using different buttons, use this code in your buttons and change text.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->Element_context.
      DATA lv_pg TYPE wd_this->Element_context-pg.
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
      data pg1 type string.
      pg1 = 'selected the record'.
      lv_pg = Pg1.
    * set single attribute
      lo_el_context->set_attribute(
        name =  `PG`
        value = lv_pg ).
    In button 1..
    lv_pg = 'Enter the entries'.
    * set single attribute
      lo_el_context->set_attribute(
        name =  `PG`
        value = lv_pg ).
    Cheers,
    Kris.

  • Dynamic rollover with master page set

    hi there everyone
    I am having a great time with the master detail page set
    behaviour
    But.........
    when you choose a field to link to the detail page ..... the
    link is colored blue , with no rollover effect
    Is there anyway to insert a rollover effect to that blue
    link..... say so it changes color on mouse over?

    Do you mean just changing the color of the link when you roll
    over it?
    If so, that is done using CSS:
    a:link {
    color: #336699;
    text-decoration: none
    a:visited {
    color: #663399;
    text-decoration: none
    a:hover {
    color: #993399;
    text-decoration: underline
    Just put in the colors according to your taste, underlined or
    not, that
    sort of thing.

  • Word 2010 Field Code makes page header disappear

    Hi,
    I am working on converting some word 2003 documents to Word 2010, but we found that the behavior of field code seems different in word 2010. We use field codes in a page to embed postscript command such that printer can pick up a correct paper tray. The
    command is like this:
    PRINT \p page "grestore matrix currentmatrix <</MediaType (NORM) /MediaColor (white)>>setpagedevice setmatrix gsave"  \* MERGEFORMAT
    But I found that when there is a field code on the top of a page and the page has header defined on it, the header will not be printed out, just like the field code "kick out" the header. I try the word advance option "Print PostScrit over
    text" but it does not work, If use this option, the field code seems occupy one row and the entire content will roll over more than 1 page.
    Does any professional encounter this problem? Any solution can be shared with me?
    Many thanks for your advice,
    Ray

    Hi
    Based on our test, this may be a by-designed feature. If you want more details, you may select Microsoft Advisory Services option. For specific information about the types of Advisory Services available, visit the
    http://support.microsoft.com/gp/advisoryservice web page. 
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"
    Hi George,
    That means you can reproduce our problem in your testing?
    Thanks,
    Ray

  • Displaying one field in first page and other field in last page (header)

    Hi
    We are using following way to print headers but we need one field (WO START) to display in first page and another field (WO END) to display in last page
    If output is only 1 page then both needs to be printed on same page
    <?for-each@section:G_WORK_ORDER?>
    WO START This needs to be printed on first page only
    WO END This needs to be printed on last page only
    <?for-each:G_OPERATION?> <?end for-each?>
    <?end for-each?>
    Let us know if any fix for this
    Thanks
    Kamalakar.G
    Edited by: kamalakarg on Sep 21, 2012 4:53 PM

    Hi Kamalakar,
    Send me sample XML data and RTF template i will try on my side. email me [email protected]
    Thanks,
    Omkar Deshpande.

Maybe you are looking for

  • Merging the messages  by using BPM

    Hi    I want to merge the messages... I mean.. i have two sender files.. and one receiver  file..(File to File scenario ) I want to load these two files into a single output file..         every one telling this scenario will possible  through BPM's 

  • Reg:Display Cursor Position format

    Hi to all, If we are going to open any database table means we will get the alv list format for output. If we want to choose any record for any field means if we are pointing the cursor to that field means in my system cursor points the single charac

  • Personalization - FITV_POWL_TRIPS -

    I have tried to hide several columns in the FITV_POWL_TRIPS abap webdynpro under adminstrative mode to transport from our DEV system up the landscape to QAS and PROD.  I receive the popup to create a task when saving the changes.  When going into se1

  • Chapters don't work

    I created my first project. Video done in imovie 08, DVD done in iDVD 08. The first time I made it, all chapters worked fine but I had the wrong music on opening screen. So I went back and changed it and burned another DVD. Now the chapters do not wo

  • Can I print separate layers on the same page?

    I have a 10 page 3.5 x 9 booklet that I need to print. Each page has it's own layer. I need to print out mockups of it and I'd like to be able to fit 3 layers to a page so I don't waste a ton of paper. Is there a way to do this? Thanks!