Spry:setrow , how does it default to onClick?

Hi,
the Spry Data References says that spry:setrow "spry:setrow is use to update the current row number of the data set." and that is used much like spry:setCurrentRow.
Then it says it defaults to onClick,
And then it gives the following example:
<ul spry:repeatchildren="dsEmployees">
<li spry:setrow="dsEmployees">{firstname} {lastname}</li>
</ul>
So, from the above example, I can deduce the following:
The data set "dsEmployees" is being access and from it the {firstname} and {lastname} elements' content are extracted row by row to be added to each  <li> elements.
So my questions are:
1. The statement "spry:setrow="dsEmployees" above is NOT setting any current row number.
2. What does "spry:setrow defaults to onClick mean?? .  OnClick is a javascript attribute that is usually initialized to handle the event onclick, so I don't understand how "spry:setrow" related to onclick, can someone explain?
thanks

1. The statement "spry:setrow="dsEmployees" above is NOT setting any current row number.
If the above is a statement then I can tell you that the statement is incorrect. If the above is a question, then I can tell you that the dataset gets the current row assigned by clicking on the element.
2. What does "spry:setrow defaults to onClick mean?? .  OnClick is a javascript attribute that is usually initialized to handle the event onclick, so I don't understand how "spry:setrow" related to onclick, can someone explain?
When the element is clicked on, the current row will be set. By default, this does not happen when there is no onclick event.
To illustrate the setrow onclick event and using your original markup
<ul spry:region="dsEmployees">
  <li spry:repeat="dsEmployees" spry:setrow="dsEmployees">{firstname} {lastname}</li>
</ul>
we add a detail region
<div spry:detailregion="dsEmployees">
  <div>{joinDate}</div>
  <div>{salary}</div>
  <div>{@id}</div>
</div>
Now every time we click on an li-element the current row is set and the detail region shows the result.
Gramps

Similar Messages

  • How does works default parameters in a program with logical database PNP?

    Hi Friends,
      I have a basic program, i need to filter info with period parameters in a program that uses logical database PNP, but it doesn't work.
      If i use "person selection period" that it's suposed to filter info according to infotype 0001 (as the sap help says), it doesn't work, i use: PNPBEGPS = today and PNPENDPS = today, and the result it's a lot of registers that doesn't meet that criteria.
      Also i tried with: data selection period, today, up to day, current month. And the result it's with the same problem.
      How does works period parameters in a program with logical database PNP?
    This it's the program example, i use the default category.
    REPORT  ZRPHRTEST.
    tables: pernr.
    infotypes: 0001.
    start-of-selection.
    get pernr.
      write: pernr-pernr, p0001-begda, p0001-endda.
    end-of-selection.
    write 'fin'.

    Hi,
    Define pernr table under tables statement then and use GET PERNR event.This get event is followed by End-Of-Selection.
    Syntax: Tables pernr.
                Get pernr.
    Try, activate and test. This should solve your problem.
    Regards,
    Abhijeet

  • BOM Supply Type - How does it default ?

    Can anyone please tell me how the Supply Type flag under Material Control tab on the BOM form is defaulted ? I have checked the profile BOM: WIP Default component type.
    Scenario:
    1.Created items:
    TEST ATO 1 - Created with template - ATO model, Supply Type=Assembly Pull
    TEST ATO 2 - Created with template - ATO model, Supply Type=Assembly Pull
    2. Created BOM
    TEST ATO 1
    |--- TEST ATO 2
    For TEST ATO 2, the supply type is being defaulted to 'Phantom' and not 'Assembly Pull'
    Suggestions please ?

    Sandeep Gandhi, Independent Consultant wrote:
    It takes the supply type from the org item record.
    Can you double check the supply type on org item?I am also seeing the same behaviour..
    I did check at item level too..
    Please advise
    Thanks
    Mahendra

  • How does the Default profile works?

    we are using MSCS cluster.
    On last week, I found SAPGLOBALHOST and SAPDBHOST are pointed to wrong server in default.pfl in
    <CLUSTER>\SAPMNT\PRD\SYS\profile. I changed both parameter to currently server name and restart service. Therefore, we lost zcsa/installed_languages parameter in PRD_DVEBMGS01_<CI_SERVER> file. I have to add this parameter again in RZ10.
    My question is:
    Why SAP can start up correctly when the SAPGLOBALHOST and SAPDBHOST were wrong ? I don't think anybody changed this parameter without notice.
    Where is the old zcsa/installed_languages parameter stored? I searched all servers, I couldn't find this parameter.
    Thank you

    Check SAPGLOBALHOST and SAPDBHOST parameters in Instance profile. If the values in the instance profile is correct it will override the default profile values. Also check the environmental variables like DB_HOST etc.
    When you change the value of zcsa/installed_languages didn't save it as a new version?If you save as a new version then go to profile directory and check DEFAULT.PFL.<n>

  • How grouping is defaulted to a BP

    Hi
    How does system defaults grouping when creating a specific business partner. I need to have different groupings defaulted for different Business partners. What & where is the configuration done.....
    Thanks
    TR

    You do want (and need) to get IT to get DNS configured here, within the organizational DNS.
    This requirement is part of the basic functioning of a modern IP network. Reliable and functional and correct DNS is an integral component of that. Security and a whole raft of applications and protocols further up the stack expect and depend upon DNS.
    The task of getting an IP host address allocated and an associated DNS entry added and distributed is simple, at least from a technical perspective. Adding a DNS entry in an existing DNS implementation isn't rocket science, after all.
    Any associated network client systems will find the organizational DNS servers, and will find (or will not find) the host name and host address of your server there. So you'll either need /etc/hosts on all, or your own DNS infrastructure for your host and your clients, or the proper entry into the organizational DNS servers. You can minimally use /etc/hosts on your server, but your clients won't resolve the host name of the server correctly. This all tends to end up in a mess and in backing out and/or rebuilding and/or reconfiguring pieces, unless DNS is "done right."
    The central organizational issue here appears to be malfunctioning or underfunded or overworked or warring or mismanaged corporate organizations, from what information is included here. One or more parties need to be seated in one or more managers' offices, having career discussions.
    You don't want your "network conduct" to cause you to be occupying one of those seats yourself, however.
    If the IT team and IT manager(s) can't get the DNS entry added, then the group or C-level folks need be involved. And if an IT matter involving the simple addition of an IP address and the addition of a DNS entry into an existing DNS infrastructure lands in the in-box of the C-level, I'd suggest it's time to reconsider your role and possibly to dust off your own resume, too.

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • In the Date Picker, How can I default to select * dates if the user does ..

    In the Date Picker, How can I default to select * dates if the user does not select a date.
    Thanks,
    Doug

    Doug,
    Now lets say l want everythingCould you post some sample data and the output that you want to get..? It would be much easy to understand the requirements...
    When you mean everything, I am assuming you need all possible dates possible between date1 and date2.
    you can use... (from asktom.oracle.com).
      1  select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
      2    from ALL_OBJECTS
      3    where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
      4*                     to_date('12-jan-2009','DD-MON-YYYY') +1 )
    sql> /
    TO_DATE('
    12-JAN-09
    13-JAN-09
    14-JAN-09
    15-JAN-09
    16-JAN-09
    17-JAN-09
    18-JAN-09
    19-JAN-09
    20-JAN-09
    9 rows selected.
    For your case, since you have date1 and date2...
    select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
      from ALL_OBJECTS
      where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
                        to_date(:p12_date1,'DD-MON-YYYY') +1 )Should work.. in my opinion...Haven't tested the second one in Apex .
    Is this what you were looking for ..?? If not, please elaborate...
    Thanks,
    Rajesh.

  • How does one make CC the default out of ACR rather than CC 2014?

    I installed the updates for PS CC and PS CC 2014.  Now, when opening a file out of ACR, it defaults to CC 2014.  How does one set things so that it opens in CC rather than CC 2014?

    GB has two "modes": In "musical time" the units of the timeline are bars and beats, in "real time", they're seconds. You can switch between them by clicking the clock/note symbols near the play button.
    "Snap to grid" only works in the musical time mode.
    An Apple Loop is always supposed to be an integer number of measures long. So if you're in 4/4 it can be 1, 2, 3 ... measures (which is 4, 8, 12 ... beats) long. Since the concept of loops is to be in rhythm with the beat of your song, this makes sense - so it is assured that the "one" of a drum loop, e.g., always sits on the "one" of a measure.
    If your loop is only half a measure long, you can double it to make a full bar. If your loop is not in rhythm at all with a beat - well, then it probably doesn't make sense to turn it into a loop that adjusts to the tempo in the first place. You can still turn it into a "static" kind of loop.

  • Safari on Windows. How does one change default spelling dictionary?

    How does one change the default spelling dictionary for Safari on Windows? For the Mac, it changes in response to the default locale, but on Windows, it just sets to American English and you cannot change it anywhere I can see. All my locale information in Windows is set to UK English.
    In fact on some websites, like this one, the spelling checker seems to be disabled! I'm on Windows 7 64-bit, BTW, running Safari 5.1.7
    Message was edited by: Grant Wray

    I think I just found the answer (though I don't know why the interface is buried this way). Find a word that the American spell check is flagging, right click on it, select Spelling and Grammar, and then select Show Spelling and Grammar. Make sure that the language listed at the bottom says British English (not my choice of what to call it, so please don't blame the messenger).

  • How Does The Account Generator Default The Accounts In Oracle Purchasing

    I enter requisition in iprocurement, add a Project/Task. Where does the workflow look for the default accounts?
    Thank you

    Hi,
    To Default the accounts, the Requisition Account Generator workflow - POWFRQAG would be called.
    It is normal, that POWFRQAG does not default charge account for project based requisition.
    You are required to customize the POWFRQAG workflow.
    Details documented in the note:
    Error APP-PO-14040 in Po Requisition Account Generator (Doc ID 263850.1)
    Regards,
    Paarthy

  • Change Spry:setrow behavior

    The title basically covers it. I need to know how to change
    the spry:setrow behavior from onClick to onMouseover. The
    documentation says that spry:setrow defaults to onClick, which
    leads me to believe that it should be fairly simple to change the
    behavior. Anyone know how?
    Thanks!

    Hey Ross,
    spry:setrow is a short way of writing
    onclick="datasetname.setCurrentRow('{ds_RowID}');"
    Simply change that to onmouseover and it should work.
    Thanks,
    Don

  • Spry tool tip does not work in template or child pages within an editable region. Why not?

    Ok. so I am getting pretty frustrated. I take the time to learn how to use CSS and to create a template page for a Contractor Site (www.ContractorInsurance.net). The idea is to create a page that I can use for different classes of Contractors...right?
    Then I get all happy about being able to insert ToolTip onto pages to help the user. Great!
    LIfe to turn to Sorrow after nearly five hours of searching for a "eeking" answer.
    So what good does it do to have an Editable region to update if we cannot have the flexibility to insert a tool tip on child pages?  Ok so the fast solution is to what... Have a question mark image, insert another apDiv, name it toolTip_Not and provide it with a show=hide behavior?
    RRRRRrrr...
    This really sucks not being able to find a solution within a reasonable amount of time.

    I have tried thank you. However...it is still not working.
    www.ContractorInsurance.net/course_of_construction.php
    The error message is "Making this change would require code that is locked by a template translator"
        Re: Spry tool tip does not work in template or child pages within an editable region. Why not?
        created by altruistic gramps in Spry Framework for Ajax - View the full discussion
    If you have a look at the following simple document with a tooltipTooltip trigger goes here.
    Tooltip content goes here.
    you will notice that a couple of lines have been placed in the HEAD section of the document. When using DW templates, the HEAD section is usually not editable, hence the error mesaage. By default, your template should have an editable region in it just before the closing tag. It looks like this: <!-- TemplateBeginEditable name="head" > <! TemplateEndEditable --> Dreamweaver should be able to find that editable region and insert the
    <script> tag there automatically. Because you don't have an editable region like that in the <head>, open the master template, and paste the code above just before the closing </head>
    tag. Gramps
    Edited to remove personal data

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • How to change default ringtone to a custom one for IPhone 5.

    I have gone into settings  through Sounds made the change, but it does not register as the default even though the ringtone chosen has the checkmark beside it.  Ringtone still lists the factory default under sounds & vibrations.
    I am able to customize ringtones for individual contacts.

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • How to change default fonts in Indesign

    I've tried the usual recommended steps - open InDesign, select a font, then close the program, etc. -- but nothing seems to work. Every style reverts to MetaPlus. Help!

    Respectfully, I've tried this, and I'm not looking for suggested working solutions as I have a pretty clear understanding of how to set defaults and how to utilize paragraph styles.  I'm simply pointing out that contrary to what you're saying, setting the font in the character palette does NOT change the true default font in my experience (CS4, OS10.4.11). I do understand that the default is set with no documents open by then selecting the font in the character palette.
    I'm attaching 2 screen shots to show you that I'm not making this up.  In the first you can hopefully see I've clearly set the "default" to Arial now.
    In the second I've created a new document and a new paragraph style. You can see it already considers "Arial" as deviating from the base "No Paragraph Style" and if you click on "Reset to Base" you will see that sure enough, the true default font is still Geneva (Geneva in my case as outlined in my previous post).
    Generally, this isn't much of a problem. As you've all pointed out we can accept that these additions are the new default for a new paragraph style, but it really isn't changing the true default font. Depending on your working environment and the experience of the designers this may be good enough. For my environment I'm looking for the ability to change the true default font and the only solution I've come across is the one from my previous post (deleting preferences).

Maybe you are looking for

  • Short dump on using screen exit via screen exit - MEREQ001

    Hi Experts, Short text Incorrect screen type: Screen is incorrectly defined or used. What Happened The attribute screen type with the values 'Normal Screen' and 'Subscreen' determines the use of the screen. If a normal screen is used as subscreen or

  • How do I combine libraries when there are 3 accounts?...

    Hi, I need help. I have an XP computer at home, and it has several accounts on it. 2 of them, however, are the ones that we use for itunes. one is an administrator account and one is for the kids. We want to move all of the songs into one library (pa

  • Using 8530 as wireless modem

    Hi there, I'm trying to use my wife's 8530 as a wireless modem for my laptop. Data plan turned on through Koodo - fine. Run BB desktop, connect the phone, select wireless internet - get a message that "the radio is not turned on"... What?? Help pleas

  • Will the AirPort or AirPort Extreme turn any printer into an AirPrint printer?

    I have a printer (HP CP1518ni) and I want to know if I get the AirPort/AirPort Extreme will it allow me to use my current printer with my iphone and ipad?

  • Macbook Pro won't boot up, get apple logo and gear just keeps cranking

    I've done quite a bit of searching, but just can't find an answer - it appears this problem may be fairly common as I got a lot of search results about it. Anyway, here is what is going on, when I boot up normally the hard drive spins very fast and t