Using a property in *WHEN *ENDWHEN

Dear Experts,
I trying to perform a copy in a script logic from some cost centers to another cost centers.
To do this, the cost center dimension has a property DESTCC which indicates to which cost center must be copied.
For instance, I have de following master data
ID--EVDESCRIPTION----DESTCC
C01--plant--
D01
C02--office--
D01
C03--Commercial--
D02
D01----
Department 1
D02----
Department 2
My first script was
*SELEC(%CC%,ID,COSTCENTER,DESTCC<'>"")
*XDIM_MEMBERSET COSTCENTER=%CC%
*WHEN COSTCENTER
*IS *
*REC(EXPRESSION=%VALUE%,COSTCENTER=[COSTCENTER].DESTCC)
*ENDWHEN
It works fine but it overwrites D01 value got from C01 with the value got from C02.
So I trying to do the sum the previous value for D01
*SELEC(%CC%,ID,COSTCENTER,DESTCC<'>"")
*XDIM_MEMBERSET COSTCENTER=%CC%
*WHEN COSTCENTER
*IS *
*REC(EXPRESSION=%VALUE%+([COSTCENTER].DESTCC),COSTCENTER=[COSTCENTER].DESTCC)
*ENDWHEN
But it does not validate it.
I would appreciate if you could say me how this could be achieved.
Thanks in advance

Thanks for yours answers,
I tried the following code:
*XDIM_MEMBERSET COSTCENTER=%CC%
*WHEN COSTCENTER
*IS *
*REC(EXPRESSION=%VALUE%,COSTCENTER=[COSTCENTER].DESTCC)
*ENDWHEN
But C01 values is overwrite by the C02 in my example.
ID--EVDESCRIPTION--DESTCC----VALUE
C01--plant--
D01   -
100
C02--office--
D01 -
200
C03--CommercialD02--
300
D01----
Department 1
D02----
Department 2
I got the following values:
Cost center   Value
D01----
200
D02----
300
The value for D01 must be 300 (100 + 200) but C02 value overwrite C01 Value for D01
So I want to sum the value from C01 or C02  with the previous value of D01 in order to aggregate it (first it save 100 and then it save 100 + 200).
For this purpose I wrote for rec instruction:
*REC(EXPRESSION=%VALUE%+([COSTCENTER].DESTCC),COSTCENTER=[COSTCENTER].DESTCC)
But it did not validate. I would like to ask you how can this be achivied.
Thanks for your help

Similar Messages

  • How to get a Sum of rows, when i use the property max. rows p. page ?

    Hi all.
    I've got a query and get a lot of rows (amounts) back.
    Now i want to have max. 21 rows per page.
    So, first i used the property "max. rows p. page"=21.
    But i want a have Sum-Field p.page too, which shows the sum of the amount p. page at a >fixed place (bottom, left) at the page.
    this didnt work well....
    Because when i have 30 rows, then the sum will shown at the second page (because the sum-field its after the repeating frame).
    ...Now i forgot the property and placed a function and two placeholder in the query like this:
    Function:
    :cp_row:=:cp_row +1;
    if (mod (:cp_row,21)=0)) then :CP_pagenr:=:CP_pagenr+1;
    Placeholders: cp_row, cp_pagenr
    Now i want to use :CP_pagenr to change the group - but Report Builder says: I cant... because placeholder are not allowed to change a group.
    So.. perhaps anyone can give me a hint how i can do this ?
    Thanks a lot...

    hello.
    that sound to me as you wanted a running total. check out the metalink knwoledge base and search for running total and you will find a note on how to do that.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • When i change the value of a combo box using a property node it displays the value not the item label

    I am using a combo box as a select list for text serial commands.  I have items like "engineering", "GUI", and "Scan" for the commands "MDE", "MDN", and MDS respectively which i have input as the corresponding value in the combo box.  so for example the label "engineering" has the value "MDE" in the combo box items list.  when the Vi starts it needs to read the current value MDE, MDN, or MDS and then i want it to display on the front panel the item text corresponding to that command value.
    To do this i have tried to read the serial command, ie MDS and then wire that to a "value" property of a property node of the combo-box, but instead of displaying the corresponding item label, "Scan", it displays the value "MDS" on the front panel instead.  i want the front panel to use the label text when choosing and displaying but the block diagram to use the serial commands.  Can this be done with a combo box?  I'm trying to use a combo box so i can keep it all text and avoid having to build a case statement to convert enums or rings from a numerical value to the text command.
    The correct text value is wired to the value property and it does exist in the combo-box.  I have unchecked "values match items" and selected to not allow undefined values.

    Don't use the value property node.  Use the Text.Text property node.  When creating the property node, select Text, then in the next pop-up box, select Text.
    - tbob
    Inventor of the WORM Global

  • How to use dimension property in REC statement?

    Hi,
    In dimension ACCOUNT I have created additional property ZACC where I store "alternative" account numbers.
    After I load actuals from BW to "regular" accounts I want to copy values to "alternative" accounts.
    Regular accounts are hierarchy nodes and alternative are base members.
    ACCOUNT dim values looks like that:
    ID     ZACC
    A1     A.1
    A2     A.2
    A.1
    A.2
    etc.
    I wrote code below for that but when I validate I get message:
    UJK_VALIDATION_EXCEPTION:Invalid dimension "ACCOUNT].[ZACC" in model ZXC
    *XDIM_MEMBERSET TIME=2012.01
    *XDIM_MEMBERSET ZKEYFIGURE=ZBALANCE
    *SELECT(%ACC%,"[ID]",ACCOUNT,"[ZACC]<>' '")
    *FOR %AC%=%ACC%
    *WHEN ACCOUNT
    *IS BAS(%AC%)
    *REC(ACCOUNT=[ACCOUNT].[ZACC])
    *ENDWHEN
    *NEXT
    Can you suggest me how to fix my code?
    Thanks,
    Andrzej
    Message was edited by: A Ksik

    Hi Andzej,
    I will try to explain in details. If we are talking about target member override in REC like:
    *REC(EXPRESSION=%VALUE%,SOMEDIM=TARGETMEMBER,...)
    TARGETMEMBER can be:
    1. Some fixed single member
    2. Variable like %VAR%, but this %VAR% will get the value from FOR/NEXT loop (simply duplicating lines of code).
    Something like:
    *WHEN SOMEDIM
    *FOR %VAR%=MEM1,MEM2,MEM3 //lines between FOR and NEXT are duplicated
    *IS %VAR%
    *REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIX%VAR%SUFFIX)
    *NEXT
    *ENDWHEN
    Where PREFIX%VAR%SUFFIX - is the target containing fixed prefix or suffix and contents of %VAR%
    The result of code processing this code will be evaluated to:
    *WHEN SOMEDIM
    *IS MEM1
    *REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM1SUFFIX)
    *ENDWHEN
    *WHEN SOMEDIM
    *IS MEM2
    *REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM2SUFFIX)
    *ENDWHEN
    *WHEN SOMEDIM
    *IS MEM3
    *REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM3SUFFIX)
    *ENDWHEN
    This code is VERY slow and ineffective!
    In you case the code can be:
    *FOR %AC%=%ACC% //list of nodes
    //or *XDIM_MEMBERSET ACCOUNT=BAS(%AC%)
    *WHEN ACCOUNT
    *IS BAS(%AC%) //or * if XDIM
    *REC(EXPRESSION=%VALUE%,ACCOUNT="PREFIX%AC%")
    *ENDWHEN
    *NEXT
    but you will need special coding for target to support PREFIX
    3. Member property containing correct member ID, like
    SOMEDIM.SOMEPROPERTY
    In this case the member property of the current record of WHEN/ENDWHEN loop will be used as a target.
    Hope it's clear!
    B.R. Vadim

  • Script Logic: Using a property in MDX *REC statement (BPC NW)

    Hi,
    Is it possible to use a Property in an MDX statement without using  *LOOKUP() function? I have script successfully working but it takes 15 minutes to execute and would like to speed it up.
    I understand that [DIMENSION].[MEMBER].Property is not valid syntax, and do not believe NW has any other functions to resolve the issue, except *LOOKUP which takes a long time.
    Specific Example is below:
    I have a piece of script that successfully splits JV Expense by customers. A Profit Share planning driver determines the percentage that each customer is entitled to. Typically this will be 100%, but could be 50% between two customers.
    The PROFIT SHARE planning drivers records, and PARTNER_INCOME transactional records are below:
    ACCOUNT
    ENTITY
    PARTNER
    SIGNED DATA
    PROFIT_SHARE
    UK_001
    PARTNER_A
    0.5
    PROFIT_SHARE
    UK_001
    PARTNER_B
    0.5
    PROFIT_SHARE
    UK_002_PLANNING_DRIVERS
    PARTNER_B
    1.00
    PARTNER_INCOME
    UK_001
    NO_PARTNER
    $5,000
    PARTNER_INCOME
    UK_002
    NO_PARTNER
    $5,000
    UK_001 has two partners that are each entitled to 50% of the $5,000 NET PROFIT.
    For UK_002, one one single Partner is entitled to 100% of the $5,000 NET PROFIT.
    Using script logic, you can scope the Profit Share account (PROFIT_SHARE) - , and use a *REC statement to multiply this by the driver. It would look like:
    *XDIM_MEMBERSET ACCOUNT = PROFIT_SHARE
    *WHEN ACCOUNT
    IS *
    *REC (EXPRESSION = %VALUE% * ([ACCOUNT].[PROFIT_SHARE],[PARTNER].[NO_PARTNER]), ACCOUNT = PARTNER_PROFIT_SHARE)
    *ENDWHEN
    This wouldn't be a problem if the Planning Driver is always stored on the same Entity that the Income is stored on, but for UK_002, the planning driver is stored on another Entity - which is stored in a the PLAN_DRIVER_REF property of the entity. It should use UK_002_PLAN_DRIVERS
    ID (Entity)
    PLAN_DRIVER_REF
    UK_001
    UK_002
    UK_002_PLAN_DRIVERS
    UK_002_PLANNING_DRIVERS
    In this scenario, we need to switch out the Entity used in the MDX, however I do not believe you can use a property in MDX - can anyone confirm?
    I have currently implemented the *LOOKUP functionality to loop through, changing each *LOOKUP partner for each loop.
    Lookup:
    *LOOKUP PLANNING_JV_US
    *FOR %LOOP_ASLS% = %ASL_LOOKUP_LOOP_VARIABLE%        
      *DIM LOOK_%LOOP_PARTNERS%:ACCOUNT = "PROFIT_SHARE"
      *DIM LOOK_%LOOP_PARTNERS%:PARTNER= %LOOP_PARTNERS%
    *NEXT
    *DIM ENTITY = ENTITY.PLAN_DRIVER_REF                   //   Use PLAN_DRIVER_REF Property of Entity
    *ENDLOOKUP
    Scope and *REC:
    *XDIM_MEMBERSET ACCOUNT = PROFIT_SHARE
    *WHEN ACCOUNT
    IS *
    *FOR %LOOP_PARTNERS% = %PARTNER_LOOKUP_LOOP_VARIABLE%      // 1000 Partners
    *REC(EXPRESSION = %VALUE% * LOOKUP(LOOK_%LOOP_PARTNERS%), PARTNER= %LOOP_PARTNERS%, ACCOUNT = TCOJVSHAR_CALC, AUDIT_ID = PP_EXPENSE_BY_PARTNER)
    *NEXT
    *ENDWHEN
    The problem with the above, is that because the Lookup is being generated for every single Partner, there are significant numbers of loops.
    Does anyone know of another way this can be implemented in Script Logic? Otherwise we'll need to explore BAdI route.
    Thanks,
    Nick

    Hi Nick,
    Use property in LOOKUP - will dramatically speed up the calculation without FOR/NEXT.
    Vadim

  • How to use the property-loader?

    Hello,
    i´m using TS 3.5 and LV 8.0. Now i also want to use the built-in property-loader from Teststand.
    Is there somewhere a documentation for "beginners" how to use this property-loader? At the end i want to read parameters from an ascii-file which updates my input-parameters of the steps in the current-sequence.
    I know how to read and change parameters from teststand in labview via active-x, but i have no idea how to use this propertyloader-thing.
    Is there an easy help file somewhere in the net ( I havent found one yet)?
    Thanks for your help.

    Meanwhile i can use the propertyloader for Limits and Variables which are in a container of the teststep. What not worked was:
    1.) setting the properties of a "Messagebox". For example the property "Button1Label". Why is this not working?
    2.) The second thing what is not clear: Do i need for each sequence an own property-loader? I tested it with a sequence with one subsequence. Does the subsequence needs its own property-loader?
    Currently the import-csv-file looks like this:
    Start Marker,,,
    <Step Name>,Limits.Low,Limits.High,Cont.Voltage
    TestStep_1,1,2,4
    TestStep_2,8,16,32
    End Marker,,,
    When Teststep_1 and Teststep_2 are both in mainsequence then it works. When i copy Teststep_2 in a subsequence then i get an error (-18).
    Any ideas about my two questions?
    Thanks

  • How to use useMaxValue property in ODI for XML?

    Hello All,
    I am using 11.1.1.5 version of ODI. I want to use "useMaxValue" for which description is given as follows by oracle.
    When this property is set to true, elements for which maxOccurs is not specified in the XSD are considered as maxOccurs ="unbounded". Otherwise, the driver assumes that maxOccurs=1 when maxOccurs is not specified.
    when I use this property as useMaxValue in the JDBC url for XML technology I get the following error.
    ODI-1227: Task SrcSet0 (Loading) fails on the source XML connection XML FILE.
    Caused By: java.sql.SQLException: ODI-40717: Unknown parameter : usemaxvalue
    I am trying to get multiple records for the same elements in XML for this I am using this property. Is there any other way to get it done?
    Thanks in Advance!

    please try uimv or useimplicitmaxvalue. I justed tried, both works well. I will file a doc bug to track the issue, maybe document need change, maybe code, waiting bug updates.
    Edited by: tina.wang on Oct 7, 2012 9:28 AM

  • "Message from Webpage (error) There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."

    I created a site column at the root of my site and I have publishing turned on.  I selected the Hyperlink with formatting and constraints for publishing.
    I went to my subsite and added the column.  The request was to have "Open in new tab" for their hyperlinks.  I was able to get the column to be added and yesterday we added items without a problem. 
    The problem arose when, today, a user told me that he could not edit the hyperlink.  He has modify / delete permissions on this list.
    He would edit the item, in a custom list, and click on the address "click to add a new hyperlink" and then he would get the error below after succesfully putting in the Selected URL (http://www.xxxxxx.com), Open
    Link in New Window checkbox, the Display Text, and Tooltip:
    "Message from Webpage  There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."
    We are on IE 9.0.8.1112 x86, Windows 7 SP1 Enterprise Edition x64
    The farm is running SharePoint 2010 SP2 Enterprise Edition August 2013 CU Mark 2, 14.0.7106.5002
    and I saw in another post, below with someone who had a similar problem and the IISreset fixed it, as did this problem.  I wonder if this is resolved in the latest updated CU of SharePoint, the April 2014 CU?
    Summary from this link below: Comment out, below, in AssetPickers.js
    //callbackThis.VerifyAnchorElement(HtmlElement, Config);
    perform IISReset
    This is referenced in the item below:
    http://social.technet.microsoft.com/Forums/en-US/d51a3899-e8ea-475e-89e9-770db550c06e/message-from-webpage-error-there-was-an-error-in-the-browser-while-setting?forum=sharepointgeneralprevious
    TThThis is possibly the same information that I saw, possibly from the above link as reference.
    http://seanshares.com/post/69022029652/having-problems-with-sharepoint-publishing-links-after
    Again, if I update my SharePoint 2010 farm to April 2014 CU is this going to resolve the issue I have?
    I don't mind changing the JS file, however I'd like to know / see if there is anything official regarding this instead of my having to change files.
    Thank you!
    Matt

    We had the same issue after applying the SP2 & August CU. we open the case with MSFT and get the same resolution as you mentioned.
    I blog about this issue and having the office reference.
    Later MSFT release the Hotfix for this on December 10, 2013 which i am 100% positive should be part of future CUs.
    So if you apply the April CU then you will be fine.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Using a property node of a menu ring to generate a secondary address does not work in a subvi unless the subvi has been or is opened. Why?

    I am writing drivers for third party equipment using LabView 6.1. I am using the property node, digdisp.text, to get the item number of menu ring. This number is being used as the GPIB secondary address for the equipment. This vi is one many subVIs like it in a main vi.
    The only way the main vi works consistently is if I open all the subVIs, otherwise the secondary address isn't picked up and I get a EARG and ENOL error in NISpy and a GPIB write error in the Error Out cluster.
    I have attached an example of a NIspy capture of a failed attempt.
    Attachments:
    Capture.spy ‏9 KB

    Hi,
    EARG (4)
    Error Condition: Invalid argument to a function call.
    Description: EARG results when an invalid argument is passed to a function call.
    Possible Cause: The following are some examples: you call ibtmo with a value not in the range 0 through 17 (possible timeout values correspond to a table of values ranging from 0 to 17, where the default is 13, which represents a 10 second timeout); you call ibeos with meaningless bits set in the high byte of the second parameter; or you call ibpad (or ibsad) with invalid addresses.
    The reason you are getting the error is because not only is your secondary address invalid, but your primary address is also invalid. Lines 14 and 16 of your attached NI-SPY capture set
    the primary address (ibpad) and secondary address (ibsad) respectively. You need to make sure that you are passing the addresses properly to the subVIs using a connector. It seems like your programming when sending and receiving data (like the addresses) from your subVIs is not correct. You have to be sure to pass the data back and forth in the proper method using connectors.
    A.S.
    Anu Saha
    Academic Product Marketing Engineer
    National Instruments

  • Unable to use *Keygeneration* property

    Hi All,
    I am trying to use Keygeneration property under remote system.
    Selected  Keygeneration  as QualifiedRange. and selected lookup field (Say
    Department Number) but i am not able to see any lookup values in the qualified
    range property.
    Finally i am not able to give keygeneration values for lookup values.
    Can anyone tell me the solution for above problem?
    Cheers
    Narendra

    Hi,
    I am trying to use Keygeneration property under remote system.
    Apart for this you have to set KeyMapping = Yes for that Qualified table for which you set Property Keygeneration under Remote System by going into MDM Console.
    Suppose you have two records into Data Manager which also lookup( associated  to) this qualified table.
    Syndicate these records after syndicating your Qualified range for these two records Visible when you right click on these two records in Edit Key Mapping
    Hope it will Help you,
    Rewards if found Useful....
    Mandeep Saini

  • How to binding and change VM property value when DataTrigger?

    Hi all,
    Please see the below code. The current work is when mouse over myButton then set textbox value as 3. Then binding this value to ViewModel property, at this time, the new value of ViewModel property also be 3.
    The textbox just like a bridge. Can I remove this bridge and change the VM property directly when <setter..... in myTrigger style? thanks.
    <Style x:Key="myTrigger" TargetType="TextBox">
    <Style.Triggers>
    <DataTrigger Binding="{Binding IsMouseOver, ElementName=myButton}" Value="True">
    <Setter Property="Text" Value="3"></Setter>
    </DataTrigger>
    </Style.Triggers>
    </Style>

    This definitely works:
    <Button Height="50" Width="100">
    <Button.Triggers>
    <EventTrigger RoutedEvent="Button.MouseEnter">
    <BeginStoryboard>
    <Storyboard
    Storyboard.Target="{Binding}"
    Storyboard.TargetProperty="MyNum">
    <DoubleAnimation To="3.0" />
    </Storyboard>
    </BeginStoryboard>
    </EventTrigger>
    </Button.Triggers>
    </Button>
    Viewmodel:
    public class MainWindowViewModel : DependencyObject
    public double MyNum
    get { return (double)GetValue(MyNumProperty); }
    set
    SetValue(MyNumProperty, value);
    // Using a DependencyProperty as the backing store for MyNum. This enables animation, styling, binding, etc...
    public static readonly DependencyProperty MyNumProperty =
    DependencyProperty.Register("MyNum", typeof(double), typeof(MainWindowViewModel), new PropertyMetadata(callBack));
    static void callBack(DependencyObject d, DependencyPropertyChangedEventArgs e)
    Console.WriteLine(e.NewValue.ToString());
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • Group property errors when starting services

    I'm having some problems with SMF in Solaris 10. When booting the system, three services (rpcbind, cron, and sac) fail to start with SMF and enter a maintenance state. As a result, the system never makes it to multi-user-server level. When looking at the verbose boot output, each service fails with the following command (rpc/bind for example):
    svc.startd[7]: svc:/network/rpc/bind:default: Could not interpret group property.
    When I try to start rpcbind manually, it starts without any problems except the following entries are sent to the syslog daemon:
    rpcbind: [ID 837648 daemon.alert] unable to get enable_tcpwrappers cannot use unset argument
    rpcbind: [ID 855099 daemon.alert] unable to get verbose_logging cannot use unset argument
    rpcbind: [ID 494153 daemon.alert] unable to get allow_indirect cannot use unset argument
    I have tried looking at 'svcs -x'. With regards to rpc/bind, all services that it depends on have started and are online. Several services which depend on rpc/bind are offline because rpc/bind has not started and is in a maintenance state.
    I have looked at the /var/svc/log/network-rpc-bind:default.log file but no entries were made. This is true for /etc/svc/volatile as well.
    Any suggestions on what could be causing this problem?
    Thanks,
    Mike

    Thanks for the suggestion. Yes, the properties of my implementation of rpc/bind are the same.
    However, I did discover the problem. I tried a pkgchk on the package that contains rpc/bind (SUNWcsr) and discovered that it had the wrong group settings. I checked /etc/group and the entry for the root group was incorrect, (this might have happened while I was converting the root account to a role). I corrected the entry and the service started without any problems.
    Thanks again for the help.
    Mike

  • I'm trying to create a list using CustomSchemalXml property in ListCreationInformation object in CSOM. But, the code throws an error "Invalid List Schema".

    I'm trying to create a list using CustomSchemalXml  property in ListCreationInformation object in CSOM. But, the code throws an error "Invalid List Schema". Any pointers on how to set the CustomSchemalXml property?
    Sri

    Hi Lakshmanan,
    Thanks for your reply.
    I checked this post and there was no solution to the problem there. I undersand we cannot create a list based on custom template in CSOM, but what I'm looking for is how of form xml and set it to CustomSchemalXml
     property, so that everytime when I want to create a list with similar content types and stuff, I can just set the
    CustomSchemalXml  property. 
    Sri

  • I can not use the property of Touch ID to buy apps from Apple Store. !!!

    I can not use the property of Touch ID to buy apps from Apple Store. !!!
    Knowing that I have to activate the property of the settings, but they only work when you open the lock and does not work with me to buy the apps in Apple store !!
    And I'm sad and very upset by this  problem and I bought this phone in order to enjoy this feature and this experience But this did not happen !!  

    Hi I BOSS,
    If you are having issues using Touch ID to make purchases from the iTunes Store, you may find the Purchasing section of the following article helpful:
    iPhone 5s: Using Touch ID
    http://support.apple.com/kb/HT5883
    Regards,
    - Brenden

  • Can't use binding property of a commanButton inside a datatable

    I have commandButtons inside a datatable.
    The datatable is iterated over ArrayList containing custom PageSnippets objects, which look like this :
    public class PageSnippet {
              private int index = 0;
              private String name = null;
              private String id      = null;
              private UICommand upBtn = new UICommand();
              private UICommand downBtn = new UICommand();
              public PageSnippet (int index, String name, long id, int snippetCount) {
                   this.index = index;
                   this.name = name;
                   this.id = String.valueOf(id);
                   setBtnsVisibility(snippetCount);
               * getters
              public String getId() {
                   return id;
              public int getIndex() {
                   return index;
              public String getName() {
                   return name;
              public UICommand getUpBtn() {
                   return upBtn;
              public UICommand getDownBtn() {
                   return downBtn;
               * Sets button visibility.
              public void setBtnsVisibility (int snippetCount) {
                   upBtn.setRendered(index > 1);
                   downBtn.setRendered(index < snippetCount);
         }The two buttons are binded to the the pageSnippet's upBtn and downBtn objects in order to set their rendered status:
    <h:commandButton
    actionListener="#{pageEditBean.moveSnippet}" type="submit"
    image="../images/btn_up.png"
    binding="#{snippet.upBtn}"/>I got null nuinter exception, datable variable snippet is reported null
    and getter method of the backing bean getPageSnipets is not called at all.
    I got null nuinter exception even when rendered property of the datatable is false.
    When I remove binding property of the buttons everything works fine.
    When instead of binding property I use rendered property of the commandButton and in the getter metthods I return boolean:
    public boolean getUpBtn() {
                   return downBtn.isRendered();
              } Everything is OK as well.
    MyFaces 1.1.5
    JSDK 1.4.2_08
    Tomcat 4.1.3
    Have anybody encountered such problem?
    Is there any workaround?
    Or can anybody confirm that binding a commandButton to a backing UICommand object inside a datatable works for him?
    thanks in advance

    Thanks a lot.
    You're right, the backing bean has request scope.
    I found out (the hard way) that there's a bug in JSF that prevents a commandButton from working, when the button's rendered property is binded to a backing bean's property.
    But this solution works.
    But I got another problem:
    When I click the button, I got java.lang.NoSuchMethodError
    Even clicking the button outside the datatable returns the exception.
    Again, when I set the bean's scope to session it works.
    I don't understand that, except for the datatable business, commandButtons with other request scope beans work well.
    Thanks

Maybe you are looking for

  • Installing Adobe Photoshop Elements 1.0.1 on Windows 8

    I can't install Adobe Photoshop Elements 1.0.1 with Windows 8. The setup program shows the message "You need install Internet Explorer 4.0 or higher". What can I do?

  • Where can i buy a refurbished iphone

    Where can i buy a refurbished iphone ?  Does apple sell them?

  • How do I set up preferences of opening up garage band?

    Hi guys...every project I start I want to have it "time" mode, have the "loops" on the right side of the screen not on, and "lock automation curves to regions" checked. I realize this is a simple 4 to 5 clicks, but was wondering if I can say, "everyt

  • Mail Crashes @ Startup

    I have the three mailboxes. The one that beachballs before the app crashes is the one that syncs with my .mac account. My .mac works fine in Safari. All my system software is current. I'm running 10.5.6, Safari 3.2.1, and have repaired permissions an

  • MAPVIEWER-00011: Error creating a map data source

    Getting the above error when trying to create a data source connection. Any ideas? I am able to create the JDBC data source on weblogic console but not on Mapviewer console.. thanks