What is singleton property in Webdynpro
Hi,
What is singleton property in Webdynpro?
please explian along with diagram
Regards,
Sid.
hi,
Singleton Nodes
It is very important to remember the difference in runtime behaviour between a singleton node and a non-singleton node. When a node is declared to be singleton, there will only ever be only one instance of that node-irrespective of the number of elements found in the parent nodes element collection. This is not the case for the non-singleton node. In this case, there will be as many instances of the non-singleton child nodes as there are elements in the parent nodes element collection.
The significant point here is that when the lead selection in the parent element collection changes, the contents of the singleton child node become invalid. Consequently, the next time data is required from the singleton child node, the entire element collection must be rebuild in order that it match the data in the newly selected parent element.
The task of rebuilding singleton child node must be performed by a dedicated supply function.
[http://help.sap.com/saphelp_nw70/helpdata/EN/81/95384162316532e10000000a1550b0/frameset.htm]
regards,
pinki
Similar Messages
-
Hi! regarding the singleton property in webdynpro abap
Hi experts ,
Could anyone explain me in detail the property of singleton and wht r the conditions tht we should use wht will represents..
plz explain me in detail......rather than sending links plz do explain me in detail....
Regards,
Sana...Cardinality : number of possible elements within the node.
Singleton property means whether or not all instances of this node get created at runtime or not.
Singleton property is mostly used to save memory & increase performance. we would go for singleton nodes in cases where UI needs only display from one-instance of data from my node.....
What happens when you set singleton property to YES for a node?? Assume you have context structure like
Context
Vehicle( parent node )
( attribute veh-ID primary key for all types of vehicles, dealer, area )
twowheeler( subnode of vehicle with cardinality-0..n singleton-NO)
( attributes veh-ID, regno, model, color)
fourwheeler( subnode of vehicle with cardinality-0..n singleton-YES)
( attributes veh-ID, regno, model, color)
At design time you fill the data within this context. Now you have 100 entries under the subnode twowheeler & 90 entries under the subnode fourwheeler . You create UI elements to display the node twowheeler details in a View . At runtime when user selects the veh-ID and identifies that a twowheeler data needs to be fetched/displayed all the 100 entries for the twowheeler node get created in the background although you are displaying only the ONE corresponding to the veh-ID.
if Veh-ID selected coresponded to fourwheeler( singleton property -yes) only ONE row of the data from the fourwheeler entries would have been fetched and ONLY Once instance of the fourwheeler would be created by background process!!
thus saving memory & processing time.
Scenarios singleton-YES
If i were required to display details of only ONE vehicle based on the entered Veh-ID , i will make twowheeler & fourwheeler nodes singleton-YES.
Scenario singleton-NO
if i were required to show all the vehicles that belong to one particular Area. -
What is the significance of Singleton Property?
Hello guys!!!
Can some one elobarate the significance of Singleton Property?
Also, please suggest me a scenario, where we use Singleton Property.HI,
click on ur node and on the singleton proprty click F1. u will get the full detail.
The property "Singleton" specifies the number of instances that can exist in a dependent context node (that does not belong directly to the root node).
If the property "Singleton" is set, exactly one instance of the node exists. Its content changes when the lead selection of the parent node changes.
If the property "Singleton" is not set, one instance per parent instance exists. The content of the instances does not change when the lead selection of the parent changes. -
What is the role of singleton property in clustered environment.
Hi
Could anyone suggest links or tutorials explaining the singleton property and its importance in clustered environment(both active-active and active-passive).
Please anyone explain this .
I've googled and couldn't understand the explanations which I've gone through.
Appreciate your help.
Regards,
Dev...HI,
click on ur node and on the singleton proprty click F1. u will get the full detail.
The property "Singleton" specifies the number of instances that can exist in a dependent context node (that does not belong directly to the root node).
If the property "Singleton" is set, exactly one instance of the node exists. Its content changes when the lead selection of the parent node changes.
If the property "Singleton" is not set, one instance per parent instance exists. The content of the instances does not change when the lead selection of the parent changes. -
Unable to change singleton property of context parent node.
Hi
I am having a view context node structure as follows.
Root context Node
|__Parent
*****|__child 1
*****|__child 2
I have created a table view which is using above structure.
Now I have selected "Selection Mode" property of my table to "Multi", as i intend to select multiple rows in this table.
When i tried to run this application..I got following error :
com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TableView.Person): selection cardinality does not allow multiple selection
What i traced from this problem is that i have set "singleton" property of my "Parent" context node to "true".
But what if i wish to change it to "false"...
I AM UNABLE TO DO THAT !!
Please help me out.
Thanks in anticipation.
Edited by: Saurabh Agarwal on Jun 23, 2008 8:20 AMYes....
Now i changed my Selection property of my component context...
and that change was automatically reflected to my view context...
Actually what is happening..
if mapping to component context is set in view context..
then Properties could not be changed directly from view context.
Thanks all....for your help..
my problem is solved now....
Thanks... -
Settin singleton property false for child node but entire column populated
hai all,
I have set the singleton property of child node as false but still in my wdmodifyview when i load a value help with values from backend based on the user selection in 1st column of table the entire column gets populated.
coding used by me:
public static void wdDoModifyView(IPrivateSalesdet wdThis, IPrivateSalesdet.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
//@@begin wdDoModifyView
try
String partfn=wdContext.currentTablepartnersElement().getPartnerfn();
if(partfn.equals("ShiptoParty"))
IWDAttributeInfo partattributeInfo=wdContext.nodeTablepartners().nodeTablepartnerssubnode().getNodeInfo().getAttribute(IPrivateSalesdet.ITablepartnerssubnodeElement.PARTNERS);
ISimpleTypeModifiable part = partattributeInfo.getModifiableSimpleType();
// Set field label and populate valueset
part.setFieldLabel("key");
IModifiableSimpleValueSet partvalueSet = part.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().size();i++)
partvalueSet.put(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr(),wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getName1());
I need to populate only the table cell wch is next to the cell in wch user has made a selection and not the entire column.plz help me in this issue.First, you should not place this code in wdDoModifyView().
Second, I assume you want to have a value help only on a specific table cell, not for all cells in the same column, is that correct?
This cannot be done by modification of the DDIC type because the type is used for all cells of a column. This has nothing to do with singleton vs. non-singleton.
What exactly is your use case?
Armin -
Does anyone know what the entity property of the currency dimension does?
Hi,
I'm trying to figure out what the Entity property of the Currency dimension does. All the online documentation I can find has the definition below which is not all that useful. Has anyone uses this before and know how it can be used?
Thanks,
Morgan
Online definition
A 32-character field that can either be left blank or contain a valid
member name of the entity dimension associated to the current model. The ENTITY property is
validated against the entity dimension, and blank fields are allowed.Sounds like it provides one (extra) internet phone number that goes to their servers first. Then it could work like this:
1) If you have the app running on your phone (oops, no background processing... perhaps this will be one of the first tests of background notifications), it uses the GPS to tell the server if you're near a landline that you've previously registered with it. If so, their server redirects the call to the landline phone.
2) While you're on a call, you can start a conference call that includes the alternative phone (landline or iPhone) and then hang up on the old one. That would give a "seamless" switchover. -
What is Style Property in BPC?
Anybody can please explain what is STYLE PROPERTY in BPC?
Hi there,
The Style property enabled you to flag certain dimension members so you can apply formatting to them in your EVDRE reports later on. It works a bit like a CSS file for HTML - you can say your input entities are "level 1", and their parents are "level 2", for example, and when you write your reports later on you can use dynamic formatting to treat these differently (with bold type-face or a different colour/size font, for example).
Page 32 of the admin guide gives more details on this, too.
Hope that helps!
Jason -
What is singleton design pattern
Hi All,
Anybody please tell me what is Singleton Design Pattern ?
What is the right definition of it and where can I get the right information about it.
Please help and reply soon
Thanks
AmitindiaNot meaning to be arrogant: check the topic "Public singleton". It explains what the singleton pattern tries to achieve and show various ways of creating singleton classes.
-
hello, I want to post about adobe color on my blog.. so can I know what is performance property of adobe color??
Just as of late I noticed that Apple Stores are selling security cameras that work with their app on an iPhone. Very expensive but it uses both WiFi when local and cellular when not at home.
In your case I would check the apple store and see if there is a free or paid app to access your home closed circuit TV system. The cameras have to have their own ip address so you then need only enter that and access will be available to you. But they must be on your home network.
a lot of the higher end CCTV systems have a free app that can be used like the new Apple Security system.
Just Google it or check the store.
Good Luck -
Explain Cardinality,Singleton Property & Lead selection
Hi All,
Please explain me in detail the concepts of Cardinality,Singleton Property & Lead selection.
I had already gone through enough documents and have very vague idea.
Regards,
Venkat.Hi Venkat,
Please check the [document|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a048387a-0901-0010-13ac-87f9eb649381?quicklink=index&overridelayout=true]
Hope that will helps you.
Thanks
Arun -
What is associative property and Dependency ?
I want to know what is associative property between two classes?
What is called dependency between two classes?
regards,
namancIs this about different forms of dependecies?
Well, two classes can be associated by fields, like for example both stores a name. You can use the name stored in an object of one class to get the corresponding object of the other class. The name forms an association between the classes. This is a very loose dependency. A tighter dependency is when one class uses another class, meaning one class is part of another class' definition. Even tighter still is when a class extends another class so they become part of the same class hierarchy. -
Concept behind Cardinality, Singleton property?
hi,
will anyone explain me the concept of cardinality, singleton & Initialize lead selection properties of noce. by example... when i need to set singleton /Initialize lead selection property true / fasle for perticular node...
suppose i am having node structure like this ..
CLAIM Node1
CLAIMITEM Node2
EXPENSETYPE Node3 ... Comes under node2
key
value
Claimid attribute.. Comes under node2
Description attribute.. Comes under node2
Amount attribute.. Comes under node2
if Node CLAIMITEM is bind to table on view....having 4 column ,
first as dropdown by index bind to EXPENSETYPE value...
second as inputfield bind to Claimid....
third as inputfield bind to Description....
fourth as inputfield bind to Amount....
table is having multiple rows so Node CLAIMITEM must have cardinality 0...N
what abt others...
please dont give me any link which is alreay on sdn...
jst try to explain me how does it go and why if possible ..
thanks
saurin shahHi Saurin,
Please check this Article which explains in detail about Context,cardinality and singleton properties with examples.I hope it will help you.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60730016-dbba-2a10-8f96-9754a865b814 -
What technology is there behind webDynpro?
I want to know that how sap netweaver converts webdynpro code to servlets and HTML and java script?
Provide any good materials if possible to understand this fundamentals.
Is there any way to insert manually javascript or HTML?Hi
Check these links and you may get some idea
What is Web Dynpro?
What is Web Dynpro?
Why WebDynpro ?
Why WebDynpro ?
Why webdynpro and not BSP or JSP?
Why webdynpro and not BSP or JSP?
BSP to WEB Dynpro
BSP to WEB Dynpro
Benifits of using Webdynpro
Benifits of using Webdynpro
Java vs. ABAP
Java vs. ABAP
regarding Java related webdynpro
regarding Java related webdynpro
Web Dynpro vs. Struts - a few questions
Web Dynpro vs. Struts - a few questions
What kind of applications are being developed with Web Dynpro?
What kind of applications are being developed with Web Dynpro?
This url links to a short pdf file describing the Webdynpro Java
"Inside WebDynpro Java" Pdf File 2.50 MB (54Pages) really Good One for Beginners
http://searchsap.techtarget.com/searchSAP/downloads/SAPPRESS.pdf
Regards,
Chandran -
Forced request language property of Webdynpro iview
Hi All,
I've a situation with inhibiting translations of a webdynpro iview even though the property "Forced request Language" is set to English.
Scenario:
1)Two DCs DC1 has language translation files. DC2 does not have any language translations (not needed)
2)DC2 displays views of DC1
An iview is created out of DC2 and the Forced request language is set to English.
User logs on (his language set to English). Everything is fine.
User logs on (language set to non-english). The problem is, the views of DC1 in DC2 still pickup the translations according to user's language settings where as the views of DC2 appear in english (no translations in the first place).
Meaning, the property Forced request language of the iview is not effective.
Anyone has come across this before? I'm glad for any solution.
Regards (ofcourse, along with points),
Rajit SrinivasHi Nagarajan,
How did u achieve this??
Regards,
Anupama
Maybe you are looking for
-
Formatted Search for Delivery Date field in SO not working
Hi All Can anyone help me as to why my formatted search is not working? I am currently using SAP B1A SP01 Patch 19. I have created a user query as follows: SELECT $ [$10.0.DATE] + 5 When I add this to the delivery field within the Sales Order and bri
-
I tried to view the messages in the "folders" in my mail, but unfortunately, it's not loading anything...it was perfectly doing okay before not until 3 days ago. Someone can help me fix this out is greatly appreciated. Thanks.
-
I have a iPhone 4 and I can't delete the pictures in the photo albums. Can anyone help??
-
"Error 1603. A fatal error occurred during installation"
Ive been trying to install Adobe Photoshop CS4 trial for the past 3 days. The only reason I want to try it is because of its ability to create textures directly on models. But whenever I try to install, I get this error "Adobe Drive CS4 Error: Error
-
Hello there, I am new to jsp development and am having problems using javabeans. I get a class invalid error. I have created a simple example that works fine without the useBean line (there Bean doesn't do anything in the example). I have looked over