Differnece between Cardinality and Singleton for a Context Node

Dear SDN Community,
  Can you please tell me what is the difference between the Cardinality and Singleton properties for a context node.
Thanks!
Surya

Hi Surya
Lead selection
Leadselection is the property which is used to get the index of the selected row of the table
"OnLeadSelect" is the method used to fire an action when a row is selected
The Method wdContext.<node>().getLeadSelection() can be used to
find out the index of the selected element.
Cardinality
Any node or attribute that has the context root node as its immediate parent, is known as an independent node or attribute.
Any node or attribute that has some other node as its immediate parent, is known as a dependent node or attribute.
All context nodes are collections.
A node collection is composed of elements, where an element is an aggregation of the node’s immediate children (attributes and/or other nodes).
The cardinality property controls the number of elements a node collection may hold at runtime.
Every context node has a property called Cardinality. This property is composed of two values that
taken together, describe the maximum and minimum number of elements the node collection may hold
at runtime.
Cardinality Minimum: 0 or 1
Cardinality Maximum: 1 or n
Therefore, there are four possible cardinality values (specified as <Min>..<Max>)
0..1 Zero or one elements permitted
0..n Zero or more elements permitted
1..1 One and only one element permitted
1..n One or more elements permitted
Singleton
All independent nodes are forced to be singletons. This is because the context root node has one and only one element.
Singleton is boolean
TRUE : One instance will be created for all te nodes
FALSE : Every Element in the parent node collection,there will be a distinct instance of the child node.
Why Singleton
-Efficiency
-Less Memory
-Lazy Data Access(Creates instance only when needed,till then it will remain unprocessed)
Supply functions
Supply functions are the mechanism to repopulate child nodes when the lead selection in the parent node
changes. When a singleton child node is declared, you must also write an accompanying supply function.
The Web Dynpro Framework will then automatically call your supply function when the lead selection
in the parent node changes.
Regards
Chaitanya.A

Similar Messages

  • Differnece between EXIT and LEAVE TO SCREEN or LEAVE PROGRAM?

    HI Experts,
    Differnece between EXIT and LEAVE TO SCREEN or LEAVE PROGRAM?
    thanks in advance

    Syntax
    EXIT.
    Effect
    If the EXIT statement is executed outside of a loop, it will immediately terminate the current processing block.
    After the prodessing block has been executed, the runtime environment behaves in such a way that it follows with the exception Reporting Event Blocks START-OF-SELECTION and GET the schema from Leave Processing Blocks.
    After the Reporting Processing Blocks START-OF-SELECTION and GET have been exited using EXIT, the runtime environment does not trigger any further reporting events. Instead, it directly calls the list processor for displaying the basic list.
    Note
    We recommend using EXIT only within loops (see EXIT (loops) ). Instead, use RETURN to leave processing blocks.
    LEAVE [TO] SCREEN
    Syntax
    LEAVE { SCREEN | {TO SCREEN dynnr} }.
    Variants:
    1. LEAVE SCREEN.
    2. LEAVE TO SCREEN dynnr.
    Effect
    This statement ends the processing of the current screen. The current processing block of the ABAP program and the current processing block of the dynpro are left immediately.
    Variant 1
    LEAVE SCREEN.
    Effect
    The variant LEAVE SCREEN calls the current next screen. This is either statically specified in the properties of the current screen or has been set before using the statement SET SCREEN.
    Variant 2
    LEAVE TO SCREEN dynnr.
    Effect
    The variant LEAVE TO SCREEN calls the screen with the number dynnr as the next screen. A data object of the type n of the length 4 is expected for dynnr. It must contain either the screen number of a screen in the main program of the current program group or the value 0. Otherwise, an exception that cannot be handled is raised. This statement is a short form of the statements SET SCREEN dynnr and LEAVE SCREEN.
    Note
    This statement does not terminate the entire dynpro sequence; it branches to an additional screen in the same sequence. Only if the number 0 is used to branch to the next screen, LEAVE SCREEN terminates the screen sequence.
    LEAVE PROGRAM
    Syntax
    LEAVE PROGRAM.
    Effect
    This statement immediately ends the current main program and deletes its internal session - including all loaded programs, instances, and their data .
    The LEAVE PROGRAM statement can appear anywhere within any processing blocks. It ends the program regardless of the program/object or the program group of the internal session in which it is executed.
    Regards,
    Pavan P.

  • Differnece between ws_upload and gui_upload

    Hi
    can u plz tell me what is differnece between ws_upload and gui_upload.

    Hi,
    below information  is helpful to u.
    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with , and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive.
    Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
    for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.

  • I use BT Yahoo! but when I try and navigate to email from the home page it keeps jumping between 'connected and waiting for login' and never loads up.

    My internet service provider is BT in the UK. The home page is www.btinternet.com. After I've logged on, the home page displays fine - I can see the summary of my emails in one of the windows on the home page. The problem comes when I click on the mail application. The page then tries to load the email application. However, it never actually loads, it keeps jumping between connected and waiting for login. It never achieves it so I just have to click the 'back' button to get to the home page. I use chrome and ie but neither has this problem.

    I retraced my steps to how i got the Google app:
    App Store icon on Home Screen > Search, at bottom > entered Google
    The first Google App on the screen appears:
    Google logo small g in blue square: Google Search; Open (because it is already installed).  Below that is a picture of the iPod with the usual  Google Search screen.  I have never inserted a link into a discussion group so i hope you can open this. 
    http://https://itunes.apple.com/us/app/google-search/id284815942?mt=8
    Does this bring us any closer? 

  • What's the difference between PNG and JPG for exporting .idea files from the Adobe Ideas app?

    What's the difference between PNG and JPG for exporting .idea files from the Adobe Ideas app?
    What situations are better to export to to .PNG or .JPG?
    J

    iPad apps are designed specifically for the iPad and will not run on the iPhone or iPod Touch. iPhone/iPod apps will run on the iPad, but will only take up an iPhone sized portion of the iPad screen (though you get a 2x button which effectively doubles each pixel in both directions so may appear pixelated). There are also 'universal' apps (which have a '+' symbol against them in the store) which have processing in them to recognise the device that they are on and will tailor the display accordingly (so will make use of the iPad's larger screen).

  • HT1296 Is the numbers app compatible between ipad and macbook for syncing?

    Is the numbers app compatible between ipad and macbook for syncing?

    I think i have found how to solve the problem. I went into address book preferences and i noticed i didn't have icloud enabled here. As long as i use icloud contacts rather than 'on my mac' contacts it now seems to delete and add across the 2 devices. Many thanks

  • What is a difference between MB01 and MBST  for GR Cancellation

    Hi,
    What is a difference between MB01 and MBST  for GR Cancellation.
    Regards,
    Aditya

    Hi,
    MB01 is used for doing the GR for collective PO at a single instance.
    This transaction will be utilize when an individual needs to create a material document.  A material document can only be displayed or changed after it has been generated in the SAP system.  In a computer based inventory management system, the principal of "no posting without a document" applies.  A material document is generated and stored in the SAP system for every transaction that causes a change in stock.
    As mentioned, when a goods movement is posted a material document is created.  It serves as proof of the movement   If the movement updates a G/L account; an accounting document is also created. The material and accounting document s are identified by unique document numbers
    Once you have posted a goods movement, you cannot change material numbers, quantities or account numbers in the material document.  You can however use the Change command to enter additional or change text information such as comments or references.  To reverse the movement or change a quantity, a new transaction must be performed.
    MBST:-
    Perform this transaction when a previously performed goods issue must be cancelled due to an error in data entry or other circumstances deem the previous transaction unnecessary.
    Prerequisites:-
    A previously played transaction that requires cancellation.
    An existing Material Document in SAP.
    This Transaction will be utilized when an individual needs to cancel a material document due to a data entry error or other circumstances deem a previous transaction unnecessary. A material document can only be cancelled after it has been generated in the SAP system. A material document is generated and stored in the SAP system for every transaction that causes a change in stock.
    Performing this transaction will "undo" a previous transaction by reversing individual line items in a material document or by reversing an entire material document. This transaction will reinstate the affected cost center, purchase order or stock location to the state they were in prior to playing the original transaction.
    Regards,
    Archit

  • What is the difference between SWF and F4V in the context of Streaming or progressive Download?

    Hello everybody,
    I am absolutely a beginner in working with Captivate and furthermore my technological know how is not that good.
    So, I have problems to understand if the export formats SWF and F4V are both capable to be published in the Internet as streaming video and as progressive Download? Well so, I do not really understand the difference between streaming and progessive download either?
    Furthermore I was asking myself if this issue depends on how I imported flash videos (there are these two options) in my Captivate project during the production phase?
    I would be very thankful for some helping information!
    Greetings,
    Mareike the beginner

    Welcome to our community
    I'm not certain I fully understand the differences myself, but will toss out what I believe to be true about the formats. Hopefully, if I'm incorrect in my bellief, someone with more definitive knowledge will chime in.
    It was explained to me a couple of years back and is my understanding that "streaming" only applies to a video based format such as F4V, FLV and it doesn't apply to SWF. With SWF, you may specify a preload value. So when the SWF transmits from the web server to the PC, a certain percentage has to be received before play begins. But that's not streaming. It's preloading.
    For streaming to occur, the web server establishes a communication channel between the server and the destination PC. This channel is monitored to see what speed is in use. Only enough information is then transmitted to be comfortable at that speed. If the speed improves during the connection, the server serves data at a faster rate. If the connection degrades, the information transmitted is also scaled back so as to accommodate the lower speed.
    With SWF, after it has all been downloaded, a savvy user is able to poke around in their temporary internet files and save the SWF for play later. With streaming, this isn't possible because as the stream is viewed, it evaporates from memory.
    Seriously hoping others will chime in here to confirm or deny this.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Table relations between vbrk and bkpf for  Accounting Document Number

    hello,
    i am using 4 tables to get data into my programs.
    vbrk,vbrp konv and bkpf.
    i want to get belnr from bkpf.i found relation between vbrk and belnr.but in vbrk table belnr's value is initial.
    can anybody tell me that how should i relate vbrk and bkpf or how to get Accounting Document Number(belnr) from bkpf for Billing Document(vbeln).
    regards,
    soniya s.

    hi,
    chekc this. its working for me.
    data : WA_AWKEY LIKE BKPF-AWKEY.
    data :  WA_BELNR LIKE BKPF-BELNR.
    data : LENGTH TYPE I.
    *BREAK MTABAP.
    LENGTH = STRLEN( IT_VBRK-VBELN ).
    if  LENGTH = '10' .
    MOVE it_vbrk-VBELN TO WA_AWKEY.
    SELECT SINGLE BELNR FROM BKPF INTO WA_BELNR
      WHERE AWKEY = WA_AWKEY
      AND AWTYP = 'VBRK'
      and blart = 'RV'.
    it_final-acc_doc = WA_BELNR.
      CLEAR WA_BELNR .
      CLEAR WA_AWKEY .
    else.
    CONCATENATE '0' it_vbrk-vbeln INTO wa_awkey.
    SELECT SINGLE BELNR FROM BKPF INTO WA_BELNR
      WHERE AWKEY = WA_AWKEY
      AND AWTYP = 'VBRK'
      and blart = 'RV'.
    it_final-acc_doc = WA_BELNR .
      CLEAR WA_BELNR .
      CLEAR WA_AWKEY.
    endif.

  • ABAP Proxy connection Between PI and SRM for XMLs

    Hello Experts,
    We are trying to set up ABAP proxy connection between PI 7.1 and SRM so we can send XML from SRM into PI.
    Our SRM developer is getting an SLD error (below) and seems like something is not set up right in the SLD. Could you help me out with any kind of blog/documention on setting up an ABAP proxy connection between PI and an ABAP system. Something that talks about what steps we need to take in PI and SRM.
    error ...
    *We saw the error during debugging. This error is preventing XML output
    to be sent to PI.
    BBP_BD  002     An SLD system has not been assigned to logical system
    Thanks,
    Mayur

    Thanks all for a quick reply. I also had to take following step to achieve the task.
    adding the XI system to the SRM config - SRM Server -->
    Technical basic Settings --> Define  System Landscape?  (also please
    associated documentation in that link for XI)
    Thanks,
    Mayur

  • Problems between Xcelsius and WebDynpro for Java

    How should I do to show Xcelsius in WebDynpro for Java?
    How should I transport data between Xcelsius and WebDynpro?
    How should I control WebDynpro with Xcelsius?For example,firing plugs in Xcelsius like in WebDynpro to change one view to another.
    How should I do to execute a Java method in Xcelsius?For example,scheduling a job on clicking a button in Xcelsius.
    Besides these,I also want to know the same problems between other BOE contents and WebDynpro for Java.
    Regards,
    Abe

    Hi Pradeep:
    Well that purely depends on the business application (project) your client is proposing. Following are very few factors which will drive for creating web-based applications:
    VC: it's a UI modeling tool (non-programming) for creating rapid creation of web-based applications.
    WD: its a powered by Java and ABAP with which you can create robust business applications.
    If your client is very choosy about rapid application development, reporting, rich user interface, to reduce TCO then VC is the choice. Or if the project contains typical integration with SAP and non-SAP systems, complex business logic development, integration with WCM systems...etc then WDJ is the option.
    If you’ve some sort of custom development with facilitating the Development Infrastructure (NWDI) then WDJ is the only option I could say.
    We hope with NW CE 7.1.1(referred by Priyanka Singh) tighter integration between these TWO tools may over come the ambiguity of using them.
    Tnx,
    MS

  • Differences between 7 and 8 for long books

    I am considering FM 7 and 8 for producing a long book.  The issue with 8 is that it requires SP2 on XP, and I can't put that on my writing system.
    So that would favour 7 unless its features are noticably lacking compared to 8.  Here are the book requirements, please read carefully --
    * There are 4 parallel columns spread across 2 facing pages -- each column has its own text, layout, font and size, different from texts in other columns.
    * All 4 columns in the spread (2 on even pages, 2 on odd pages) must retain their positions on the spread, no matter which page of the book you turn to.
    * There is absolutely no left to right wrapping of columns in a parallel column layout.  This means all columns flow down - even to even, and odd to odd.
    * This page flow must be automatic -- I am simply NOT going to draw frames for all pages and manually link them across a 400 page book, it is absurd.
    I need to know which one of 7 or 8 supports automatic wrapping of 2 columns on even pages to the next even page, and the two columns on the right odd pages to the next odd page (if you don't understand this requisite column flow, please leave it for other to reply who do -- thank you).  If both FM 7 and 8 are more or less the same, that would be very helpful information too.  Please give compative capabilities as it relates to parallel book columns.
    BTW, another really crucial feature is being able to manually set a FIXED line height in each column -- not in point size, like InDesign does (that does not work for precise alignment) -- I should be able to specify the line height in each column in decimals of an inch.  Which one can do this?
    Your help on these specific questions is much appreciated.  Please no discussion of FM 9.  I will not be getting that version.  Thanks

    ScratchyBoy wrote:
    Mike --
    That weird work-around is indecipherable to me (column less than a character width??) -- would you care to explain it in the context of this thread?
    I noticed that Arnis has already explained the reason for using a tiny frame in each thread to carry the flow across pages where you don't want to display that content.
    The reason Jay posted that is because he was on my question in InDesign, realized the serious failing of InDesign to handle a 2-page spread of parallel columns, and obviously wanted to see if FM could do it.  He did a book in FM with only 2 columns, hence the "entrenched" concept of even-to-odd page flow worked fine for him.
    You know, I have personally read 100+ books with 4 parallel texts like I am describing, and I am sure there are thousands of ones I haven't read with a similar layout.  It takes scarcely 2 seconds to realize, looking at the 2 page spread, that even page columns MUST wrap to even page columns, and odd to odd.  It's not an "unusual, special" request, it is a NECESSARY REQUIREMENT of 4 parallel columns spread across facing pages.  Surely you can see that?  But it seems that Adobe developers either never read any scholarly texts, or they just don't understand parallel texts -- period.
    Have you contacted the folks who created the books you're referring to, to learn what tools they used for the books? Just seeing the final print version, or even the PDF, can't reveal the underlying construction.
    Maybe the truth came out in that thread.  Framemaker, as it was originally conceived by the original developers, DID allow correct page flow for parallel columns -- but once Adobe got it, they killed that ability, dumbing it down to InDesign's level, which cannot do it.  Peter so much as admitted to that fact on that thread, that somewhere in the versions, this feature was killed.  Which confirms the above paragraph.
    Winfried Ring responded to my question about the feature not working in later FrameMaker releases, in that other thread, that the technique still works in later FrameMaker releases. The key, Winfried pointed out, is to begin the document with one body page, regardless of whether it's a single-page or facing-page layout. This keeps FrameMaker from getting confused about where the flows should go on the new pages it creates as any of the flows grows to the point that it creates a new page.
    I think you're trying to imagine how these techniques will work, rather than trying them out hands-on. I've done that myself; it's a good learning style for some things, but in this particular case, you need the empirical experience of seeing how the software's built-in mechanisms behave. Until and unless you do it and gain the experience, you can't imagine, project, empathize, conjure, or visualize how these things work. You do have a clear vision of what you want for the end result, however.
    In FrameMaker, as in InDesign, as in PageMaker, as in QuarkXpress, you draw text frames on document pages, or on master pages, using a text frame tool. It's named differently in each application.
    The tools are for users to apply their vision and creativity, so if you need a certain kind of layout, you need to lay it out yourself. If your particular layout were common, there would very likely be at least one template for available in each professional publishing tool's community.
    Why should I even consider FM 9 ??  Adobe wants $1000 bucks for it -- they brag on its "improved features for book production".  What a laugh!  They can't even conceive of scholarly comparative books across a HUGE gamut of subject areas -- so why should I consider it ??  I'd love for someone to tell me: "YES !!  I am proud to announce that FrameMaker can do this natively out of the box !! "  But I don't see it coming, do you?
    Professional tools cost huge money to develop. If you use them professionally, your work should bring in the revenue to pay for the tools.
    As has been said by many posters on many threads in regards to most software, especially the professional tools, it's very unlikely that you'll find a legitimate copy of a past version for sale. The older the version, the less likely there will be a legit copy on some dealer's shelf that pops up, and is put on eBay for a song. It's illegal to sell old versions that one uses to upgrade to a new version. You'll not be able to register the license; in recent versions of Adobe products, you won't be able to use the software at all after the trial period expires, without a valid license.
    Using a license cracking tool is also illegal.
    It sounds as if  your hardware and Windows version limitations are constraining your software choices. It's a tough set of choices.
    Oh, BTW, here's a link to a PDF of a FrameMaker example of what I think you're talking about:
    http://dl.dropbox.com/u/363247/fm%207X7%204-parallel%20flows%20across%20same-side%20pages. recover.pdf
    EDIT:
    In the PDF, the small fragments of text are the "pass-through" threaded frames that Arnis described. They're larger than a single character, so you can see the text flow through; in real use, they should be teensy.
    /EDIT
    It's trickier in InDesign because it's built-in ability to create new pages as stories grow is trick to accomplish the same behavior. The In-Tools plugin that was mentioned can do this.
    If you're persnickety about typographic control, InDesign is the better tool. FrameMaker isn't a slouch, it's just that InDesign's been bred for the task.
    Regarding lining up the text across columns, InDesign and FrameMaker both can control baseline alignment. You'll need to try out both tools to decide which works the way you need.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Diff between BSP and WEBDYNPRO FOR ABAP?

    Hi All,
    can anyone let me know the Difference between BSP's and WEBDYNPRO FOR ABAP.
    Regards,
    Ravi

    Hi Ravi,
    In truth, Web Dynpro contains many of the enhancements than BSPs....like built-in value-help and select options...... they
    will become standard in Web Dynpro. But these can also be added to BSPs also.
    There are several architectural differences between BSP and WDA. WDA has some advanced features but more restrictive framework compared to BSP.
    WDA is stateful only. While BSP supports both stateful and stateless programming models.
    WDA doesn't aloow us to use our own custom HTML, JavaScript or other controls. To provide compatibility the rendering logic is completely hidden from the developer.
    On the other hand, BSP has no such restrictions and allows an extreme level of custom rendering. This makes BSP a perfect platform for applications that require pixel-perfect layout or specialized UI elements.

  • BETWEEN ? AND ? for datefields in uix Search Form

    I tried to Search for a date Range using:
    between 'onedate' and 'anotherdate'
    but this doesn't really work. i always get all dates as a result!
    does anybody know how to work around?
    did anybody run into the same problem?

    I'd just like to mention, that the mentioned approach is vulnerable to SQL-Injection attacks, which can be quite harmful on oracle databases!
    You should add some validation logic to the setCondition method to filter out special characters, especially "'"

  • My wifi constantly switches between on and looking for other networks

    while I am on my wifi network and internet successfully I notice that it switches between saying WIFI ON and LOOKING FOR OTHER NETWORKS. How do I get it to stop looking for other networks because it is successfully already connected to the right one?

    Hold down the option key and select the Wi-Fi menu in the menu bar. What values are shown for the following?
    PHY Mode
    Channel
    Security
    Signal/Noise or RSSI
    Transmit Rate
    Please do not post the BSSID, as that information is private.
    Now hold down the option key again and select
     ▹ System Information... ▹ Network ▹ Wi-Fi
    Compare the two-letter Country Code with the ISO code for your country. Does it match? The code X0 means that the country couldn't be determined. The code X3 means South America, not otherwise specified.

Maybe you are looking for

  • After forced shut down iosx does not accept the password on the mcbook air

    Hi there, I cannot login into the mcbook air after having to force a shut down. - While surfing with Safari, the mcbook froze for a longer period of time. - We forced the shut down pressing the on/off button. - After rebooting, we have a grayish scre

  • EHP7 Upgrade stuck in NTACT_ALTNT Phase

    Dear Experts, Am stuck in the upgrade NTACT_ALTNT phase of the EHP7 upgrade Source: SAP ECC6.0 Target: SAP ECC 6.0 EHP7 In the preprocessing phase got an error in the        MAIN_SHDIMP/SUBMOD_SHD2_RUN/NTACT_ALTNT     phase. Please find the logs belo

  • Are there any fixes for malfunctioning airplay???

    Using my iPad 3 with the latest 2012 Apple TV results in poor airplay??? Sometimes the sound is played, then cuts out. Then other times I try to mirror and no video is seen on the tv. Also trying to play YouTube videos doesn't work? This is really fr

  • MY IPHONE IS BLACKED OUT!!!

    My iphone 5s completely blacked out. it was working fine literally two seconds ago, then i put it down walk away, come back and now its blacked out, it wont turn on. the battery was fully charged. i tried to do the restore through itunes, but it wont

  • Voice - Transparent CCS

    Has anybody done any configs with transparent CCS. I need to configure this for a VOIP link using Clear Channel Code over IP. I have found a config on Cisco - http://www.cisco.com/en/US/tech/tk652/tk653/technologies_tech_note09186a00800a96c1.shtml I