How to use property of dimension to filter the 2nd dimension in Allocation?

Hi experts,
How do we use a property of one dimension to filter out the members of another dimension in allocation script engine?
eg of two dimensions
1.)Entity dimension - (entity dimension)
  memberset:                                        Channeltype (property)
                   Stores
                    Store1                           Boutique
                    Store2                           Kiosk
                    Store3                           Branch
                    Store4                           Concession
                    Store5                           Franchise
                  Nonstore
2.)business Channel dimension - (user define)
   memberset:
               Channeltype   
                   Boutique
                   Kiosk
                   Branch
                   Concession
                   Franchise
                   Nochannel
in allocation code
*runallocation
*factor
*dim entity                          what=Nonstore;                where=bas(Stores)
*dim businesschannel        what=nochannel;             where= ? ;
*endallocation
The thing is that when the engine selected store 2 for entity it should select kiosk as its businesschannel.
Please advise.
Thanks as always,
yajepe

Hi,
In this case, I believe, you should have the allocation within a for loop. But you should note that the performance might reduce.
*FOR %VAR% = BAS(STORES)
   *RUNALLOCATION
   *FACTOR
   *DIM ENTITY WHAT = NONSTORE; WHERE = %VAR%
   *DIM BUSINESSCHANNEL WHAT = NOCHANNEL; WHERE = %VAR%.CHANNELTYPE
   *ENDALLOCATION
*NEXT
Hope this helps.

Similar Messages

  • How to use property file - sql query define in property file

    Hi All,
    Anybody please tell me how to use property file.
    I have placed sql query in propery file and I have to access this in my file.
    well so far this is my code but don't know how to implement in the following ...
    pstmt = con.prepareStatement("select * from registration where username=?");
    instead of writting the query I want to use the property file.
    so far I have developed the following code...
    FileInputStream fis = new FileInputStream("querysql.property");
    Properties dbProp = new Properties();
    dbProp.load(fis);is the code correct... or is there another way to access property file
    Please help.
    please reply soon....
    Thanks

    Before answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182

  • Can anyone give me simple instructions on how to use more than one ipod on the same computer with itunes? Both my daughters have ipods, my wife has one

    Dear All
    Can anyone give me simple instructions on how to use more than one ipod on the same computer with itunes. My daughters have a different generation 'nano' each & my wife a 'shuffle'?
    Many thanks

    Click here for options.
    (69081)

  • I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten.

    I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten. I need to download the product and I can't figure out where to begin.

    Ask someone at your school... Do you have a Cloud redemption code, or a CS6 serial number?
    If Cloud, Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html and
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
    If CS6, download at Other downloads and enter your serial number when prompted
    Again... your 1st resource is your school

  • How to use setFireActionForSubmit with parameters and capture the parameter

    Hi,
    Can anyone explain how to use setFireActionForSubmit.
    I am extending the Controller of ShoppingCartPG. In the extended controller processRequest method I am adding a button to the table and setting up the setFireActionForSubmit, so when the button is pressed it raises the event associated with the setFireActionForSubmit.
    I need to pass the RequisitionLineId as a parameter which is present in the VO associated with the ShoppingCartPG.
    I have used the following code in processRequest
    =================================
    public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    super.processRequest(paramOAPageContext, paramOAWebBean);
    OATableBean otbRN=(OATableBean)paramOAWebBean.findIndexedChildRecursive("ItemTableRN");
    OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
    oasb.setID("addnInfo");
    oasb.setUINodeName("addnInfo");
    oasb.setText("Additional Info");
    String pageName = paramOAPageContext.getRootRegionCode();
    Hashtable params = new Hashtable (1);
    params.put ("param1", pageName);
    Hashtable paramsWithBinds = new Hashtable(1);
    paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL(oasb, "${oa.encrypt.current.RequisitionLineId}"));
    oasb.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);
    otbRN.addIndexedChild(oasb);
    =================================
    And in processFormRequest method I am capturing the event "addnInfoEvent" and trying to capture the RequisitionLineId which I have passed it as a parameter.
    This is the code I have used in processFormRequest.
    =================================
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    super.processFormRequest(paramOAPageContext, paramOAWebBean);
    OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
    String strEvent= paramOAPageContext.getParameter(EVENT_PARAM) ;
    if ("addnInfoEvent".equals(strEvent))
    Number localNumber = 0;
    try {
    localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "param2"));
    catch (Exception e) {e.printStackTrace();}
    String outmsg="Line ID : " + localNumber + ":" + strEvent;
    throw new OAException(outmsg,OAException.INFORMATION);
    =================================
    But I am not able to capture the RequisitionLineId which I have sent as a parameter.
    Can anyone let me know what I am doing wrong.

    Hi,
    This is the requested HTML Code
    ===============================
    <button id="N3:addnInfo:0" class="x7g" style="background-image:url(/OA_HTML/cabo/images/swan/btn-bg1.gif)" onclick="return _chain('submitForm(\'DefaultFormName\',1,{\'param1\':\'${oa.encrypt.current.RequisitionLineId}\',\'serverValidate\':\'1\',\'param2\':\'${oa.encrypt.current.RequisitionLineId}\',event:\'addnInfoEvent\',source:\'N3:addnInfo:0\'});return false;',*'submitForm*(\'DefaultFormName\',1,{\'_FORM_SUBMIT_BUTTON\':\'N34\'});return false',this,event,true)" type="submit">Additional Info</button>
    ===============================
    Hi I am not able to paste the HTML Code..some parts of HTML gets removed automatically when I paste it in the forum.
    Regards,
    Rohit

  • How to use common resource bundle across all the development components ?

    Hi,
    I am working on SAP NetWeaver Developer Studio - JAVA
    How to use common resource bundle across all the development components ?
    Description :
    I have a requirement of creating a resource bundle (resource.properties) and use that common resource bundle in all the development components.
    Can we create a  development component (war and ear both) and create only resource.properties in this development component( DC ) and create the dependency of the same DC  in all the other DCs ?
    Thanks,
    Neha

    Hello Neha 
    This question is more NWDS related.
    You may have a better chance of someone answering the thread under
    SAP Netweaver -> SAP NetWeaver Development Infrastructure (NWDI, formerly known as JDI) forum
    Thanks
    Kenny

  • How to use my findTheHighest method to find the highest value in my two dim

    I am going to create a 13row by 10 colume two dimensional array.
    how to use my findTheHighest method to find the highest value in my two dimensional array.
    .When i compile this program , i got those as following;
    "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsExce
    at TaxEvolution.findTheHighest(TaxEvolution.java:31)
    at TaxEvolutionClient.main(TaxEvolutionClient.java:25)"
    public class TaxEvolution{
    public double[][] salesTaxRates;
    public TaxEvolution()
      salesTaxRates = new double[13][10];
      fillProvinTaxRates();
    private void fillProvinTaxRates()
      for ( int row = 0; row < salesTaxRates.length; row++ )
        for ( int column = 0; column < salesTaxRates[row].length; column++ )
          salesTaxRates[row][column]= (int)(Math.random()*5000) + 1;
    public double findTheHighest()
        double highest = salesTaxRates[0][0];
        for ( int row = 0; row <= salesTaxRates.length; row++ )
          for ( int column = 0; column <= salesTaxRates[row].length; column++ )
             if ( salesTaxRates[row][column] >= highest )
                   highest = salesTaxRates[row][column];
        return highest;   
    public double[][] arrayTaxEvolution()
      double[][] returnTaxRates = new double[13][10];
      for ( int row = 0; row < salesTaxRates.length; row++ )
        for ( int column = 0; column < salesTaxRates[row].length; column++ )
          returnTaxRates = salesTaxRates;
      return returnTaxRates;
    public class TaxEvolutionClient{
    public static void main( String[] args ){
      TaxEvolution protaxRateList = new TaxEvolution();
      double[][] taxRateList = protaxRateList.arrayTaxEvolution();
        for ( int i = 0; i < taxRateList.length; i++ )
          for ( int j = 0; j < taxRateList[0].length; j++ )
            System.out.print( taxRateList[i][j] + "\t" );               
            System.out.print( protaxRateList.findTheHighest + "\t" );
    }

    Multiposted
    http://forum.java.sun.com/thread.jspa?threadID=699057&tstart=0

  • How to use parallel flowed subforms begining at the same position.

    How to use parallel flowed subforms begining at the same position in my form.
    Ex
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1
    I would like to repeat  with a button the 3 subforms in parallel
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1

    Post your question in the LiveCycle Designer forum.

  • How to use a pull down menu after the 2.0 update

    Hi,
    I'm looking for help on how to use a pull down menu after the latest update. The method I was using before no longer works and it's driving me crazy.
    Has anyone else had this problem and figure out a new way?! 
    I was holding my finger down on the pull down menu and waiting for the options menu to pop up, I'd push cancel and the menu would stay. This no longer works.

    Also would love to know plz

  • How to Use a report as a filter in another report

    Hi
    We are presently migrating from microstategy to OBIEE. There is a report with 3 attributes and a single metric(the metric is the count of remedy ticket). The 2nd report has just the 3 attributes(the person who doesn't have a ticket for the given time period should be displayed) . There is no way to do this unless i can use the report as a filter. How can i do this?
    Thanks

    I method from the blogspot doesn't seem to work for me......As for the navigate function it just gives the normal values. I'll try to be a little more clear about what i want to achieve. Let's say report one displays all the owners in the system( number name, class), and report 2 displays all the owners with remedy tickets ( number name, class, number of remedy tickets( this will be the fact column)) and the third report should display the owners without any remedy tickets (number name, class) . due to a database quirk there is no column on which to base my third report. so i should substract the values of second report from first... so that i'll get the third report. ( By the way i've tried set function too....but it wodn't allow it since the number of columns should be equal and same)
    Thanks for your suggestions guys

  • How to use Property Editor from an Add-In?

    Hi,
    I am writing a WYSIWYG add-in for JDev that allows users to put some object into a JPanel instance.
    Thess object has properties such as left, right, width, height, etc.
    - Question: how to use JDev's property editor to allow users change properties of thess object?
    - Another word: how to user JDev's Property Editor API from an add-in?
    I looked at the document. It does not give me enough information about Property Editor.
    Thanks in advance,
    Trung

    Hello Prasad,
    You are on the right avenue - launch an external application which can connect to running Outlook instance and then close it. After this you can launch Outlook anew. Here are the steps required to get the job done:
    1. Use the Marshal.GetActiveObject method which obtains
    a running instance of the specified object from the running object table (ROT) - Outlook in your case, for example:
    // Check whether there is an Outlook process running.
    if (Process.GetProcessesByName("OUTLOOK").Count() > 0)
    // If so, use the GetActiveObject method to obtain the process and cast it to an Application object.
    application = Marshal.GetActiveObject("Outlook.Application") as Outlook.Application;
    then use the
    Quit method to close the running instance. The
    associated Outlook session will be closed completely; the user will be logged out of the messaging system and any changes to items not already saved will be discarded.
    2.  Use the
    Start method of the System.Diagnostics.Process class to start Outlook anew.

  • How to use path names for library filter?

    Hi all,
    I have been looking for a way to use the library filter functionality to show only images in a particular folder (or subfolder thereof). From the help pages [http://help.adobe.com/en_US/Lightroom/3.0/Using/WSAB7B303E-081D-4617-BF47-B4B8D3D49CC3.htm l] I found that the image path is included when you filter using 'any searchable field'.
    However, I do not seem to be able to use a full path name, just the individual directory names. To give an example, I can locate files in c:\data\photos using 'contains all: c data photos', but this will also select images in 'c:\data\someotherproject\photos'. I have tried all combinations of slashes and backslashes, but have found no solution to this problem. Does anyone know what the internal representation for the path name is, and if it's possible to search for it?
    Just to pre-empt the obvious answer: I know that you can simply click on a folder to show its contents. However, using the filter bar would be a more permanent selection of a working directory, which remains when you click on a collection, for example.
    Thanks.
    Simon

    Sorry, I could have been clearer.
    What I'm trying to achieve is the following. My computer contains photos by myself, my wife and others, organised in three main folders. Having them in separate catalogs isn't convenient, because we often have photos of the same event (outings, holidays). However, most of the time I only want to work on my photos, and my wife wants to work on hers. A directory filter would be a good and fool-proof way of doing things. I am currently using a special keyword to do this, but I must remember to apply the correct keyword when importing.
    Adding a folder as a favorite only works to select that folder in its entirety. What I would like to do is to have a 'master' folder selected and then use Lightroom as I normally would (select folders, collections, etc) Filtering by path name would enable me to do just that - and it does, except that there are false positives due to not being able to enter a full path name.
    A smart collection has the same problem: the 'Folder' rule doesn't seem to support paths. And even if it did, it's not possible to select two collections with a logical 'and' operator, unless you make a new smart collection for each possibility.
    My current keyword workaround is functional, but slightly error-prone. And in any case, if 'any searchable field' includes the file path, it stands to reason that there should be a way to match that with the entire path. The documentation isn't clear about this, so I hope that anyone can shed some light on this.

  • How to use Property nodes?

    Hi everyone,
                           I am a beginner of LabVIEW. So I want to know about Property Node in detail. Please Please someone help me know the function of each property node......
    Thank You in Advance,
    Solved!
    Go to Solution.

    Achuthaperumal wrote:
    I am a beginner of LabVIEW. So I want to know about Property Node in detail.
    Property node allows you to programmatically read/write that particular property of associated object. For example, say you have a String Control, and you want to modify its 'Display Style'... for that you need to create and use that particular property node (of the String control).
    Check the attached example.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Example - Using Property Node [LV 2009].vi ‏11 KB

  • How to use property object with dequeue

    I tried to do following steps in Labview7.1 and Teststand3.1:
    - Create a named Queue in Teststand
    - Get the named Queue reference in Labview (GetQueue)
    - Enqueue an property of type NI_BatchControllerRequest into the Queue in Teststand
    - Dequeue the element in Labview by using a Fileglobal of type NI_BatchControllerRequest as destination property object
    At the first Enqueue, the object is correctly dequeued and stored in the Fileglobal. But at the next enqueue, I get the error -17300 (Exception occured in TSSync, Unable to set a top-level property object to another object) at the dequeue operation.
    When I use flat datatypes like string or bool, there are no errors, also at multiple enqueue operations.
    Can anyone help?

    LVFan -
    I did not realize that you are using the SyncManager low level API. The low-level API has a few restrictions that the step type does more work to hide from the user.
    If you look at the dequeue API function it takes an input parameter which is the destination object. Internally the dequeue operation uses the SetPropertyObject method to do the assignment. This method requires that the object that you assign a value to has a parent so that the engine can go to the parent, delete the child, and add the new child in its place. Even if the destination property object that you supplied had a parent, your reference to the "destination" would not be the new object because your reference is pointing to the old property a
    nd not the new one. You would be required to go to the parent and ask for the child again.
    A simple change to make this work for you is to use a reference object as the destination and then use GetValInterface on it to get the element from the queue. I have updated your VI to illustrate this.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments
    Attachments:
    Queue.vi ‏93 KB

  • How to use property sheets in jsp? ( Property | Value )

    i want guidance regarding using property sheets. like a table.

    i want guidance regarding using property sheets. like a table.

Maybe you are looking for

  • Phone not recognized by itunes

    I just plugged in my iPhone 4 and it is no longer recognized by iTunes.  It also says that the camera is not recognized,.  I have reset the phone, redownloaded and installed iTunes.  Nothing is working.

  • SPC Chart and Tag Name starting with a Number

    On a 11.5.3 (latest build) install, we've found that SPC Charts don't like tag names that start with numeric characters.  The data points just don't plot.  I can right click and get the data, but there are no points on the chart.  All other applets w

  • Strange/wrong sorting

    I have a master-detail form with an update-able detail-query. In the detail there is a number (no ID or foreigen key, just a number). If we order by this column in the select, everything is fine. If we remove the order by and enable sorting in the co

  • Manual Numbering

    Hi all Is it possible to set Default Manual as Numbering Series in AR Invoice instead of any predefined Numbering Series? Kedalene

  • Modem dial-up failure

    hi i have been experiencing some problems with my modem connection in the last few days. my modem (powerbook12" internal) dials, whistles, negotiates, and eventually disconnects. all the times. the connection parameters are ok, i swear. i have no clu