Property Based Allocation

Hi all,
I have a question about allocation. For example there is a property FLAG in product dimension and I have the members in this dimension. Some of them have a "X" and rest have a "Y" in property FLAG. In input schedule i want to enter data in property based(How can i do this?).  And i want do the allocation to all of  the members of these properties.
For example,
ID------FLAG(property)
A----
X
B----
X
C----
Y
D----
Y
So, when i enter 50 to X, A and B will be 25.
and When i enter 60 to y, C and D will be 30.
Any Idea?
Thanks in advance.

Hi,
You cannot enter value 50 into X, because there is no X member in your dimension. You can maintain X and Y as members and set the flag to TA (representing to be allocated). Then enter the values in X and Y.
After this, you need to run a script logic for doing the allocation.
1. First you need to fetch all the members with flag as TA. These are the members, which needs to be allocated. Store them in some variable.
2. For each member in the above variable, fetch the members whose flag is same as the above variable. This gives you the destination, where the value should be allocated.
3. Use the allocation function.
Hope this helps.

Similar Messages

  • Property Based Rule - Backward compatibility

    We have the following structure in a Model.
    Decimal Feature A
    Decimal Feature B
    Option Feature C (min 0 , Max - no value)
    Option 1 - Property X : 100 , Prop Y : 200
    Option 2 - Property X : 200 , Prop Y : 300
    Option 3 - Property X : 300 , Prop Y : 400
    Option 4 - Property X : 400 , Prop Y : 500
    Option 5 - Property X : 500 , Prop Y : 600
    Options in 'Option Feature C' are being selected based upon values in Decimal Feat A and B. Example, if the user keys in a value between 200 to 300 in Decimal A , and a value between 300 to 400 in Decimal B, then thru property based rules Option 2 and Option 3 are selected automatically.
    Now along with the above logic we want an additional logic which enforces the backward compatibility too.
    i.e. if the user selects Option 2 and Option 3 then one of the decimal feature should have a value between 200 to 300 and another decimal deature should have a value between 300 to 400.
    Any thoughts on this can be done without using an extension ?
    If an extension is required then what can be the best approach to accomplish this.

    Hi Akhil -
    I am working on our forum backlog. Please let me know if this is still an issue for you.
    Regards,
    Daniel

  • BPC NW Table-based allocations

    Hi,
    Does anyone know if it is possible to do BPC NW table-based allocations? This is possible in BPC MS using SQL maintained tables. The tables include a header table and a details table for allocation rules.
    Thank you,
    Tim

    Hi Tim -
    Please consider the information in the following blog on allocation features in BPC70NW:
    [/people/sheldon.edelstein/blog/2009/08/21/sap-businessobjects-planning-and-consolidations-sap-bpc-nw-tips-6-allocations|/people/sheldon.edelstein/blog/2009/08/21/sap-businessobjects-planning-and-consolidations-sap-bpc-nw-tips-6-allocations]
    There is no Table Based Allocation functionality similar to BPC_MS in BPC_NW, but of course any unique alloaction scenario not covered by the standard functionality can be developed as a BADI (i.e.: ABAP).    You can find How To guides that explain how to develop a BADI at:  [https://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement%28EPM%29How-toGuides|https://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement%28EPM%29How-toGuides]
    there are several references to creating  BADI, please consider viewing:
    u201CHow to Pass Dynamically Parameters to Script Logic from Data Manageru201D.
    Regards,
    Sheldon

  • Change an Object property based on a value coming from the Excel sheet

    hi all
    i've been able to bind a value from the excel sheet to my my component
    but i want to change a property of an object in my component based on this value at the run time.
    during the design time, it works fine
    for example, if my value called "_xvisible"
    and i use to it to hide some object.
    if i set _xvisible during the design time in excel, it works fine in the run mode.
    but during the run mode, if the value got changed, there is no affect.
    thank you
    Amr

    Hi
    See the xcelsius samples present inside xcelsius SDK. there are examples describing how to bind data which will work at runtime also.
    Hope this helps
    Rush-me

  • Problem with changing required property based on another field using EL

    Hi,
    In my form, I want to set required property should be true or false for field 'B' based on value of field 'A'.
    Value of 'A' is from 1 to 10 as choice list.
    If 'A' value is 1 then i want i want to set required property of 'B' is false.otherwise the field 'B' should be required.
    I set auto Submit to true for field 'A' and 'A' assigned as partial trigger for 'B'.
    In required property of 'B', i given
    #{bindings.ScheduleLevel.inputValue!=1}
    Now, it is working fine if i try to change the list value of 'A' from 2 to 1 or 1 to 2 or more in the existing record.
    But, if i click create button, then if i choose 1 for 'A', then the 'B' field is not changing from required to non-required.
    my jdev version is 11g.
    Any suggestions please.
    Thanks in advance,
    SAN

    This would not work as validations would fire before. So you will have to accomplish this using a valuechangelistener like this.
    Keep a boolean variable which captures whether field is required or not let' say brequired
    for field A
    set immediate=true, autosubmit=true
    then in value change listener of A you use the code as follows:-
    public void onAChange(ValueChangeEvent valueChangeEvent) {
            Object value=valueChangeEvent.getNewValue();
            if(value!=null&&!value.toString().trim().equalsIgnoreCase("")){
                setBrequired(true);
                FacesContext.getCurrentInstance().renderResponse();
            else{
                setBRequired(false);
                FacesContext.getCurrentInstance().renderResponse();
                }

  • Manged Property based on calculated column

    Hi,
    I set a refiner based on a managed property.
    the managed property is mapped to the crawled property which is based on a document library calculated column with a formula:
    ="In Process" .
    In refinement panel i see
    string;#In Process
    instead of just display:
    In Process
    why is it so?
    keren tsur

    Hi keren,
    According to your description, my understanding is that you want to know why the value showed as “string;#In Process” of calculated column in Refinement Panel.
    Per my knowledge, it may be due to how the calculated column stores the value.
    Please take a look at the article below, from which we can know that the calculated column values show with string;# as the prefix in the lookup column:
    http://sympmarc.com/2009/10/09/sharepoint-lookup-column-based-on-a-calculated-column-woes/
    As its value has string;# as the prefix in calculated column, so the value shows in the Refinement Panel is string;#In Progress.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Sender Cost center based allocation

    Hi All,
    This is unique scenario as per my knowledge.
    Actually we have same cost centers present in two (rather more) different buildings in the company. And as per cost center design each building has been created as a cost center. And the building costs are getting allocated based on SQM (square meters) as SKF.
    Problem: In KP46 where we enter the SKF, we can enter one total value for one cost center. So in SKF if I enter one total value (for all buildings) in the cost center then from all cost centers it will take more than its proportionate share of costs.
    <b>Can you help me in solving this issue?</b>
    I have already ruled out following options:
    1. Creation of multiple SKFs
    2. Creation of individual cost centers per building.
    Because we may have 40-50 buildings in the design. And that will increase the data maintenance efforts many times.
    Waiting for your replies.
    Please post in case of any queries.
    Rgds,
    Manish Gupta

    Hi,
    no this is not causing the issue. It means that after the first internal allocation cycle  run, the results are checked and if there are senders that still have values a second internal allocation cycle is porcessed (based on the results of the first one), this goes on and on till every sender is (nearly) allocated to zero (or the sender % it should be).
    But again: Try to eliminate sending/receiving values within 1 segment for the same CO-object (cost center) to avoid situations like the one you've described.
    Best regards, Christian

  • ISU Property Owner Allocation - History of owners

    Hi All,
    I am working on owner allocation process. Just wanted to check if a history of the ownership allocation would be stored in SAP system?
    I have checked EPROP, EPROPH tables but could't find if system stores the history anywhere.
    Also please confirm the process of reversing owner allocation. Will this reverse the allocation from new owner to previous owner. If yes, system should have stored the history of ownership.
    I have tried to reverse a property ownership. Later when I tried to edit / display the same property, system throws a message as "property reversed, no more changes possible ". Does it mean, once a property is reversed, it is of no use!! Can't we further edit the same property?
    As far as I understand, ES54 transaction for reversal of owner allocation should work in case of incorrectly created property, but later the property can be edited with correct owner. But the error message triggered by system would not allow us to reuse the property.
    Appreciate your input.
    Thanks,
    Somu

    Hi Somasekhar,
    The owner allocation history is not stored in a single table. Instead, you have to create a join of the relevant fields from the tables EANL, EPROP and EPROPH. Please go through the attached image.
    Note: Also add the field for reversal indication from table EPROP  into the join
    About your question regarding owner allocation reversal. A reversal will not allocate the old owner back into a premise/ installation. Instead, when a property is reversed, we have to manually assign the old owners for all the premises/ installations contained in that property
    Regards
    Ullas

  • How to set button disabled property based on backing bean method

    JDeveloper 12c
    I have a table and a button on the page. When user selects certain table row I want to enable/disable the button.
    My backing bean (which has backing bean scope in the task flow where the page is) is
    package view.backing;
    public class Studybrowse {
        public Studybrowse() {
        public String b1_action() {
              //Do something here
            return null;
       public boolean b1_user_auth(){
           // Do something here to return true or false
            return true;
    My button is something like this:
    <af:button text="Do something" id="b4" action="#{backingBeanScope.Studybrowse.b1_action}"
                   disabled="#{backingBeanScope.Studybrowse.b1_user_auth THIS DOES NOT WORK}"
                   partialTriggers="t1"/>  
    The first problem is in design time, it says: "Reference backingBeanScope.Studybrowse.b1_user_auth not found"
    and in runtime, desired behavior does not work.
    Any help is appreciated

    Timo:
    I changed my backing bean method like this:
        public Boolean isUserAuthorized(){
            // some code here that will return true or false, hardcode to true for now
            return true;
    and the button disabled property like this:
               <af:button text="Go to Reports!" id="b5" action="#{backingBeanScope.Studybrowse.b1_action}"
                           disabled="#{backingBeanScope.Studybrowse.isUserAuthorized}"
                           partialTriggers="t1"/>                   
    Still same problem in design time there is a warning and 500 error in runtime.
    <Jan 22, 2014 11:36:15 AM CST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /studyBrowse URI: /studyBrowse.jsf actual-URI: null.
    javax.el.PropertyNotFoundException: //C:/Documents and Settings/rade/Application Data/JDeveloper/system12.1.2.0.40.66.68/o.j2ee/drs/ADFOracleReports/ViewControllerWebApp.war/studyBrowse.jsff @41,46 disabled="#{backingBeanScope.Studybrowse.isUserAuthorized}": The class 'view.backing.Studybrowse' does not have the property 'isUserAuthorized'.
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111)
      at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
      at oracle.adfinternal.view.faces.renderkit.rich.ButtonRenderer.getDisabled(ButtonRenderer.java:436)
      at oracle.adfinternal.view.faces.renderkit.rich.ButtonRenderer.encodeAll(ButtonRenderer.java:270)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:455)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$1600(PanelGroupLayoutRenderer.java:30)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:761)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:653)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
      at oracle.adfinternal.view.faces.taglib.region.IncludeTag$FacetWrapper.processFlattenedChildren(IncludeTag.java:683)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:171)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
      at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:291)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:366)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
      at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
      at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:68)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
      at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
      at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:417)
      at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:228)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
      at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:288)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
      at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
      at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:275)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
      at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
      at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1473)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
      at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
      at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
      at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
      at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    >
    <Jan 22, 2014 11:36:15 AM CST> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <Error Rendering View[/studyBrowse]
    javax.el.PropertyNotFoundException: //C:/Documents and Settings/rade/Application Data/JDeveloper/system12.1.2.0.40.66.68/o.j2ee/drs/ADFOracleReports/ViewControllerWebApp.war/studyBrowse.jsff @41,46 disabled="#{backingBeanScope.Studybrowse.isUserAuthorized}": The class 'view.backing.Studybrowse' does not have the property 'isUserAuthorized'.
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111)
      at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
      at oracle.adfinternal.view.faces.renderkit.rich.ButtonRenderer.getDisabled(ButtonRenderer.java:436)
      at oracle.adfinternal.view.faces.renderkit.rich.ButtonRenderer.encodeAll(ButtonRenderer.java:270)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
      Truncated. see log file for complete stacktrace
    >

  • Dynamically changing UI element property based on Checkbox selection

    Hi,
    I have a checkbox in my UI. On the selection of the checkbox, a dropdown must get enabled and when the checkbox is not selected, the dropdown should be disabled. Can someone tell me how i can achieve this?

    Hi ,
    bind ur checkbox and dropdowns enabled properties to context attributes of type WDY_BOOLEAN
    suppose ur checkbox is bound to ca_check attribute under node cn_check
    and ur drop down is bind to ca_drop attribute under node cn_drop
    for the OnToggle Event of CheckBox , assign an action say act
    and in Onactionact method , write the following piece of code :
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check LIKE ls_cn_check-ca_check.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check ).
    IF lv_ca_check = 'X'
    DATA lo_nd_cn_drop TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_drop  TYPE REF TO if_wd_context_element.
        DATA ls_cn_drop TYPE wd_this->element_cn_drop.
        DATA lv_ca_drop  LIKE ls_cn_drop-ca_drop.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_drop = wd_context->get_child_node( name = wd_this->wdctx_cn_drop ).
    *   get element via lead selection
        lo_el_cn_drop = lo_nd_cn_drop->get_element(  ).
    *   set single attribute
        lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = 'X' ).
    ELSE.
    lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = ' ').
    here ur drop down is bind to ca_drop attribute under node cn_drop.
    rgds,
    amit
    Edited by: amit saini on Sep 24, 2009 1:42 PM

  • Overhead Quantity Based Allocation

    Dear Experts,
    1. A Cost element XYZ , with a cost center XYZ , is debited with an amount of $100 in the month of Jan
    2.Actual quantity of Finished Goods ( FG Name Say ABC) produced in Jan is 100 KGS.
    3. Now the client wants to allocate actual ovehead costs incurred ( ref point 1 above) in Jan  ,
         on the basis of actual quantity produced in Jan.
    what is the best option to meet the above requirement
    Regards,
    Sanjai

    Dear Ajay,
    Thanks for the info
    We tested the above mentioned and executed routing , but the cost is not captured.
    We did the following settings
    1. Created an Activity Type  in KG (XYZ)
    2. Created a Cost Center ( ABC)
    3. Created a variable rate in KP26 cost center and Activity type combination ( 10/- per kg)
    4. Attached the activity type ( XYZ) and Cost Center (ABC) in Work center (123)
    5. In Routing PP has created an operation for the work center(123) and mentioned UOM as 1kg  per every kg of parent item produced.
    6. MFBF is executed ( we are in Repetitive manufacturing) and GR/GI is posted
    7. Now when I executed KKBC_PKO report, the above costs are not being capture.
    Note - Can you explain in detail this statement "Assign a fully variable formula to this activity so that if 550 units of FG are confirmed"
    so that that I can explain to PP.

  • Rendering based on a new Row property

    I have a master-detail (form-table) screen.
    How can I show/hide group items in my detail rows (rendered property), based on if my row is a new one (created using Add Row button). I am not familiar with EL expressions and I do not know what EL value to use in the “Display in Table Layout” property of my Items in the JHS Application Definition Editor.
    I found an “isNewRow” method in my <Group>CollectionModel, but I was not able to use it after all.
    Please, give some advice. Thank you!

    Thanks Steven,
    I had used temporarily the expression: #{not empty row.Filename},
    where "Filename" was my item that would be empty during the Insert state and not empty after the Save operation, in order to show / hide another item.
    I followed your directions and I had the expression for the Updated = "while_new" :
    #{!(DocFile2CollectionModel.newRow or row.row.entities[0].entityState==0)},
    where "DocFile2" is my group name.
    That looks quite appropriate for my situation. I will try it. Many thanks again!

  • How to set the read only property for dynamic ALV column

    Hi All,
    I have built one dynamiv ALV and I have one name column inside that ALV for which I have to set read only property based on two column fields that exist in the same ALV,say IS_SP and IS_CORP of type boolean.
    If any one of the flag is 'X',i have to make that name column as display only and
    If both flag are not set,it should be displayed as ediatable column.
    I have written one method as INIT_ALV which gets called when ALV is loaded.
    Code is as  follows:
      lr_column_settings ?= wd_this->alv_all_roles.
      lt_columns = lr_column_settings->get_columns( ).
    LOOP AT lt_columns INTO ls_column.
    CASE ls_column-id.
       WHEN <NAMECOLUMN>. "name column which should be editable/display
    Create Input Field
            CREATE OBJECT lr_uie_input_field_ro
              EXPORTING
                value_fieldname = ls_column-id.
         ls_column-r_column->set_cell_editor( lr_uie_input_field_ro ).
        After this,I have to set the read only property based on IS_SP and IS_CORP values,
              CALL METHOD lr_uie_input_field_ro->set_read_only_fieldname
              EXPORTING
                *value = 'IS_SP' or 'IS_CORP'
    ENDLOOP.
    I dont want to use cell variants also.
    Help me to achieve this.
    Thanks and Regards,
    Divya

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • How to go about changing settings based upon logged in user

    Hi all,
    I'm wondering if anyone has any thoughts on how one would go about changing a property on a node based upon the logged in user.
    For example, say you have a path property at /apps/myComponent/settings.path=/content/dam/genericfolder that for an author have the value of /apps/myComponent/settings.path=/content/dam/sandbox, and for an approver have the value of /apps/myComponent/settings.path=/content/dam/approvalsandbox

    Hi Ove,
    Thanks for the tip on the user role. I had thought about taking that approach, however, leveraging the user role and properties associated with it would be the correct approach if writing custom components. What I am looking for is a way to take existing components, and essentially use them in context of the user.
    For example, say if you are trying to give a sub group of users access to a subset of the DAM directory, and you don't particularly wish to hack around the existing WCM DAM component, there is a setting in the tree navigator (/libs/wcm/core/content/damadmin/treeRoot) that lets you specify where the root of the tree is. (There are more settings to work with, but this is just one used to illustrate.)
    If you can change the property based upon the user, that gives you the functionality without altering code.
    I would like to know if this is possible, if this is an inherently bad practice, if so why, and whether there may be another alternative out there which lets you avoid having to alter the code of an existing component.
    Thanks again for answering.

  • Calculate difference in value based on two date parameters

    Hi All,
    I have a table and need to calculate the difference in rent amount for a property based on two date parameters.
    I have uploaded sample data here:
    https://app.box.com/s/pu8oa4f3jhrhm0ylshdz2fuo7541vn4z
    Thanks
    Jag

    Hi jaggy99,
    Do you have the knowledge of
    Excel Add-In? If you don't have knowledge of C#/VB.NET language and Visual Studio, I don't think Excel Add-In is what you want. As I said previously, your problem is totally about the business logic, we don't provide solution for a complete requirement.
    Based on your sample data, I think VBA code is suitable.
    If you're not familiar with VBA, please take a look at the MSDN documents for scratch:
    Getting Started with VBA in Excel 2010
    The steps should be like this:
    1. Sort all the records by [Rent Change Date] field
    2. Loop throuth the records and find the FromDate and ToDate as well as the corresponding [Rent Charged] field
    3. Calculate the difference and save the data into a new range
    It's not so hard, please have a try, if you encounter any development problems, you can post in this forum.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for