Page Attribute

Hi All,
I have a page with FLOW LOGIC and I have declared a page attribute here. What is the best approach to pass on this page attribute to a View?
My application is a combination of pages with flow logic and MVC.
Thanks,
~Mark

Hi,
  Go through the below link,
http://help.sap.com/saphelp_nw2004s/helpdata/en/e2/a1793a0190cf32e10000000a11402f/frameset.htm
Regards,
Azaz Ali.

Similar Messages

  • Problem with JavaScript code in Page Attributes, modal popup...

    Hello all!
    I'm encountering a problem with a modal popup I wrote in JavaScript.
    h3.
    The situation*
    A user sees an interactive report with rows that are clickable, so these rows are links. Upon clicking the name of something in a row, some items get a certain value and a modal popup shows on the screen. In this modal popup, there are details regarding that particular row the user has clicked, but the problem_ here is...
    The modal popup closes itself only seconds after it has been opened.
    This must be because I've probably made a mistake somewhere in my code, but I just can't figure out where... It also appears that when I click on a row link, the popup shows, but the progress bar of my toolbar seems to show a loading bar (as if I refreshed the page).
    h3.
    My code*
    This code is located in the _"Function and Global Variable Declaration"_ part, under the _"JavaScript"_ tab. Code is in the _"Page Attributes"_ of my page 24.
    function showhide(x){
    $x('REGION1').style.display = ( x == 'REGION1') ? 'block' : 'none';
    $x('REGION2').style.display = ( x == 'REGION2') ? 'block' : 'none';
    $x('REGION3').style.display = ( x == 'REGION3') ? 'block' : 'none';
    $( function(){
      $('#ModalForm').dialog(
         modal: true,
         autoOpen: false,
         width: 500,
         height: 350,
         buttons:{ Close: function(){closeForm();}        
    function openForm()
        $('#ModalForm').dialog('open');
    function closeForm()
        $('#ModalForm').dialog('close');
        $(document).ready(function() {
            $('a.temppop').click(function() {
                openForm();
        });This code is located in the _"Header Text"_ part, under the _"Header"_ tab. Code is in the _"Page Attributes"_ of my page 24.
    <link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>This code is located in the _"Column Link"_ part, you get there by going to the _"Report Attributes"_ of the region called _"Template overview"_ on page 24. This region is an interactive report.
    Link Text: #FOODTEMPLATENAME#
    Link Attributes: class="temppop"
    Target: Page in this Application
    Page: 24
    Item 1, name: P24_MEALID; item 1, value: #MEALTYPEID#
    Item 2, name: P24_TEMPLATEID; item 2, value: #FOODTEMPLATEID#So basically I call the function to open the modal popup by the class name. When a link with that class name in it is clicked, it opens the popup.
    To remind you of the problem, the modal popup closes seconds after it has been opened. How do I fix this?
    Thanks in advance.
    (APEX version 4.1.1.00.23)

    Come on guys... I really need to know this. :(

  • Page Attributes and Application Class Attributes

    Hi, everyone,
    I am quite new to BSP.
    I have a question here:
    what is the difference between page attributes and application class attributes of a bsp application? As they are both global attributes, there seems to be no big difference when we use them.
    thanks a lot.
    Fan

    Hi Fan,
    a BSP application can be made up of many pages.
    A page attribute is visible only in the page it is associated with.
    Attributes of the application class are visible from every page in that application.
    Cheers
    Graham Robbo

  • Change default page attributes

    I am trying to design a standard framework for our developers using the portal
    (e.g., standard header, footer, etc). In particular, I would like to change a
    couple of default page attributes such as "hidden" and "layout type". Any ideas
    where this could be done? Thanks.

    I never even thought of that - Word woman that I was!  Thanks so much - I shall give it a go!!

  • Change page attribute with JavaScript

    Hi,
    hope someone can help.
    Is it possible to change a BSP page attribute with JavaScript??
    I have a JavaScript array with some serialnumbers. After push a save button, i want to save the array data into a page attribute.
    Some ideas?
    Regards Anton

    Hi,
    The only way of passing vars from JS to page attributes is submitting them via (hidden) values in a form or via params in an URL.
    Alternatively, you can try to let JS store things in a client cookie and let the BSP read that cookie.
    I didn't try that out yet though.
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • Using page attribute in event handler method of controller

    Hi all,
      I have created a page attribute GT_TABLE. I need to use this table in one of the event handler methods of the controller of the same page. I tried to use the GET_ATTRIBUTE method but it always returns an empty table.
      Can someone please guide me in this respect.
      Thanking you in advance,
    Regards,
    Sumit.

    Hi Sumit,
    The page attribute you mention (GT_TABLE) it's an internal table, isn't it? So far I know, the value of internal table will gone when BSP finish to load in server. If you want to keep the data in internal table, you need to load the internal table into Session (in one of page event in BSP).
    Regards
    David

  • How to fill a field in a page attribute structure

    Hi
    We're trying to build a BSP Application (Pages with flow logic). One of the BSP Pages is a search for customer data, with search fields displayed dynamically.
    Now Im trying to fill the fields of structure "ls_partner", which is defined as a page attribute. However, it always is initial at onInputProcessing. It works well for normal page attributes (like strings etc.), but not with fields of a structure.
    I found the following on sdn:
    If firstname is a field in a structure called myaddress of the type address, you can access firstname in the layout as follows:
    <input type=text name="myaddress.firstname">
    This doesn't seem to work though. Any suggestions?
    Thanks a lot!
    Philipp

    Hi Phil,
    I assume by "fill the fields of a structure" you mean by passing the parameters as form field or HTTP header parameters.
    I don't believe you can do this. You can only pass parameters that map to a page attribute that is a data element like STRING, INT4, MATNR, etc.
    If you need to pass an entire structure you probabaly need to pass each individual element as a separate paramater, or else pack the structure into a string field and then parse it to extract the individual elements at runtime.
    Cheers
    Graham Robbo

  • Struts - HTML:link tag with dynamic page attribute?

    I am trying to use the html:link but the page value is dynamic (resulting from the bean within the iterate tag). The code below doesn't work - error. Is there a way to use all Struts tags and make this happen. Any ideas?
            <logic:iterate id="myMenuForm" property="menuItem" scope="session" name="menuForm" >          <html:link page="<bean:write name="myMenuForm" property="menuDisplayName"/>">                  <bean:write name="myMenuForm" property="menuDisplayName"/>          </html:link>        </logic:iterate> Thanks,
    mlv

    Thanks for all your help. Based on all you your comments, it is now working
    and I thought I would provide some details about how I got it working.
    There are not that many examples within the Struts documentation.
    id = unique name for the object that can be referenced within the iterate
    tag.
    name = is the Bean, in this case it's the ActionForm, that contains the List
    object that will be iterated. In my case, I have a ActionForm that contains
    a List property that contains all the menu item rows from the databse.
    property = is the property name within the ActionForm that is the List
    object. Links to the getter method
    Within the <bean:write> tag you use the id name to get a handle on the final
    object from the iterate tag and the property is one of the property values
    within the bean that is contained within the List.
    So in this case I have a ActionForm bean that contains a List property that
    contains a collection of beans.
    FormAction - bean
    property menuItems of type List contains:
    - row 1 = bean (with a property of menuDisplayName)
    - row 2 = bean (with a property of menuDisplayName)
    - row 3 = bean (with a property of menuDisplayName)
    Here's the JSP code for the tag.
            <logic:iterate id="myMenuForm" name="menuForm" property="menuItem" >
              <html:link page="www.yahoo.com"/>
                      <bean:write name="myMenuForm" property="menuDisplayName"/>
              </html:link>
            </logic:iterate>Now I would like to make the <html:link> page attribute value dynamic from
    the iterate bean. Therefore, you can make the url for the link dynamic If
    you know how to do that, please feel free to provide some help.

  • How to add a field that is not part of existing page attributes

    Hi Experts,
    Can someone give step by step procedure for adding a field that is not part of IC web view page attributes. I mean the field that I want to add is in BOL entity BTSaleset which is linked to BTAdminH through BTHeadersaleset relation. I have BTadminH in the page attributes but not BTsaleset.
    Thanks in Advance

    Experts.. any inputs ?

  • Is page attribute 'table' limited to 12 fields?

    hi,
    i am on WAS 6.20.
    in an bsp under rider type-definitions i need to create a type, which consists of more than 12 fields. i found out, that
    a) only string types are possible and
    b) apparently max. 12 fields are possible
    i create an internal table page attribute from that type, which gets filled during runtime and transferred to another page (there it is an auto-attribute). when setting up more than 12 fields, the receiving page won't display - (server not found).
    i don't get syntax errors, neither ST22.
    is there a way to enhance types here?
    or must i perform everything in the one and only starting page? which is a bit unhandy...
    i just read another thread, where somebody has a problem with table types - can i create a table type in the dictionary, which contains only char fields, but more than 12...?
    thanx, matthias

    Hi Christian and Raja,
    as for Christians hint: I tried an ordinary report like this:
    DATA: ig_all TYPE zmed_a_tab,
          wg_all TYPE zmed_a_struc.
    wg_all-freitxt = 'hallo freitext'.
    wg_all-menge = '12'.
    wg_all-preis = '12'.
    wg_all-waehrung = 'EUR'.
    wg_all-bestell_iso = 'STK'.
    wg_all-kstl = '9842000'.
    APPEND wg_all TO ig_all.
    CLEAR wg_all.
    wg_all-freitxt = 'hallo freitext'.
    wg_all-menge = '12'.
    wg_all-preis = '12'.
    wg_all-waehrung = 'EUR'.
    wg_all-bestell_iso = 'STK'.
    wg_all-kstl = '9842000'.
    APPEND wg_all TO ig_all.
    CLEAR wg_all.
    LOOP AT ig_all INTO wg_all.
      WRITE: / wg_all-freitxt, wg_all-menge, wg_all-preis, wg_all-waehrung,
              wg_all-bestell_iso, wg_all-kstl.
    ENDLOOP.
    So in an ordinary ABAP my dd.tab works fine!
    But I shall also check Rajas server side cookie.
    Still Rajas statement:
    "navigation->set_parameter( name = 'ig_all' value = ig_all ).
    can only accept flat strictures."
    can not be true, as I managed to shift more than one table row from page A to B (but with another dd.structure).
    btw, the dd.structure I use and which is being used in my dd.tabletype looks like the following (and mybe BSP can't handle this???):
    FREITXT          CHAR200     CHAR     200     0
    MENGE          CHAR3     CHAR     3     0
    SACHKONTO     CHAR7     CHAR     7     0
    KSTL          CHAR7     CHAR     7     0
    .INCLUDE     ZKATALOG               
    KATEGORIE          CHAR     60     0
    ACTION               CHAR     20     0
    MATKL               CHAR     9     0
    PREIS               CURR     11     2
    WAEHRUNG          CUKY     5     0
    PREIS_MENGE          DEC     5     0
    regards, matthias

  • Is there a way to change the default page attributes (font, margins, etc) in Pages or do I have to change them every time I open a new document?

    Is there a way to change the default page attributes (font, margins, etc) in Pages or do I have to change them every time I open a new document?

    I never even thought of that - Word woman that I was!  Thanks so much - I shall give it a go!!

  • BSP: How copy received portal event string to ABAP-Page-Attribute variable?

    Hi,
    I am able to receive and display portal events (EPCF API) with the following code:
    <SCRIPT src="epcfproxy.js"></SCRIPT>
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
       alert("event received:" + eventObj.dataObject );
    But now the received data is only stored in Javascript-"variables".
    How can I copy the received string to ABAP variables? These variables will be declared as Page Attribute (e.g. rec_event_data  TYPE STRING)
    Is my Javascript-solution a good way to handle portal events or are there better solutions?
    Thanks a lot.
    Regards,
    Henning

    Hi,
    yes I was able to do it.
    The code should be something like this. I can not test it at the moment.
    function myreceiveEvent( eventObj )
            document.form1.rec_event.value = eventObj.dataObject;
            document.form1.submit();
    <htmlb:form id="form1">
          <input type="hidden" name="rec_event" value="">
    </htmlb:form>
    Event Handler: OnInputProcessing
    rec_event_data = request->get_form_field('rec_event').
    Regrads,
    Henning

  • HowTo: Delete a page attribute ?

    Hi,
    I'm on 620 system.
    I've developed a BSP application and now I try to delete a page attribut that are no longer needed...But How do I do it ???
    Second: When I try so search the forum for this kind of questions / answers I can't use BOOLEAN SEARCH ?
    Like this: Page attributes delete
    Then I ONLY want hits with these 3 words in it...like google.com
    //Martin

    Hi MARTIN.
    If you just want to delete the page attributes,you can delete the line from your tab page attributes .
    You can click on the attribute on the page attribute tab and you will get the list of where it is used and you can delete it from there manually.
    As for searching is concerned,you can use Google  itself to search SDN .
    In your search on google.com use
    "Page attributes delete"  site:sdn.sap.com
    Regards,
    Siddhartha

  • Page Attributes

    Hi,
    I would like to know
    1) If the values of page attributes of one page can be transaferred to another page, But in the next page these attributes are not defined as AUTO
    2) The values of variables on one page could be transaferred to other pages, Of course I would like to not declare these variables as parameters
    3) How is implicit navigation achieved
    thanks in advance for the help.

    HI Nagaraj,
    To pass values from one page to other
    You can consider using Server Side cookies to store values of page attributes which can be read in the other page.For details,see link <a href="http://help.sap.com/saphelp_nw04/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm</a>
    Alternatively,you can store the values in an Application class,if the pages are in the same application.
    For details [url]http://help.sap.com/saphelp_470/helpdata/en/21/8cec3ada87e076e10000000a11405a/frameset.htm[/url]
    Hope thsi helps.
    Regards,
    Siddhartha Jain
    Message was edited by: Siddhartha Jain

  • Difference between automatic and non-automatic page attributes

    Hi,
    Can anyone tell me difference between automatic page attributes and non-automatic page attributes?
    and also difference between stateful and stateless mode with examples?
    Thanks
    Narendra

    Hi Mullapudi,
    If you mark a page attribute as u2018automaticu2019 (auto in the system), the attribute automatically gets its values via the calling URL or
    via the navigation process from other pages.
    This kind of attribute only has to be declared for one page.
    It is identified by its name equivalence.
    If another page uses a parameter with the same name,
    at runtime that parameter automatically
    gets the same values as the attribute.
    Non-automatic page attributes
    If you flag a page attribute as non-automatic, the attribute gets its values from the class attribute.
    The visibility of page attributes when parameters are transferred between BSP pages depends on whether the navigation is explicit or implicit.
    Explicit navigation
    For example, if navigation->goto_page(page.htm)
    Implicit navigation
    With implicit navigation, the page attributes are transferred automatically from OnInputProcessing to OnInitialization, both in stateful and stateless mode.
    The auto page attributes are refilled by the request, both in stateful and stateless mode.
    Reward if Useful...
    Regards,
    Anita. B

Maybe you are looking for