Getting list of props from a prop list?

I need to loop through the properties in a property list. The
prop list is built dynamically so I don’t know what’s
in the list before I start. Is there a direct way of getting a list
of properties out of a property list? I suppose I could build a
linear list of property names at the same time I’m building
the actual property list but I would like to do this with just one
list if possible. The following example won’t work, but it
gives you an idea of what I’d like to do:
myTransportList = [#walk : ”free”, #car :
”expensive”, #plane : ”very expensive”]
repeat with myTransportType in myTransportList
myCost = myTransportList[symbol(myTransportType)]
end repeat
Thanks,
- Bob Gallo

How about a simple function that takes a propertyList as a
parameter and
returns a list of the proerties found in the list? That way
you don't have
to maintain a seperate list. You can just call your function
when needed?
on getListProps thePropList
returnList = []
repeat with i = 1 to thePropList.count
returnList.add(thePropList.getPropAt(i))
end repeat
return returnList
end

Similar Messages

  • Me and my dad share an iTunes account and all of his music he has purchased on ITunes shows up on my songs list with a cloud icon next to it. How do I get rid of these from my songs list? Cuz it's doing the same thing on my iPhone

    Me and my dad share an iTunes account and all of his music he has purchased on ITunes shows up on my songs list with a cloud icon next to it. How do I get rid of these from my songs list? Cuz it's doing the same thing on my iPhone.

    Go to Edit > Preferences > Store, and uncheck the box for "Show iTunes in the Cloud purchases."

  • F110: Why Payment Proposal List is different from Payment Settlement List?

    After running payment run for a European country, the process has been completed successfully.
    But checking the Payment settlement list, there are vendors that are not included here, but included in the Payment Proposal list. At first, I thought of the exception list, but its not.
    What may be the possible reasons on this difference?

    Hi ,
    May i know what exception fields you given in free selection tab.
    Did you select that Exclude values check box in free selection tab.
    As per my knowledge these option for exception for payments
    For exception of the payment we can block for payment through edit proposal
    May be this information is useful to you
    If you have anydoubt feel free to ask
    Regards
    Surya

  • Condition that checks the value of an Item derived from a select list

    I want to conditionally display and hide items in a region based on a select list item.
    Some items will display when the select list is at the default (%null%) and others will be displayed when the select list user selects from the select list.
    The display is then updated when the "SAVE" button is pressed and the page processed.
    How do I test the select list item to be null. The condition looks like this;
    Type: PL/SQL Expression
    :P1_SELECT is null
    I also tried, :P1_SELECT is not null and :P1_SELECT = '%nul%'.
    The latter changed the condition to :P1_SELECT = ''
    How can I test the valu in P1_SELECT?
    tia,
    Sam
    Message was edited by:
    After a long day I saw that I did not write the condition correctly. Mea culpa.
    slavanaway

    I had the problem wrong.
    The issue was a second field that could have a Y or N or null. When I checked it in PL/SQL expression as
    :P_YN != 'Y' and :P_SELECT is null
    assuming the null condition would resolve as != 'Y' I had to do an explicit check as
    (:P_YN != 'Y' or :P_YN is null) and :P_SELECT is null
    That fixed it.... I like null and I hate null
    Thanks for the reply

  • How to get the selected values from multiselected list

    Hi,
    I have a multiselect list displaying all the years from 2003 to 2008 (used dynamic LOV). The user can choose one or more years as per his needs, and then when user clicks on the link the selected values of the list are to be captured and a pop up page of a Discoveror report needs to be opened where these years get passed as a parameter. I tried several methods to capture the value, but either one or all are getting passed but not exactly what the user has chosen.
    This is how it looks:
    P2_FISCAL_YEAR is a multiselect list containing values from 2003,2004... 2008
    If user chooses 2004 and 2007
    then I want the url to capture these values and pass as parameters for my discoveror reports. as '&qp_fiscal_year=2004,2007'
    Any help is appreciated!
    Thanks in advance,
    Sapna.

    Hi,
    I have a multiselect list displaying all the years from 2003 to 2008 (used dynamic LOV). The user can choose one or more years as per his needs, and then when user clicks on the link the selected values of the list are to be captured and a pop up page of a Discoveror report needs to be opened where these years get passed as a parameter. I tried several methods to capture the value, but either one or all are getting passed but not exactly what the user has chosen.
    This is how it looks:
    P2_FISCAL_YEAR is a multiselect list containing values from 2003,2004... 2008
    If user chooses 2004 and 2007
    then I want the url to capture these values and pass as parameters for my discoveror reports. as '&qp_fiscal_year=2004,2007'
    Any help is appreciated!
    Thanks in advance,
    Sapna.

  • 10.1.3.3 ADF BC:How to get a value of from a LOV that uses a fixed list?

    Hi,
    I create a dropdowlist on a JSP based on a list of items I type in. It's called " fixed List" I think instead of dynamic list which is from a DB table.
    In order to add a valuechangedlistener to the dropdownlist, I need to get the real value of the selected item on the list. I've changed the autosumit to true. Use this line I can get an object of a FaceCtrlListBinding.
    FacesCtrlListBinding TdIter = (FacesCtrlListBinding)bc.get("LandLegalView1Td");
    When value changed, I get only get the new index of the selected item. I tried to use TdIter.getAttributeValue(index) and it returns me null. I also tried TdIter.getAttributeFromRow(index,"Td") and it returns me null, too.
    Could someone share some idea, Please? Thank you very much.
    Regards,
    Annie

    Frank,
    Thank you very much for your reply. I've set "valuePassThrough" property of the dropdownlist to true. In the valueChangeListener, my code looks like this.
    public void TD_valueChangeListener(ValueChangeEvent valueChangeEvent) {
    System.out.println("+++++++++");
    System.out.println("TD_valueChangeListener");
    Number n = null;
    BindingContainer bc = this.getBindings();
    if(bc != null){
    System.out.println("bc is not null");
    //get the selected TD
    FacesCtrlListBinding TdIter = (FacesCtrlListBinding)bc.get("LandLegalView1Td");
    if(TdIter != null){ 
    System.out.println("TdIter is not null");
    if(valueChangeEvent.getNewValue() != null)
    try{n = new Number(valueChangeEvent.getNewValue());}
    catch(Exception e){
    e.getMessage();
    System.out.println("selected TD index="+n);
    //Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");
    Object td = TdIter.getAttribute(n.intValue());
    System.out.println("real value of td=" + td);
    }else{
    System.out.println("TD is null");
    }else{
    System.out.println("TdIter is null");
    My question here is: I tried two ways of getting the real value of the new selected value. One is "Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");". The other is "Object td = TdIter.getAttribute(n.intValue());". None of them give me the new selected value but the old value. Did I do anything wrong?
    Regards,
    Annie

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • How to get the list of materials from Sap r/3

    Hi Experts,
    I have one doubt, here iam implementing
    HTTP TO RFC scenario.
    My doubts are------
    1. Should we create DT MT MI and all (OR) not
    2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
    3.Or the second thing is how to get the list of materials start with some alphabate.
    Please reply me for each and every questions mentioned above. Please clarify me.
    Helpful answers wil be rewarded.
    Reagards
    khanna

    Hi Khanna,
    <i> 1. Should we create DT MT MI and all (OR) not</i>
        Yes U need to create for HTTP site...for RFC U need to import..
    <i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
        You create your own structres for Request and respoce.. and Map it with RFC..
    <i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
        I think it will come with acending order....
      for more help go through this link
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    regards,
    Ansar.

  • How do I get all my pins (bookmarks) to show up on maps rather than choosing one from the bookmark list?

    How do I get all my pins (bookmarks) to show up on maps rather than having to choose from the bookmark list? I can see my list getting very large and more cumbersome to search. In google maps, all my starred locations show up on my map.

    Have you let Apple know you would like to see this feature? They do not participate in the forum, and their only source of user feedback is the feedback page. To let them know you would like to see a feature, go to the feedback page at www.apple.com/feedback and select the appropriate link.

  • How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album togeth

    How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album together on my iPod?  If the album is a collaboration wtih many artists, each sond may appear as a separate album.

    I used to have this problem.
    First, you need to go back on iTunes
    you need to go to each of the songs that are having this problem
    Click the album so all the songs drop down
    Right click the songs that have this problem
    Click ' Get info '
    Click the tab that says " info '
    The box that says ' album artist ' should probably be empty (correct me if I'm wrong)
    Click it and type the artist of the entire album, NOT the songs guest artist
    as such,
    ARTIST
    JAY-Z Feat. Justin Timberlake
    ALBUM ARTIST
    JAY-Z
    These should be separate for each artist
    If you write the same album artists for each song by that artist, all the songs should be on 1 album

  • How to get only custom fields from a SharePoint 2010 list?

    I am working with the Client Side Object Model. In a console application I am retrieving all fields from a custom list. The problem is the Clientcontext fetches me a bunch of internal fields I do not want to be included. Also this causes some of the fields
    to appear more than once.
    string siteURL = "http:XYZ";
    ClientContext context = new ClientContext(siteURL);
    Web oWebSite = context.Web;
    context.Load(oWebSite);
    context.ExecuteQuery();
    //Get the list by title
    List produktKatalogListe = spLists.GetByTitle("Produktkatalog");
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "<View/>";
    ListItemCollection listItems = produktKatalogListe.GetItems(camlQuery);
    context.Load(produktKatalogListe);
    context.Load(listItems);
    context.Load(produktKatalogListe.Fields);
    context.ExecuteQuery();
    foreach(Field field in produktKatalogListe.Fields)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Is there a way to print only custom fields? This would mean omitting fields like
    internalID, GUID...
    I tried the following:
    if(!field.Hidden)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Unfortunately this not only does not solve the issue but is also not a very good solution for the case I do want to display custom but hidden fields.
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki

    The following approach seems to solve the issue. Instead for checking if the field is not
    Hidden I checked whether it is not FromBaseType.
    if(!field.FromBaseType)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki

  • Getting list of cert from browser

    Hello,
    I would like to get the list of certificate in the different stores of my web browser (internet explorer, firefox, ...). I know how to get the list of certs from a java keystore, but I have no idea about getting list of cert from browser.
    Please help!
    Thanks

    A little tough.
    On Windows, you can use Windows-MY and Windows-Root storetypes to access those 2 stores in IE.
    For Firefox keystores, you can use the PKCS11 storetype to access the NSS keystore.
    Google yourself for details.

  • Getting list of items from one table indirectly associated with another

    I have a database containing 3 tables. One is a list of employees, one is a list of companies that are clients and another is the projects each employee is working on. The projects table is the only connection between the employee and the company. An employee is working on a project for a specific company. I need to find a list of companies someone is working for given the employee's ID. How would I do this? I've done direct queries before, but never anything that involves going through another table. I have an explanation of my tables below.
    Employee ------------- Project ----------- Company
    Name ------------------ Name --------------- Name
    ID -------------------> EmployeeID
    ------------------------ CompanyID ----------> ID

    I did something like this..It works for MS Access 2000 but not SQL Server 2000. (http://forum.java.sun.com/thread.jsp?forum=48&thread=270102)
    What I have is one main table, joined to 3 other tables, and each one of them have one category in common, and they are in a many-to-one relationship with the main table.
    The Function category in the main table is the same as the Function_Name category in the others
    For ex)
    Main Table
    Function Description Context Actions Notes
    sample blah blah blah blah
    Table 1
    Function_Name ArgName ID
    sample x 1
    sample y 2
    Table 2
    Function_Name Return_Codes ID
    sample z 1
    sample m 2
    sample n 3
    Table 3
    Function_Name Function_Called ID
    sample t 1
    What i needed to do was retrieve all these records from the different tables if I only had the value to the Name field.
    This is the code I used:
    <code>
    String dataSourceName = "<fill in your dataSourceName>";
    String dbURL = "jdbc:odbc:" + dataSourceName;
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch (Exception e){System.out.println("Couldn't connect to driver.");}
    try{
    Connection con = DriverManager.getConnection(dbURL, "","");
    Statement stmt = con.createStatement();
    //gui3.staticName is the data in the Function or Function_Name Field
    ResultSet result = stmt.executeQuery("SELECT * FROM function_description WHERE (((Function)='"+ gui3.staticName + "'));");
    while(result.next()){
    function.setText(result.getString("Function"));
    description.setText(result.getString("Description"));
    notes.setText(result.getString("Notes"));
    actions.setText(result.getString("Actions"));
    context.setText(result.getString("Context"));
    ResultSet result2 = stmt.executeQuery("SELECT Return_Codes FROM return_code_description WHERE (((Function_Name)='"+ gui3.staticName + "')) ORDER BY Return_Codes ASC;");
    while(result2.next()){
    rCodes.addElement(result2.getString("Return_Codes"));
    ResultSet result3 = stmt.executeQuery("SELECT ArgName FROM Arg WHERE (((Function_Name)='"+ gui3.staticName + "')) ORDER BY ArgName ASC;");
    while(result3.next()){
    args.addElement(result3.getString("ArgName"));
    ResultSet result4 = stmt.executeQuery("SELECT Function_Called FROM Function_Called WHERE (((Function_Name) = '"+ gui3.staticName + "')) ORDER BY Function_Called ASC;");
    while (result4.next()){
    fcall.addElement(result4.getString("Function_Called"));
    }catch (SQLException e) {System.out.println(e.getMessage());}
    </code>
    So when you get the ID can't you Select the data from the products table that matches it, and then take the Name field for that and search for it in the Company table? I think you can do embedded search statements. another way would be
    Select <blah>
    while(result.next)
    Select <blah>
    hope this helps

  • Getting a list of files from a shared directory

    Hi All,
    I need to get a list of files from a shared directory on another server and put them in a HTMLB TableView element with links to the files.
    I was not successful with CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES. This method works in test mode, but gives me a gui_not_supported exception in BSP. I guess BSPs are not allowed to use this.
    Is there any other alternative?
    I need to be able to upload the files as well.
    Thanks,
    Roman
    Message was edited by: Roman Dubov

    Hi again,
    Not sure about the shared directory files list...
    In my opinion, this cannot be done using BSP.
    But, you can try using VBScript to access the file system with object of that sort :
    CreateObject("Scripting.FileSystemObject")
    it is only a thought and you can be sure to cross security problems by accessing files through a Web application...
    Best regards,
    Guillaume

  • Get site collection url, site url and list url from a full uri?

    If I have incoming: only URI's of the format http://a.b.c/d/e/f/g/h/i/j/k/l/m/n/o/p.docx
    (And these are coming from multiple farms and multiple site collections) (and i have a web api on some remote server) (and have all the authentication details)
    And I want to query just the single the item via csom : check one column and if value="yes" then download the doc:
    a. how do i get the absolute site url out of it for " clientcontext ctx = new clientcontext(THISURL) "
    b. how do i then get the list uri out of it to push a caml query to to then retrieve it
    I could :
    a. strip off the filename, that is the easy part :)
    b.  I could paste "/_api/contextinfo" behind it and POST it first as a httprequest. Then first get the site and web url and later on
    find a way to find the list url (which is probably the first item behind the fullWebUrl), but it seems weird to mix this in the mix
    Basically im looking for something that tells me what is what in http://a.b.c/d/e/f/g/h/i/j/k/l/m/n/o/p.docx

    Sorry, GetList is only available in the O365 version of Microsoft.SharePoint.Client. If you could test for a root site collection and if there is not one then take the scheme ... + Uri.segments[0] and then get the context. After that you can use
    the GetFileByServerRelativeUrl. The following demonstrates this.
    public static void GetFileList()
    string fileUrl = "http://basesmc15/teamonesubone/teamsubonesubone/Shared%20Documents/folderholder/newauthor6.pdf";
    Uri fileUri = new Uri(fileUrl);
    Uri webUrl;
    ClientContext rootContext = new ClientContext(fileUri.Scheme + Uri.SchemeDelimiter + fileUri.Host);
    webUrl = Web.WebUrlFromPageUrlDirect(rootContext, fileUri);
    ClientContext subContext = new ClientContext(webUrl.ToString());
    File file = subContext.Web.GetFileByServerRelativeUrl(fileUri.AbsolutePath);
    List list = file.ListItemAllFields.ParentList;
    subContext.Load(list);
    subContext.ExecuteQuery();
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

Maybe you are looking for

  • How do I move iPhoto photos to new iPhone?

    I have photos from my 3GS in iPhoto. Can I move some of the photos to my new 4S?

  • Connecting a G4 Quicksilver to wireless

    I have just recently purchased an Airport Extreme Base Station. My G4 does not have wireless capability. My intent is to keep the G4 "hardwired" through the Base Station and have wireless capability for my kids' laptops when they visit as their lapto

  • RFC Not found from the Third party system

    Dear Friends, I have customized a RFC, All components are active. When I am searching the RFC from third party system this RFC is not able to find, others are showing. What could be the reason..../ Thanks & Regards

  • What's the concept?

    Hi all... iM a newbie to using this SOAP application...and I don't really like using this thing. iM doing this school project here using this SOAP and it's a very complicated process... Errors are prone to occure. Don't really understand the usage an

  • Work Book Favorites

    Hello Experts, I have a workbook saved as a user favorite that is referencing a query that no longer exists. This workbook is has all the right drill downs. Is it possible to keep the workbook template but point the query to the new one without havin