Creating Dynamic Member List

I am trying to create a member list holding all the accounts that are indicated as IsICP Y. However when I select the list after loading it no members populate the data form I am creating. Please help. My script is as follows:
Sub EnumMemberLists()
Dim aAccountLists(1)
If HS.Dimension = "Account" Then
     aAccountLists(1) = "ICPAccounts"
     HS.SetMemberLists aAccountLists
End If
End Sub
IF HS.Dimension = "Account" Then
     If HS.MemberListID=1 Then
          ALi=HS.Account.List("","")
     For i=Lbound (ALi) to Unbound (ALi)
     If (StrComp(HS.Account.IsICP (ALi(i)),"Y",vbTextCompare)=0) Then
     HS.AddMembertoList ALi(i)
End If
Next
End If
End If

I will test both out and see which works.
I tried this too but it wasn't perfect...
Sub EnumMemberLists()
Dim aAccountLists(1)
Select Case HS.Dimension
Case "Account"
aAccountLists(1)="ICPAccounts2"
HS.SetMemberLists aAccountLists
End Select
End Sub 'EnumMemberLists
Sub EnumMembersInList()
If HS.Dimension = "Account" Then
If HS.MemberListID = 1 Then
               BaseAcct = HS.Account.List("","[Base]")
                    For a = LBound(BaseAcct) to UBound(BaseAcct)
                         If HS.Account.IsICP(BaseAcct (a)) Then
                              HS.AddMemberToList BaseAcct(a)
                         End If
                    Next
          End If
     End If
End Sub 'EnumMembersInList

Similar Messages

  • Dynamic member list

    Can some one give me a complete sample dynamic member list for reference?

    Sub EnumMemberLists()
        '|                                                                            |
        '|  This block of code defines which dimensions have lists and how many       |
        '|  lists per dimension have been created.                                    |
        '|____________________________________________________________________________|
         Dim aEntityLists (2)
            Select Case HS.Dimension
              Case "Entity"
                   aEntityLists(1) = "US"
                   aEntityLists(2) = "NonUS"
                   HS.SetMemberLists aEntityLists
         End Select
    End Sub 'EnumMemberLists
    Sub EnumMembersInList()
        Select Case HS.Dimension
        '|                                                                            |
        '|  This block of code specifies the criteria for each of the entity lists.   |
        '|                                                                            |
        '|  They may be revised as needed. Note that these are dynamic lists.         |
        '|____________________________________________________________________________|
                 Case "Entity"
                   Select Case HS.MemberListID
                        Case 1
                            US_list = HS.Entity.List("FlatOrg", "[Base]")
                                 For US_loop = LBound(US_list) To UBound(US_list)
                                  If HS.Entity.UD1(US_list(US_loop)) = "US" Then
                                            HS.AddEntityToList "", US_list(US_loop)
                                  End If
                             Next
                        Case 2
                            NonUS_list = HS.Entity.List("FlatOrg", "[Base]")
                                 For NonUS_loop = LBound(NonUS_list) To UBound(NonUS_list)
                                  If HS.Entity.UD1(NonUS_list(NonUS_loop)) <> "US" Then
                                            HS.AddEntityToList "", NonUS_list(NonUS_loop)
                                  End If
                             Next
                   End Select 'Entity List
            End Select 'Entity
    End Sub 'EnumMembersInList

  • Display Dynamic Member List Variable value in the Header

    Hi
    In my HFR report im using a dynamic member list as DynList1(@POV) in the Entity Dimension; for HFM Application.
    For the Entity Parameter im using User Prompt for Entity.
    For the User Prompt im using a choice list of Four entity members. E1, E2,E3, E4.
    I have 4 member lists ML_E1,ML_E2, ML_E3, ML_E4 such that ML_E1 contains few of the descendants of E1.
    So wen i run the report i select E1 in the user prompt and the ML_E1 is used in the Report. This is working fine.
    Now, i want to display the MemberName and Description of E1 in the Header.
    Im not sure if it can be done. But wanted some confirmation from Hyperion Community on whther this can be done.If yes, please let me know how.
    Thanks
    Vibhuti

    I tried to recreate the problem like listed above, but after I add the Outputcollection of the Invoke as a parameter, there is no schema info (not even task:task) when editing the Assignment and Routing Policy section. At any rate, there weren't errors to speak of - the instance completed with "The state of this instance is Completed".
    In the meantime, I've used a while loop to loop through a sequence of approvers that are result of a query. I'll have to keep track of approvers and include them in each new payload I think.

  • Creating a member list for Custom3 dimension

    Hello gurus. I'm trying to create a member list for my custom3 dimension based on the UD1. I keep getting this error: Wrong number of arguments or invalid property assignment: HS.AddMember ToList. Here's my script. Can someone let me know what I'm doing wrong? Thanks
    Sub EnumMemberLists()
    Dim aCustom3Lists(2)
    Select Case HS.Dimension
    Case "Custom3"
         aCustom3Lists(1) = "Reporting Sector - SPS"
         aCustom3Lists(2) = "Tax Provision - US"
    HS.SetMemberLists aCustom3Lists
    End Select 'Dimension
    End Sub 'EnumMemberLists
    Case "Custom3"
    Select Case HS.MemberListID
    Case 1
         'Reporting Sector
         ELi=Hs.Custom3.List("","[Base]")
         For i = Lbound(ELi) to Ubound(ELi)
         If (StrComp(HS.Custom3.UD1(ELi(i)),"SPS",vbTextCompare)=0) Then
         HS.AddMemberToList (""),ELi(i)
         End If
    End Select ' Case HS.MemberListID

    Hi,
    An obvious reason that your code throws a number of arguments error to the AddMemberToList function, is that the line should read like this:
    HS.AddMemberToList ELi(i)However, in your code I see that there are also some incomplete structures, like the for-loop is not ended with a next and the whole paragraph after "End Sub 'EnumMemberLists" should be followed by a "Sub EnumMembersInList()". But I assume that you have omitted those in order to be short.
    Regards,
    Kostas

  • How can i Create Dynamic mailing lists with Iplanet Delegated Administrator

    Hello people,
    Could anyone help me in this matter please?
    I am running IMS5.2 with Netscape Directory4.16. I need help about how to create a Dynamic Mailing list using de Iplanet Delegated Administrator, not using the traditional Netscape Console.
    If someone can help me, i will apreciate.
    bye.
    Azim Lakha

    In 24.4.0 there is no File|New|Address Book. There is File|New|Address Book Contact. How do I create a new address book ?

  • Creating dynamic nemu list

    hi ,
    I had created dynamic menu tabs and menu bars. but not able to create a mmenulist from it. can anyone send me the link where there is creation of dynamic menu list?

    OK I got it working... Mostly... I don't know if it was a combination of changes that made the difference, but I'll put down what I did. First, I switched my select object in the form bean into just a string type from a string array (it was allowing the selection of one entry anyways). Second, rather than just blanking out the options map, I also blanked out the select object [eg form.setSelect("")].
              Now when I select an entry and click delete, the resulting select list is short one visible element. However, you can still select the blank spot where that last entry used to be. However, this is not a huge issue for me now; I will investigate this at a later time.

  • Building a dynamic Member list in HFM

    Good day,
    I want to build a dynamic memberlist in HFM by using the function HS.GetSubmissionPhase("S#scenario.P#period.A#account.C1#custom1.C2 #custom2.C3#custom3.C4#custom4.I#icp”). For some reason it does not return the correct submission phase but always 1 (one). I need to retrieve the submission phase of a specific cell (account) because it can vary from period to period, and therefore it must be dynamic. I am using version 11.1.1.2 (not patched). Is there a way to do this?
    Please assist.
    Thanks,
    Danee

    Hi Chris,
    I understand the member lists are metadata driven and might have a problem with the submission groups per phase (data):
    But according to me the function should return me the valid phase submission for a specific account at a specific point in time. I need it on a report or web form, or need to find another way to filter.
    1. Submission groups are set on the accounts
    2. Submission groups are set per submission phase per period
    3. Want to retrieve all valid accounts for a specific submission phase at a specific point in time in a report
    4. Is there another way that I can filter these accounts dynamically?
    Regards,
    Danee

  • Error in creating dynamic select list

    Hi all,
    I am creating a select list at runtime by using the following code.
    While submitting, I got error.
    ERROR:
    ORA-06550: line 13, column 1: PLS-00428: an INTO clause is expected in this SELECT statement
    My Code behind is:
    SELECT HTMLDB_ITEM.SELECT_LIST_FROM_QUERY_XL(1,ename,'select distinct ename r, ename t from emp') FROM emp;
    Then I modified the above code as :
    SELECT HTMLDB_ITEM.SELECT_LIST_FROM_QUERY_XL(1,ename,'select distinct ename r, ename t from emp') [b]into test FROM emp;
    (NOTE:where datatype of test is CLOB)
    I am getting following error:
    ORA-01422: exact fetch returns more than requested number of rows
    Can anybody tell me, what should be the datatype of test to get rid of this error OR is there some other way to overcome this problem?
    Thanks,
    Dinesh

    OK I got it working... Mostly... I don't know if it was a combination of changes that made the difference, but I'll put down what I did. First, I switched my select object in the form bean into just a string type from a string array (it was allowing the selection of one entry anyways). Second, rather than just blanking out the options map, I also blanked out the select object [eg form.setSelect("")].
              Now when I select an entry and click delete, the resulting select list is short one visible element. However, you can still select the blank spot where that last entry used to be. However, this is not a huge issue for me now; I will investigate this at a later time.

  • Creating dynamic select list

    I have a dynamic select list populated by site names and URLs from a map; when a user clicks on an entry the site name and URL will fill two text boxes. There are also buttons to add, update, and delete entries. These buttons lead to actions within my JPF file.
              When I select an entry to delete, the script runs a delete SQL statement again my Ora db instance, then the page content is repopulated. I want to know how come when I do that I always get the sequence ID of the just deleted entry at the end of my select list.
              Here is a snippet of what I've got:
              JSP:
                        <netui:select
                dataSource="{actionForm.siteList[0]}"
                optionsDataSource="{actionForm.itemOptions}"
                size="4"
                tagId="siteList">
              <netui:textBox
                dataSource="{actionForm.title}"
                size="30" maxlength="200" tagId="title"/>
              <netui:textBox
                dataSource="{actionForm.url}"
                size="30" maxlength="200" tagId="url"/>
              <netui:hidden dataSource="{actionForm.key}"
                tagId="key"/>
              <script language="javascript">
                <!--
                <%=session.getAttribute("jsArray")%>
                  function siteClicked()
                    var index =
                      document[getNetuiTagName("process",this)]
                      [getNetuiTagName("siteList",this)][
                        document[getNetuiTagName("process",this)]
                        [getNetuiTagName("siteList",this)]
                        .selectedIndex]
                      .value
                    document[getNetuiTagName("process",this)]
                    [getNetuiTagName("key",this)].value
                      = index;
                    document[getNetuiTagName("process",this)]
                    [getNetuiTagName("title",this)].value
                      = siteArray[ index ][0];
                    document[getNetuiTagName("process",this)]
                    [getNetuiTagName("url",this)].value
                      = siteArray[ index ][1];
                -->
              </script>
                                  JPF:
                        Connection conn = null;
              query = "delete from stlnt_other_ref_sites " +
                      "where stlnt_ors_site_id = " + form.getKey();
              try {
                pstmt = conn.prepareStatement( query );
                pstmt.executeUpdate();
              } catch (SQLException ex) {
              try {
                Map map = new LinkedHashMap();
                while ( rs.next() )
                  map.put(new Integer(rs.getInt(1)), rs.getString(2));
                  jsArray += "siteArray[" + rs.getInt(1)
                    + "]=new Array(\"" + rs.getString(2)
                    + "\",\"" + rs.getString(3) + "\");";
                  hasResults = true;
                options = map;
                getSession().setAttribute("jsArray",jsArray);
                getSession().setAttribute("hasResults",
                  String.valueOf(hasResults));
              } catch (SQLException ex) {
              

    OK I got it working... Mostly... I don't know if it was a combination of changes that made the difference, but I'll put down what I did. First, I switched my select object in the form bean into just a string type from a string array (it was allowing the selection of one entry anyways). Second, rather than just blanking out the options map, I also blanked out the select object [eg form.setSelect("")].
              Now when I select an entry and click delete, the resulting select list is short one visible element. However, you can still select the blank spot where that last entry used to be. However, this is not a huge issue for me now; I will investigate this at a later time.

  • How to create Dynamic Selection List containg file names of a directory?

    Hi,
    I need a Selection List with a Dynamic List of Values containing all file names of a particular directory (can change through the time).
    Basically, I need an Iterator over all file names in a directory, which could be used for Selection List in a JSF form.
    This iterator has nothing to do with a database, but should get the names directly from the file system (java.io.File).
    Can anybody tell me how to create such an iterator/selection list?
    I am working with JDeveloper 10.1.3.2, JSF and Business Services.
    Thank you,
    Igor

    Create a class like this:
    package list;
    import java.io.File;
    public class fileList {
        public fileList() {
        public String[] listFiles(){
        File dir = new File("c:/temp");
        String[] files = dir.list();
        for (int i = 0; i < files.length; i++)  {
                System.out.println(files);
    return files;
    Right click to create a data control from it.
    Then you can drag the return value of the listFiles method to a page and drop as a table for example.
    Also note that the Content Repository data control in 10.1.3.2 has the file system as a possible data source.

  • Dynamic Entity Member Lists using UD1 and UD2

    Hello fellow HFM gurus:
    I have created dynamic member lists to get all members of the entity dimension that have a UD1 or UD2 member as specified in the script.
    THe member lists all appear in HFM, but when I try to select them, I get a run-time error. I am trying to select them in the member selection of a data form (in the same drop down with the different system member lists for entiites, like hierarchy, descendants, etc.).
    I believe this is the standard syntax. Please let me know if something is wrong with it.
    ElseIf HS.Dimension = "Entity" Then
    If HS.MemberListID = 1 Then
    ELi=Hs.Entity.List(",")
    For i = Lbound(ELi) to Ubound(ELi)
    If HS.Entity.IsBase("",ELi(i)) = TRUE Then
    If (StrComp(Hs.Entity.UD1(ELi(i)),"DD",vbTextCompare)=0) Then
    Hs.AddEntityToList "",ELi(i)     
    End If
    End If     
    Next
    End if     
    Error in HFM:
    Invalid member selection. Error executing VBScript Microsoft VBScript runtime error, Line 475:Wrong number of arguments or invalid property assignment: 'HS.Entity.List'.Error executing VBScript 0.Error Reference Number: {9A7697E2-75AE-4A06-9A34-B45D58022984};User Name: mark.d.smith@Native DirectoryNum: 0x80042fc2;Type: 1;DTime: 9/10/2012 5:51:16 PM;Svr: VMHODDLPHP4;File: CHsvScriptEngine.cpp;Line: 392;Ver: 11.1.2.1.103.3505;Num: 0x80042fc2;Type: 0;DTime: 9/10/2012 5:51:16 PM;Svr: VMHODDLPHP4;File: CHsvDSMemberLists.cpp;Line: 2722;Ver: 11.1.2.1.103.3505;Num: 0x80042fc2;Type: 0;DTime: 9/10/2012 5:51:16 PM;Svr: VMHODDLPHP4;File: CommonMetadataInternal.cpp;Line: 461;Ver: 11.1.2.1.103.3505;Num: 0x80042fc2;Type: 0;DTime: 9/10/2012 5:51:16 PM;Svr: VMHODDLPHP4;File: CHsvEntities.cpp;Line: 338;Ver: 11.1.2.1.103.3505;Num: 0x80042fc2;Type: 1;DTime: 9/10/2012 5:51:16 PM;Svr: VMHODDLPHP4;File: CCommonDimension.cpp;Line: 1015;Ver: 11.1.2.1.103.3505;

    Hi Mark,
    Please check the double quotes after Entity.List. It should be "","".
    Regards,
    S

  • Create a dynamic file list page

    I have two folders under my main heirachy for our web site.  One is called Prod and the other is Dev.  I have folders and irpts within them.  I would like to create an html filelist page so when I am on the web testing it, I can quickly see all of my files and click anyone of them to quickly see the page.  Does anyone know how to create dynamic file list pages that will automatically update as files and folders are added?

    You can always just enable "Directory Browsing" in the default web site in IIS.
    You can do this by opening IIS and navigating the PROPERTIES of the Default Website...click the Home Directory tab...check the "Directory browsing" box...apply the settings and you should be good.
    Note: a restart of IIS might be necessary for the changes to take effect. You can do this by executing a simple "iisreset" from the run command line.

  • Rules - Reference an entity member list and then exclude some entities

    I have rules written to extract data in a specific file format.
    I am using a dynamic member list and then want to exclude some of the entities from doing the extract.
    The member list is base of a parent - it has about 500 entities. I only want to exclude 5 entities. I don't want to have to create a member list of 500 entities just becasue 5 of them are not needed.
    I can't use
    POV_ENTITY <>
    OR If Not POV_ENTITY =
    becuause it is not the POV_ENTITY it is the entity in the member list.
    How can I write that?
    Before:
    For Each Entity in HS.Entity.List("",ListName)
    After: (gives me a Syntax error):
    For Each Entity in HS.Entity.List("",ListName) AND If Entity Not "TAX_ROLLUP.TAX_DOM" Then
    Thanks!
    Full section of the rules:
    If ListOfEntity Then
    'Flag accounts have a different name than the Entity list
    'We need to include the name of the entity list in the File name
    'as well as loop through it to extract those entities
    'List Name = "Tax Entity & the right portion of the flag account beginning after "Tax_"
    UndSco=Len(ListToXtract)
    NameR = Right(ListToXtract, UndSco - 4)
    ListName="Tax Entity " & NameR
    'File Name is the concatenation below
    'Admin has to change the path in the WriteToFile routine at the bottom of this file
    FName="HFM_RIA_" & ListName & "_" & pov_period & "_" & pov_year & "_" & XView & "_" & FDate & ".txt"
    'Below is the header of the file
    Call Writetofile("*************************************************",FName)
    Call Writetofile(pov_scenario & " " & pov_period & " " & pov_year & " " & XView,FName)
    Call Writetofile("*************************************************",FName)
    Call Writetofile("Entity" & "," & "Account" & "," & "ECT" & "," & "PCT" & "," & "CAD" & "," & "CZK" & "," & "EUR" & "," & "GBP" & "," & "PLN",FName)
    'We loop through all the entities of the list related to the current flag account
    For Each Entity in HS.Entity.List("",ListName) AND If Entity Not "TAX_ROLLUP.TAX_DOM" Then
    Edited by: user2609991 on Jan 20, 2010 6:23 AM

    Sorry, yes I did it now using the greather than and less than signs.
    I am able to load the rules file but it still writes the Tax_Dom info to the file.
    I think I am going to give up and just create a big member list of all the entities less those six.
    Thanks for responding.
    Edited by: user2609991 on Jan 20, 2010 11:33 AM

  • Dynamic Entry List in VC

    Hi All,
    I am using VC7 SP09.Is it possible to create dynamic entry list in Visual composer for BAPI/JDBC system?
    Regards,
    Hema

    Hema,
    dynamic entry list for BAPI is supported in sp09, but for jdbc systems its supported as of sp13.
    prachi

  • Dynamic access to member list name from the HS.MemberListID from within Sub EnumMembersInList() routine.

    The goal is to read the member name which is equal to the desired UD and then use the member name to dynamically create the contents of the list, as the name of the list matches the parameter which I'm searching against in creating the contents of the list.

    Hi. Since you don't know how many lists you'll need you need a dynamic array for the EnumMemberLists subroutine (Google dynamic array and you'll get the explanation and code samples). The dynamic array allows you to cycle through the entities with a standard list and then create a list definition when the criteria is found. Then, in the EnumMembersInList subroutine, use the same system entity list and cycle through each entity, use the same criteria, and and then add the content to the corresponding member list (using the same system list in both subroutines should keep the list name and list content in sync - use a counter to increment the memberlistid number.
    When you use a dynamic array like this to define the number of lists you'll have, you will need to reload the list file after every metadata update, as the list file will need to reprocess to add/delete any changes made.
    What is the real need for this, as this is a lot of work when most of the time lists can be simpler than this?
    Eric

Maybe you are looking for

  • Are we Beta testing the N97 for Nokia?

    Because if i was given this as a beta release i would have told them what i thought, the current launch version on the N97 with V10 firmware is barely an Alpha release, this phone was a rush job thrown out on the market to coincide with the launch of

  • I can't drag and drop my songs from mp3 rocket to my iphone?

    i have my mp3 rocket account linked to my itunes account and some songs get put onto my phone, but some dont. i can't drag and drop and if i try to rename it with correct characters, nothing happens. the mp3 rocket folder is in music under shared lib

  • Why is iTunes 10.5.1 so freaking awkward?

    So my mum's friend has an iPhone 3G. She want's to download a ringtone to her phone and gets the message "Tones are not available on this device" and gets told they need iOS 5, which by the way, isn't available for her. So after long and tedious atte

  • Display description of query variable in selection screen

    Hi @ All. we have a query with a variable (..UVO_0currency_001D). In the selection screen of the query I see the technical name of the variable instead of the description "Currency". What and where I have to change to see the description of my variab

  • Serial number status EDEL ESTO in SD

    Hi guys, I already spent two days on searching a proper answer on serial number statuses. I have a problem with system status on serial number master data, when I try to put on delivery a serial number which was returned from customer. I get an error