Using Member's Property in REC

Hi Friends,
I have a case here where a certain dimension value is getting populated from a property of another dimension. For example, I have a dimension Emp_No. It has properties as CostObject and Entity. For each Emp_No member, we have maintained these 2 properties.
We are starting with a For Loop, which will loop for all Employees one by one. Now while writing the data through REC statement, we are using syntax like Entity=Emp_No.Entity, CostObject=Emp_No.CostObject to populate values for these 2 dimensions. Seems like this is not working properly.
Please note that we are in Support Pack 2
Please check the code below: Please consider the missing sign in select statement below as not equal to. This is just after ID.
*XDIM_MEMBERSET CATEGORY = BUDGET
*SELECT(%Emp_No_Var%, "[ID]", "Emp_No", "ID <> 'No_Emp'")
*FOR %For_Var% = %Emp_No_Var%
*WHEN CostElements
*IS 620002A
*WHEN CostObject
*IS No_Cost_Objects
*WHEN DataSrc
*IS HRMatrix
*WHEN EE_ESG
*IS No_EEESG
*WHEN Entity
*IS USHR
*WHEN PA_PSA
*IS No_PAPSA
*REC(Expression = GET(Emp_No = "No_Emp"), CostElements = 620002, DataSrc = Input, Emp_No = %For_Var%, CostObject = Emp_No.CostObject, Entity = Emp_No.Entity)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
*NEXT
Please find below the .lgx code that is getting generated. I am showing just for one Employee, for sake of simplicity..
*XDIM_MEMBERSET CATEGORY = BUDGET
*WHEN COSTELEMENTS
*IS 620002A
*WHEN COSTOBJECT
*IS NO_COST_OBJECTS
*WHEN DATASRC
*IS HRMATRIX
*WHEN EE_ESG
*IS NO_EEESG
*WHEN ENTITY
*IS USHR
*WHEN PA_PSA
*IS NO_PAPSA
*REC(EXPRESSION = GET(EMP_NO = "NO_EMP"), COSTELEMENTS = 620002, DATASRC = INPUT, EMP_NO = 1040, COSTOBJECT = EMP_NO.COSTOBJECT, ENTITY = EMP_NO.ENTITY)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
As you can see above, instead of getting the values of the property (CostObject and Entity) for Emp_No dimension, I am getting directly whatever I wrote in the logic.. Which seems to be wrong. Also note that Emp_No=1040 is getting generted propoerly.
I did try to run the code, but this also did not work and the data is not getting posted..
Any help would be highly appreciated !!
Regards, Pratap

Thanks a Lot Nilanjan.. Your help was really great for solving this
Seems like, the problem was in For Loop. Logically, the previous script should also have worked, but no clue why we were facing issue with that.. anyways, seems like Property of a dimension can not be accessed inside a for loop, if the loop depends on the member for which we want the property to get populated..
this is my final code, which is working perfect.. thanks a ton !!
*XDIM_MEMBERSET CATEGORY = BUDGET
*XDIM_MEMBERSET Emp_No = %Emp_No_Var%
*SELECT(%Emp_No_Var%, "[ID]", "Emp_No",  "ID<> 'No_Emp'")
*WHEN Emp_No
*IS *
*REC(Expression = GET(Emp_No = "No_Emp", CostElements = "620002A", CostObject = "No_Cost_Objects", DataSrc = "HRMatrix",  EE_ESG = "No_EEESG", Entity =  "USHR", PA_PSA = "No_PAPSA"  ), CostElements = 620002, DataSrc = Input, Emp_No = Emp_No.Id, CostObject = Emp_No.CostObj, Entity = Emp_No.Comp_Code)
*ENDWHEN
*COMMIT

Similar Messages

  • View dimension hierarchy using the filter property of data form

    Hi,
    I created a data form where I want to show the dimension hierarchy. But when I am filtering the form using attribute dimension then the hierarchy is not being shown in the form.Is their any way so that I can use the filter property also and make the dimension hierarchy visible in the data form?
    Thanks.

    847833 wrote:
    Hi Endy,
    Thanks for your reply. I have used the "equal" function as to set that specific attribute as I am choosing the descendants function against the attribute dimension,it's showing error.Hi,
    What's the error ? You have to use a function, otherwise it will only display the member you picked.
    Actually in our dimension structure we have a 3 generation hierarchy and the attribute is only associated with the 3rd generation member. So we want to display the 3rd generation having the specific attribute "xx" wit the entire hierarchical structure in our data form.
    Can you please tell me if I have missed anything?
    Thanks.If you want to display the attribute value in the form, edit the form, go to the "Layout" tab, and click on your row. On the right side of the screen, you have a section called Display Properties. Check the box called Enable custom attributes, then check your attribute name. Save the form and you will have the attribute value displayed at the right of the member name.

  • Changing  Member Storage property

    Hi,
    Is there a command in ESSCMD/MAXL to change the storage property of a member from Store to Dynamic Calc or vice-versa.
    Thanks in advance

    Hey Russ,
    You can't do it directly with MaxL, but you can set up a Rules file that reads in a text file with the member storage property, and that can be initiated via MaxL.
    Search the DBA guide for "Creating Rules Files", this will give you a table of the character to use to set the member storage property, as well as other useful information.
    Robert

  • How to use viewslifetime managed property to get the list of sites which are least accessed?

    Hi,<o:p></o:p>
    I am trying to get the subsites of a site collection which are least accessed. I am using ViewsLifeTime managed property in a content search web part with a condition like this:
    ViewsLifeTime < 0
    OR
    ViewsLifeTime = 0.
    However, It is not giving any results. I even tried with ViewsLifeTime < 10. I have some subsites which are accessed less than 10 times. I came to know this when I saw the value of ViewsLifeTime
    property.
    Can anyone suggest how to add a condition on ViewsLifeTime property?
    Thanks in advance.

    Hi Mohan,
    Here is a thread with similar issue for your reference:
    http://social.technet.microsoft.com/Forums/en-US/770f100d-eadb-45d1-9305-15f11cf9038d/ctxcurrentitemviewslifetime-is-showing-null?forum=sharepointsearch 
    If you would like to get site usage report in SharePoint 2013, there is OOTB feature for you to view popular trends report for a site, you could refer to the link below:
    http://blogs.technet.com/b/tothesharepoint/archive/2014/01/28/view-and-configure-usage-analytics-reports-in-sharepoint-server-2013.aspx
    In addition, custom script for usage report for SharePoint sites might be more helpful to your requirement to know access times:
    http://blog.falchionconsulting.com/index.php/tag/audit/
    Regards,
    Rebecca Tu
    TechNet Community Support

  • What is use of content-property in itemdescriptor

    Hi
    what is use of content-property in item descriptor? In which scenario it is used? Found below from ATG Docs, but still not clear.
    http://docs.oracle.com/cd/E24152_01/Platform.10-1/ATGRepositoryGuide/html/s1403contentattributesandproperties01.html
    Thanks In Advance.
    Gopi

    content-property is used in case of content repositories which has content repository items. Content repository is used just like regular SQL repositories. A content repository item can be thought as consisting of some content and its metadata. The content-property attribute is used in the content item-descriptor and is usually the name of the property that holds the content itself.
    E.g. "media" as you mentioned. Here the metadata might include properties like name, description, type, date of creation, keywords etc. while the content would include the binary-data of the media itself (in case of internal media type). So the declaration content-property="data" in the media item descriptor signifies that property called "data" in the media item will be holding the actual content. You can find more details about it and content repositories in the ATG Repository documentation.
    Edited by: Nitin Khare on Aug 16, 2012 6:59 AM

  • Use of multiple property nodes for GUI manipulation

    I have a LabVIEW 6.0.2 application where I'm using 14 different property nodes in the main loop. All of these have to do with GUI - hiding buttons when "X" isn't pressed, disabling and greying out controls if <0, popping one button on top of another depending on the mode of operation, etc, etc. While this works fine, the program is getting slow. I've noticed that using the old 2-D buttons works faster - things update faster and redraw quicker. However, more to the point, I once read that if you have to use a lot of Property Nodes like this, that you should bundle them into a sub-vi, thus replacing what would be Property Nodes with references. How does that make it faster?
    Richard

    Not sure if bundling them into a sub-vi by itself would make it faster. The nodes in the sub-vi would still have to access the user interface thread, and that's where the slow down comes from.
    When I use any property node, I put it in a case structure and only write to it when needed. You just need to be able to detect when the value being written is changed from last loop iteration. It's useless to constantly rewrite the same value (doesn't have to be the "value" property) to the node.
    Bundle them into a sub-vi and put the change detector, case structure and nodes in the sub-vi, this should help speed things up a bit. Assuming of course that the nodes are the slowdown. It may also help clean up the diagram a bit.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Use member on data form does not work

    Hello,
    "Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
    Who is resolve this problem?
    Version hyperion: 11.1.2
    Thanks

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • Using LV Class Property Nodes in In-place Element structure causes the code to halt

    I have some code written in LV RT 2010 that uses property nodes from a LVOOP class that I created.  I am using access the property node from inside an in-place element structure.  When the code reaches the property node, LabVIEW stops running.  (as if the abort button was pressed).  I verified this behaviour using highlight execution.  When I remove the in-place structure code runs fine.
    Is this is know bug in LabVIEW?  Is there a CAR to resolve this created for a future release?

    Bob,
    I tried to reproduce the behavior you're seeing by recreating the Trigger and Trigger List classes, but I have not been able to reproduce it.  Please take a look at my version of the project in the attached zip file.  Take a look at Test.vi, and feel free to modify and repost it to show me how to make the problem occur.  I would like to file a CAR to make sure we get the problem fixed, but I will need to be able to reliably reproduce it first.
    On a similar note, you can get much better performance out of the Process Triggers VI by preallocating the list array, instead of using build array in a loop.  Take a look at Process Triggers2.vi in my project.  You can run Benchmark.vi to see the performance difference between the two different approaches.
    Chris M
    Attachments:
    triggerlist test.zip ‏165 KB

  • Pagination using table growing property and multi-select table issues

    Hi,
    We're using the growing property on a table, thus the pagination is handled by the control it self.
    However, if we want to update some item in the table, in order to get those details reflected, we're refreshing the model, which is performance intensive.
    Is there any way we can update the UI only without creating any UI inconsistencies?
    Another question is that, is there any way to disbale the checkbox on the table items, based on some property from the backend. we tried to use editable property, but it hides the entire row.
    We need to disable the checkbox on the rows for particular items?
    Also, I need to know any resources on the mobile library where I can find the CSS related documentaion.
    Like we need to create a icon + text structure, which controls should be ideal to use? I have used
    <HBox><Icon src="abc"/><Text text="abc"/></Hbox>, but it creates alignment issues. Any ideas here?
    Thanks!
    Aamir

    855354 wrote:
    We are implementing pagination in our application and comparing the scrollable result set approach with using ROWNUM provided by oracle.The rownum approach scales better.
    Does this literrally mean that Oracle stores all the records in client-side memory cache? Well if it is scrollable it has to store all the rows somewhere, that is the disadvantage.
    Can we use fetchSize attribute or any other work around to limit the number of records in client-side memory?No. If you want that behavior that is how the rownum approach works.
    In the above case, when MAX_ROW_TO_FETCH is a large number (say 50000), then oracle will have to create a temporary table in memory with all the 50000 records and then will fetch from that table required records as per MIN_ROW_TO_FETCH.No, that is not how it works, where did you read that?
    In this case, reading rest of the records and storing in temporary in memory table will impact performance. Is my understanding correct or i am missing something here?Your understanding is not correct. The rownum approach does not work the way you think and behaves more like the way you want the scrollable result set to work.

  • EPM 10 Report using Member Recognition - not displaying data

    Hi Experts,
    I’ve created a report using member recognition because I've had to combine CATEGORY and TIME in the column, all the formulas have being populated correctly for (CATEGORY + TIME), I have also saved it as an Input Form, however when I refresh the report can’t see any data and there is data for these periods and there is data.
    Another issue I have – I’ve entered 777 into 2013.003 and it automatically picks up a (PERSON RESPONSIBLE) or if I input an amount such as 999999999 then click save data, I get an error “no data to save”
    Has anyone experienced this before or am I missing an option somewhere - thx in advance
    Shane

    By algorithm I mean something like:
    if CATEGORY=SOMETHING then show only TIME
    if CATEGORY<>SOMETHING then show only CATEGORY.
    But for this task custom member is a bit complex solution, manually created headers are better.
    Look on my comment in the discussion after blog post with a complex report sample:
    Static report in BPC NW 10
    Vadim

  • Shared Member: Global Property Change

    Hi,
    I am working in DRM( Web Version) 11.1.2.1. I have some issue with Shared Member Property change.
    Is there any way to restrict/change the Shared member Global property value without changing its base member value? Is there any system preference for this?
    If anybody know any other way to restrict it than please tell me, its urgent.
    Thanks in advance
    Rotesh Gupta

    I don't really understand your question, you are talking about BSO loading dimensions then extract then ASO, what actually is your question?
    If it is there a property for shared members then no there is not, here are the list of valid member property codes - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/dotrules.html#dotrules_2
    If you want to understand how to build shared members then have a read of - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/dotdimb.html#dotdimb1061244
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using the Suspensibility property of a Webdynpro application

    Hello Experts,
    I have  around 10 WDJ applications.All these applications are hosted on different iviews on portal.
    I use the portal navigation to navigate between these applications.I want to use the Suspensibility  property of the applications so that i dont have to reload them everytime they are called by other applications.
    My Question is : The Suspensibility  property stores the state of the application as it is. This will be done for multiple applications. Does anyone know where is this temporary storage done and how much of an effect will it have on the performance of the applications overall.
    Regards,
    Virag

    Hi Virag,
    You can use Suspend & Resume plugs for the same. Refer below SAP NetWeaver Library link & asoociated links.
    http://help.sap.com/saphelp_nw04s/helpdata/en/68/3aee42c4257176e10000000a1550b0/frameset.htm
    Hope this helps you.
    Kind Regards,
    Nitin

  • Use of Position property breaks code ONLY in combination with DAQmxBase VIs

    In my application for an PDA (Windows mobile 5.0) I set some Double-Indicator-Controls visible and arrange them on the screen depending on the state of some checkboxes.
    That works fine. But when I place one of the DAQmxBase VIs in my block diagramm, the application crashes when the programm tries to use a Position property of an indicator.
    The DAQmxBase VI is never called it is only inside the block diagramm!

    Hi,
    It is by design that groups are collapsed when entering or leaving inline edit mode on a custom list that uses group by, inline editing, and has groups collapsed by default.
    There is no hotfix currently,
    our product group is aware of the issue and they are currently investigating the issue.
    The current workarounds for this issue are 1) to have groups expanded by default, or 2) to re-expand the
    group each time the inline
    editing mode is changed.
    Xue-mei Chang
    TechNet Community Support

  • DatabaseLogOnList - Use the LogOnInfos property to specify logon infos

    Hi,
    I use CRYSTAL REPORT 2008 to develop reports and view these reports using crystalreportsviewers in web application on dot net framework.
    when I run this application the report displayed the messege "DatabaseLogOnList - Use the LogOnInfos property to specify logon infos".
    could you tell me why and soluction please?
    The code is:
    ParameterField parametro;
    ParameterDiscreteValue parametroVal;
    DataTable dt;
    ReportDocument crReportDocument;
    FormulaFieldDefinition crFormulaDefinition;
    string db = System.Configuration.ConfigurationManager.AppSettings["Database"].ToString();
    string user = System.Configuration.ConfigurationManager.AppSettings["Username"].ToString();
    string pwd = System.Configuration.ConfigurationManager.AppSettings["Password"].ToString();
    string server = System.Configuration.ConfigurationManager.AppSettings["Server"].ToString();
    string RPTtemplatePath;
    //--inizializzazione report--
    crReportDocument = new ReportDocument();
    crReportDocument.Load(RPTtemplatePath);
    //--inizializzazione report--
    ConnectionInfo crConnInfo = new ConnectionInfo();
    crConnInfo.DatabaseName = db;
    crConnInfo.UserID = user;
    crConnInfo.Password = pwd;
    crConnInfo.ServerName = server;
    crConnInfo.IntegratedSecurity = false;                                               
    //autentico il mio report principale
    SetDBLogonForReport(crConnInfo, crReportDocument);
    //autentico tutti i sottoreport richiamati dal report principale
    SetDBLogonForSubreports(crConnInfo, crReportDocument);
    //--istanza ODS per report (DATATABLE)--
    dt = new DataTable();
    it.cdlan.gestionale.bll.objectManager.report.Report_Mgr MGR = new it.cdlan.gestionale.bll.objectManager.report.Report_Mgr();
    dt = MGR.GetDTInterventiFatturazione(idAnagrafica, idServizio, dataFatturazione);
    crReportDocument.SetDataSource(dt);
    //--istanza ODS per report (DATATABLE)--
    //--parametri per report--
    parametro = new ParameterField();
    parametroVal = new ParameterDiscreteValue();
    parametro.Name = "idAnagrafica";
    parametroVal.Value = idAnagrafica;
    crReportDocument.SetParameterValue("idAnagrafica", parametroVal.Value);
    parametro = new ParameterField();
    parametroVal = new ParameterDiscreteValue();
    parametro.Name = "idServizio";
    parametroVal.Value = idServizio;
    crReportDocument.SetParameterValue("idServizio", parametroVal.Value);
    parametro = new ParameterField();
    parametroVal = new ParameterDiscreteValue();
    parametro.Name = "dataFatturazione";
    parametroVal.Value = dataFatturazione;
    crReportDocument.SetParameterValue("dataFatturazione", parametroVal.Value);
    //--parametri per report--
    //--parametri Per Intestazione Titolo Report--
    crFormulaDefinition = crReportDocument.DataDefinition.FormulaFields["Intestazione"];
    crFormulaDefinition.Text = "\" " + DateTime.Parse(dataFatturazione.ToString()).ToString("dd/MM/yyyy") + "\"";
    //--parametri Per Intestazione Titolo Report--
    CrystalReportViewer1.ReportSource = crReportDocument;
    private void SetDBLogonForSubreports(ConnectionInfo crConnInfo, ReportDocument crReportDocument)
            Sections sections = crReportDocument.ReportDefinition.Sections;
            foreach (Section section in sections)
                ReportObjects crReportObjects = section.ReportObjects;
                foreach (ReportObject crReportObject in crReportObjects)
                    if (crReportObject.Kind == ReportObjectKind.SubreportObject)
                        SubreportObject subReport = (SubreportObject)crReportObject;
                        ReportDocument subReportDocument = subReport.OpenSubreport(subReport.SubreportName);
                        SetDBLogonForReport(crConnInfo, subReportDocument);
    private void SetDBLogonForReport(ConnectionInfo crConnInfo, ReportDocument crReportDocument)
            Tables tabelle = crReportDocument.Database.Tables;
            foreach (CrystalDecisions.CrystalReports.Engine.Table tabella in tabelle)
                TableLogOnInfo myTableLogonInfo = tabella.LogOnInfo;
                myTableLogonInfo.ConnectionInfo = crConnInfo;
                tabella.ApplyLogOnInfo(myTableLogonInfo);
    Thanks
    Teresa

    Without trying to parse through all of your code line by line, you seem to be trying to set the database by connecting to the database directly and then you pass it a datatabe.  You should pick one or the other and try it.

  • How to use/read a property in a WSDL file?

    Hello list,
    Does anybody know how to use a property (e.g. myapp.host.name) in a WSDL file to dynamically switch between a certain host through the use of a property file?
    My property file would look like this:
    myapp.host.name=<some-ip-address-or-dns>
    myapp.host.port=1234
    I would save this property file as myapp.properties.
    In a WSDL file that I receive from a 3rd-party I want to remove the hardcoded hostname and replace it with my property. For instance, something like this:
    <port binding="tns:DoSomething" name="DoSomething">
        <soap address location="http://abcdks02:1234/avb_xsd/start.edw?MySource=WebService></soap:address>
    </port>{code}
    should be replaced by this:
    {code}<port binding="tns:DoSomething" name="DoSomething">
        <soap address location="http://${myapp.host.name}:${myapp.host.port}/avb_xsd/start.edw?MySource=WebService></soap:address>
    </port>Is there a fast, efficient and clean way to do this? I do not want to use maven2 filtering, because that forces a new re-deployment every time you change the value of the property. I also want to avoid Spring, because we're trying to get rid of Spring in our project.
    What else can I use? I am sure there is a fast and efficient way to do this.
    Any help is appreciated!
    Thanks,
    Gian

    Hi biblio,
    I have used the method you have mentioned to change the target end point. And that was successful. Thank you. Apart from this I have another issue. I want my web service read some database related values from properties file only when the web service is deployed. Currently the java application read the database related values in a static block. I have made this java application to a web service. I am new to java and thought of there may be something like ServletContextListener where I can read properties file. This allows me to read properties file only when the web application is deployed.

Maybe you are looking for