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
Similar Messages
-
Model controllers and Application classes in WD
Can somebody give me examples of WebDynpro components which either use the concept of Model controllers or the concept of Application classes? Thanks.
Regards
SukanyaHI,
Refer this thread:
Model Component
And this : model view controller
Generally the concept of Model in WDA is fullfilled by the Assistance class object instead of a separate component.
It is better from a performance point of view. You can then save your data as attributes and only put that data in contexts were needed.
Here's help on the subject:
http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
Thanx.
Saurav.
Edited by: Saurav Mago on May 2, 2009 11:06 PM -
Retain variables and application class attributes in a statless bsp..
hello experts,
i need to transform a bsp page from stateful mode to stateless but there is a link in the page and the content changes when clicked on the link. when statefull there is no problem cause i can keep the parameters in various ways but i need to find a way to retain those variables in stateless mode as well. is there any way to do this??
replies appreciated,
thanks..do you mean server side cookies using class cl_bsp_server_side_cookie didnt help. i use it in all my stateless apps without any problem. may be if you could explain the flow of app/data and show us your code using cl_bsp_server_side_cookie=>set_server_cookie we may be able to check out whats going wrong.
Raja -
Multi-Select Page Item in Application Item
I have a multi-select page item that I need to copy to an Application Item (for AJAX select). I have a js function that does the following:
get.add('REFRESH_LOV_FK_SCHOOL',pSchool.value);
It only seems to copy the first value (before the ':') of the multi-select list to the application item. I verified this with the session state of both the page items and application item. Is there a reason it only copies the first value?Bob
In your JS function you have declared the formal parameters as pSchool,pYear,pApp. However the code in the function references 'PSelect' I shall assume that you meant 'PSchool' <script>
function get_select_list_xml1(pSchool,pYear,pApp){
var l_Return = null;
var l_Select = html_GetElement(pSchool);
var schoolVal=$f_SelectValue(pSchool.id);
alert ('values=' + schoolVal);
var get = new htmldb_Get(null,$x('pFlowId').value,
'APPLICATION_PROCESS=' + pApp,0);
get.add('REFRESH_LOV_FK_SCHOOL',schoolVal);
get.add('REFRESH_LOV_YEAR',pYear.value);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
</script> -
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
NarendraHi 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 -
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. :(
-
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,
~MarkHi,
Go through the below link,
http://help.sap.com/saphelp_nw2004s/helpdata/en/e2/a1793a0190cf32e10000000a11402f/frameset.htm
Regards,
Azaz Ali. -
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!
PhilippHi 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 -
Passing page attribute to popup window
Hello friends -
I want to pass the internal table which is page parameter of page 1 to page2.
I am opening page2 from page1 as a popup by using window.open command.
Is that auto passing of attribute works in this case?
Basically i want to know how to pass values from parent to popup window?
Thanks in advance.
Thanks
Haricouple of options
1. server side cookie
2. itab as application class attributes.
for both approaches search the forum for sample code
Raja -
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
//MartinHi 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 -
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 -
== Issue
==
I have another kind of problem with Firefox
== Description
==
how do I fix the following error, it comes up every time I open a Firefox page; "type error: Components.classes[cid] is undefined" (JavaScript Application)
== This happened
==
Every time Firefox opened
== a few months ago
==
== Troubleshooting information
==
Application Basics
Name Firefox
Version 3.6.3
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Adblock Plus 1.2 true
Adobe DLM (powered by getPlus(R)) 1,6,2,49 true
AVG Safe Search 9.0.0.825 true {3f963a5b-e555-4543-90e2-c3908898db71}
AVG Security Toolbar 4.504.019.002 true avg@igeared
Fasterfox 2.0.0 false
Forecastfox 0.9.10.2 true {0538E3E3-7E9B-4d49-8831-A227C80A7AD3}
Java Console 6.0.05 true
Java Console 6.0.03 true
Java Console 6.0.07 true
Java Console 6.0.11 true
Java Console 6.0.13 true
Java Console 6.0.15 true
Java Console 6.0.17 true
Java Quick Starter 1.0 true [email protected]
Microsoft .NET Framework Assistant 1.2.1 true {20a82645-c095-46ed-80e3-08825760534b}
NoScript 1.9.9.77 true {73a6fe31-595d-460b-a920-fcc0f8843232}
Java Console 6.0.19 true
Java Console 6.0.20 true
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar 0
browser.history_expire_days 0
browser.history_expire_days.mirror 180
browser.places.importBookmarksHTML false
browser.places.importDefaults false
browser.places.leftPaneFolderId -1
browser.places.migratePostDataAnnotations false
browser.places.smartBookmarksVersion 2
browser.places.updateRecentTagsUri false
browser.startup.homepage_override.mstone rv:1.9.2.3
extensions.lastAppVersion 3.6.3
general.useragent.extra.microsoftdotnet ( .NET CLR 3.5.30729)
keyword.URL http://au.yhs.search.yahoo.com/avg/search?fr=yhs-avg&type=yahoo_avg_hs2-tb-web_au&p=
network.cookie.prefsMigrated true
places.last_vacuum 1272511429
print.print_bgcolor false
print.print_bgimages false
print.print_command
print.print_downloadfonts true
print.print_evenpages true
print.print_in_color true
print.print_margin_bottom 0.5
print.print_margin_left 0.5
print.print_margin_right 0.5
print.print_margin_top 0.5
print.print_oddpages true
print.print_orientation 0
print.print_pagedelay 500
print.print_paper_data 0
print.print_paper_height 11.00
print.print_paper_size -134744073
print.print_paper_size_type 1
print.print_paper_size_unit 0
print.print_paper_width 8.50
print.print_printer Lexmark 4200 Series
print.print_reversed false
print.print_scaling 1.00
print.print_shrink_to_fit true
print.print_to_file false
print.printer_Lexmark_4200_Series.print_bgcolor false
print.printer_Lexmark_4200_Series.print_bgimages false
print.printer_Lexmark_4200_Series.print_command
print.printer_Lexmark_4200_Series.print_downloadfonts true
print.printer_Lexmark_4200_Series.print_edge_bottom 0
print.printer_Lexmark_4200_Series.print_edge_left 0
print.printer_Lexmark_4200_Series.print_edge_right 0
print.printer_Lexmark_4200_Series.print_edge_top 0
print.printer_Lexmark_4200_Series.print_evenpages true
print.printer_Lexmark_4200_Series.print_footercenter
print.printer_Lexmark_4200_Series.print_footerleft &PT
print.printer_Lexmark_4200_Series.print_footerright &D
print.printer_Lexmark_4200_Series.print_headercenter
print.printer_Lexmark_4200_Series.print_headerleft &T
print.printer_Lexmark_4200_Series.print_headerright &U
print.printer_Lexmark_4200_Series.print_in_color true
print.printer_Lexmark_4200_Series.print_margin_bottom 0.5
print.printer_Lexmark_4200_Series.print_margin_left 0.5
print.printer_Lexmark_4200_Series.print_margin_right 0.5
print.printer_Lexmark_4200_Series.print_margin_top 0.5
print.printer_Lexmark_4200_Series.print_oddpages true
print.printer_Lexmark_4200_Series.print_orientation 0
print.printer_Lexmark_4200_Series.print_pagedelay 500
print.printer_Lexmark_4200_Series.print_paper_data 1
print.printer_Lexmark_4200_Series.print_paper_height 11.00
print.printer_Lexmark_4200_Series.print_paper_size -134744073
print.printer_Lexmark_4200_Series.print_paper_size_type 0
print.printer_Lexmark_4200_Series.print_paper_size_unit 1
print.printer_Lexmark_4200_Series.print_paper_width 8.50
print.printer_Lexmark_4200_Series.print_reversed false
print.printer_Lexmark_4200_Series.print_scaling 1.00
print.printer_Lexmark_4200_Series.print_shrink_to_fit true
print.printer_Lexmark_4200_Series.print_to_file false
print.printer_Lexmark_4200_Series.print_unwriteable_margin_bottom 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_left 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_right 0
print.printer_Lexmark_4200_Series.print_unwriteable_margin_top 0
privacy.clearOnShutdown.cookies false
privacy.clearOnShutdown.offlineApps true
privacy.cpd.cookies false
privacy.item.offlineApps true
privacy.sanitize.migrateFx3Prefs true
privacy.sanitize.timeSpan 3
security.warn_viewing_mixed false
security.warn_viewing_mixed.show_once false
== Firefox version
==
3.6.3
== Operating system
==
Windows XP
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
== Plugins installed
==
*-getplusplusadobe16249
*Office Plugin for Netscape Navigator
*Adobe PDF Plug-In For Firefox and Netscape
*Default Plug-in
*NPRuntime Script Plug-in Library for Java(TM) Deploy
*The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
*Shockwave Flash 10.0 r45
*iTunes Detector Plug-in
*Garmin Communicator Plug-In 2.8.1.0
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Java(TM) Platform SE binary
*Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
*Npdsplay dll
*DRM Store Netscape Plugin
*DRM Netscape Network ObjectHow do I fix this problem ...javascript (cid) applications.
-
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 AntonHi,
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! -
Is it possible to export and import jsf page and application module?
Hi,
I want to export a application module and then import it to another application,so deos jsf pages.If I can do this ,then my team could do the diffent work at the same time.one group response for data model then commit as application module,one group for page create and edit and so on .Who has any good idea?
Thanks advance
lixinzhu
2007/09/19hi,frank
thank you.
You know a page include a .jspx file,a page definition file and depend faces-config.xml,faces-config.oxd_faces and other I don't know information,so if i only put the first two file into cvs,but how can i get other information in the last two file?When I get the first two file and needed information in the other file,how can i merge these into new project and let jdeveloper "reconize it"?Applicaion is more complex,it not only depend its self java class,xml and many entity object and view object,how to handle the "export" and "import" process?Just like oracle form,only a fmb is enough,database object only need to "put into database","export" and "import" are very simple,so i need jdeveloper to supply these "import" and "export" function.I'm not familar with cvs,does it can know object dependency like application module?if it can,how to let jdev "reconize" imported in object?
lixinzhu
2007/09/19
Maybe you are looking for
-
Filesystem read only at boot "SOLVED"
Hi archers I have a frustrating problem.... for some unknown reason... I rebooted today, and havn't been able to get back into arch.... it complains that my filesystem is read only etc. heres the error ******************* FILESYSTEM CHECK FAILED ****
-
ALV selection field of displayed table is not populated properly
Hi, I am using OO ALV in my screen. I have two tabs. In one tab I display one ALV output in edit mode with selection option and passing internal table field for box_selection. In the other tab I am displaying another ALV output but in display mode. M
-
Hi, I have a macbook intel based. I have bougt some original cd music. I have problems because my mac don't recognize the cd. I need help. What I do for play my cd music?
-
Live recordings and the click between tracks
Dear users, I'm a very fresh user and i wanted to know if there is a way around the stops between tracks on live recordings. I realy don't like the sound of that everytime a new number comes along. I have done it by way of ripping and using itunes...
-
i live in canada so i shose the canada store so now its asking me to add a credit card most people say to chose the none option but there no none option! how can i create this apple id without credit cards or without the none option!