Product list with ids?

How do you create a product list with id in a plist?

Hi--
You'd do it like you would any other information you'd put in a plist: create a list of key/value pairs:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>1</key>
<string>First Product Name</string>
<key>2</key>
<string>Seconds Product Name</string>
</dict>
</plist>
If you save that plist as a file named Products.plist and make sure it gets copied to your application bundle, you can get your values like this (not tested, but I think it should work):
NSString *path = [[NSBundle mainBundle] pathForResource:@"Products" ofType:@"plist"];
NSDictionary *products = [NSDictionary dictionaryWithContentsOfFile:path];
// get product 1
NSString *productName = [products objectForKey:@"1"];
The last line might need to be (my only tested code with a plist is actually more complicated):
NSString *productName = [[products objectForKey:@"1"] stringValue];
That's a pretty simple example, but you can get fancier if you want with arrays and such. But I'd need more information on what you want to store in order to give better advice...
charlie

Similar Messages

  • Google product listing ad campaigns are not opening with Firefox

    I have a Google Adwords account with Product Listing Ads. Everything was working fine on 10/31, however today, 11/3, the Product Listing ad campaigns are no longer openings and the cursor just spins.
    I have contacted Google regarding this problem and they are able to fully access the account. I have also tried my account on another browser with no problems. Can you please tell me what update was made in the past couple of days, or what I need to do so that I can fix this?
    Thank you.

    This issue can be caused by corrupted cookies or cookies that are blocked.
    *check the permissions on the about:permissions page and in "Tools > Page Info > Permissions"
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-require-passwords
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Regarding list with material no and material class per product

    Hi All,
    Could you please tell me ,Is it possible to create a list with material no. and which material class is linked to each product?
    E.g.  7510555 (plant DK10 - sales org. DK01) Class type Z01 - ESTORE and SATTSTORE + class type 001 - CHEMICAL PRODUCT and DK_FD_SALG.
    Can you inform me in which table I can find the information.
    thanks in advanse!
    With regards,
    Pritee.

    Try transaction CL30N, CL31, CT10, CT12.
    Best Regards, Dirk

  • Report for Production orders with name of Customers

    Dear Expert,
    Kindly suggest to view the production orders with customer numbers for which the sales orders is created.
    I tried in MB51 with layout settings but the customer number comes out be blank despite the sales order number is populated for an production order.
    Kindly suggst a way or any report in the system  to get the corresponding information of production order number and corresponding customer name mentioned in the sales order .
    Thanks in advance for your help and inputs..
    Best regards,
    Nitish jain

    Nitish,
    MB51 is a Material Document list.  Many production orders exist that have no entries in this report, so it would be an unlikely candidate to be a solution for your requirement..
    The standard production order reporting tool is COOIS.  The output for MTO orders can be configured to display Sales order and Item and Soldto.
    Obviously, displaying even the customer order number in COOIS is impossible in a MTS scenario.
    In addition, a user experienced in using SAP Query  (SQVI or SQ01/SQ02/SQ03) could also create a production order report without having to know ABAP, by properly linking tables AFKO, AUFK, AFPO (production order data) with VBAK (sales order header data) to get customer number, and KNA1 to get customer name..
    If you are not expert in SAP Query, I suggest you discuss this requirement with a local ABAPer.
    If you are feeling like educating yourself in the wonders of SAP query, try this doc.  Although old, SAP query hasn't changed very much since this document was written.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    Rgds,
    DB49
    Edited by: Dogboy49 on Apr 20, 2010 10:47 PM

  • Can I share my contacts list with family members?

    can I share my contacts list with family members in the same way as sharing tunes and photos? If so how do I go about setting this up?

    Perhaps you should read these Apple documents about what is stored by iCloud.  The following is from this Apple document: iCloud: iCloud storage and backup overview:
    Your iCloud account includes 5 GB of free storage for iCloud Mail, Documents in the Cloud, and your iOS device backups. Your purchased music, apps, books, and TV shows, as well as your photo stream, don’t count against the 5 GB of free storage ........
    Here’s what iCloud backs up:
    Purchased music, movies, TV shows, apps, and booksPurchased music isn’t backed up in all countries. Purchased movies and TV shows are backed up only in the U.S. Previous purchases may be unavailable if they have been refunded or are no longer in the iTunes Store, App Store, or iBookstore. Some previously purchased movies may not be available in iTunes in the Cloud. A movie’s product details page in the iTunes Store shows if the movie is unavailable.
    Photos and videos in your Camera Roll
    OT

  • Why do I see products I don't own in the My Products List?

    I logged into my Apple account and was in the process of verifying the list of products I own when I noticed that there are 3 iPhone 4S serial numbers on the list.  I've only owned 1 iPhone 4S and the other two aren't mine.  I've never bought other iPhone 4S phones other than the one I previously owned which I've since sold. 
    So I have two questions:
    1 - Since I sold one of the phones, I didn't know there was a My Products List which had the S/N of the phone I sold.  I sold this phone well over a year ago and the woman who bought the phone in another state, has been using it without problems.  I know since she emailed me to confirm that she had no problems with the activation.  So if she's the owner, is it best to leave this phone on My Products List or should I remove it?
    2 - Regarding the other two phones I've never owned, how did these get onto My Products List?  And, if they're registered to me on this site, what does that mean?
    Thanks in advance.  This is really concerning.

    1. No device gets removed unless you remove it. So, since you sold the phone and the person has no problem using it, remove it.
    2. No idea why there would be anything listed you do not own. I'd simply remove the items, but if it concerns you, I'd suggest stopping by your nearest Genius Bar and show them the items listed and ask them if someone can figure out how they got there.

  • Massive creation of Top N List with BAPI BAPI_PPR_MAINTAIN

    Hello guys,
    We want to create massively Top N List (with its positions and Target
    Groups) in CRM, all in one step.
    We are using the BAPI BAPI_PPR_MAINTAIN to create a Top N list
    with its products and Bussines Partners by a code program.
    We have already saved a Top N List, however, when we assign the
    products and we indicate Reference Type "1 Product (0)", the system
    doesn´t discriminate the rest of the data by this value. Instead of it,
    the system validates the Reference Type "88 Rule (0) - Rule Product
    (0)". As a consequence, the system asks for a Rule ID which we don´t
    have.
    Finally, we got the message error: "CRM_PRP_CUST 003 Error trying to
    read the Customizing Table CRMC_PRP_RULE_I;RULE_TYPE=PC".
    The same problem is repeated with the Business Partner position. When
    we indicate the name of our Target group, we got the
    error "CRM_PRP_CUST 003 Error trying to read the Customizing Table
    CRMC_PRP_RULE_I; RULE_TYPE = PA".
    We don´t understand why this BAPI behaves wrongly. It mustn´t verify if
    all the fields in the BAPI are filled, because there are data scenarios
    in where is necessary to fill only some fields. Those data entries do
    have be there accordingly to each other.
    Are there possibilities to jump those "extra" verifications? Will this BAPI work
    to create Top N List?
    Do you know another BAPI, function module, program, etc. that we could use in order to create Top N List massively?
    Thank you for your help!
    Andrea

    Hi,
    I think that your WBS hierarchy structure is incorrect.
    Activate error log for BAPI_PROJECT_MAINTAIN using:
    METHOD_PROJECT-OBJECTTYPE = 'Trace'.
    METHOD_PROJECT-METHOD = 'Create'.
    METHOD_PROJECT-OBJECTKEY = FILENAME.
    APPEND METHOD_PROJECT.
    If you would like to see how such hierarchy structure should be coded you can first read hierarchy for existing project using:
    CALL FUNCTION 'BAPI_PROJECT_GETINFO'
    EXPORTING
    PROJECT_DEFINITION = PROJECT_DEFINITION-PROJECT_DEFINITION
    IMPORTING
    RETURN = RETURN
    TABLES
    E_WBS_HIERARCHIE_TABLE = WBS_HIERARCHIE_TABLE.
    Krzys

  • We have CS5 installed on a workstation, we have the products registered with Adobe.  We are going to be replacing this workstation and reinstalling CS5 on the new workstation.  Do I need to unregister the product in order to be able to reinstall it on a n

    We have CS5 installed on a workstation, we have the products registered with Adobe.  We are going to be replacing this workstation and reinstalling CS5 on a new workstation.  Do I need to unregister the product to be able to install it on the new workstation.  If so, how do I do this?
    Thanks

    you should deactivate (help>deactivate) that installation on the old workstation.  then download and install on your new work station using your serial number.  (ie, make sure you can find your serial number - if you need help with this, let us know.)
    Downloads available:
    Suites and Programs:  CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How to add new fields to CRM contract Product List tab?

    Hi all!
    I would like to add a new custom field for CRM contract (CRMD_BUS2000121) item level, on the Product List tab.
    Here I found CRMT_0100A_ORDPRP_I_EXT_UI structure, therefore I enhanced this with new append structure and new fields.
    I also added the new fields to ORDPRP_I append structure and mapped the new fields in CRMC_MAP.
    For some reason the new fields are on the screen but they are grey, not changeable. What did I do wrong?
    Thanks,
    Tamas Pentek

    Actually for the new IC webclient UI you have need to take a look at your options:
    1.  New Installation:
    Use the EEWB and add the fields.  As part of the EEWB work, you will have a couple of post-processing steps where you will add your generated fields to the new screens.  However this doesn't require any programming.
    2.  Upgrade from CRM 4.0/50
    - New fields to add as part of upgrade
    See the directions for new installation
    - Existing fields to add as part of upgrade
    --See the blog on the 40/52 CUSTOMER_H migration for transaction fields
    --Business Partner fields part of BUT000 available via UI configuration tool, no extra work needed
    --Business Partner fields part of tabular extension, manual work required, I am still "perfecting" this method and plan on writing a blog once I have the technique finished.
    --Product Attributes - use the transaction CRMM_UI_PROD_GEN and CRMM_UIU_PROD_CONFIG
    I know CRM 2007 is based on the same tech foundation as 2006s, with some differences in how the UI tool works and the fact there are some screen layout changes(editable overviews).  The extension procedures are generally the same.  I can answer some of you extension questions based on my work with CRM 52 so far.  It will generally apply to your situation.
    BTW:  The PCUI is no longer supported in CRM 2006s and above.  Even the old SAP GUI transactions such as BP, COMM_PRODUCT are removed from the standard CRM menu.   The SAP CRM web client should be used instead now.
    Take care,
    Stephen

  • Do the Refurbished Products come with software

    Do the refurbished products come with Leopard and iLife '08

    I've checked the current offerings today and all have the mentioned software is in place. When you see the list of Refrbished MacBooks, click +learn more+ and they are listed in the far right column. [HERE|http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID? nplm=FB063LL/B] is an example. Scroll down the page focusing on the right column to see that Leopard and iLife '08 are included.

  • Update select list with dynamic LOV

    How exactly do you do this?
    Currently I have a text field which the user may enter a product type and a button when click. It would populate the select list with the product names that associate with that product type...
    My lov would retrieve the product type value text field(:P1_t_prod_type) and get products names by type
    select t_prod_name A , t_prod_name B
    from t_prod_items
    where t_prod_type = :P1_t_prod_type
    order by 1Im kind of stump on is setting up my dynamic action to "set value" to the select list. As nothing seems to be appearing.

    product type is a numeric value that can be a wide numeric range. (I don't know why the column is named like that. Sorry for forgetting to mention that)
    Well I don't think i should submit the page? because after the list box is filled with product names. the user can then select one of those names from the list box and continue completing the rest of the form. After all that the page would then be submited. (Well that's how i imagine it to work...)
    Wouldn't i run into problems if i were to submit the page twice... like lost entry in other text fields if the user were to skip that part at the start.

  • Pull list with 2 step transfer

    dear SAPper,
    We use pull list in the stock transfer,because the distance of staging area and raw material sloc is quite far (different block building) we must use two step movement type for transfer (303)
    The inventory will post the reservation from pull list with mvt 303 into good in transit from raw material (1010) to 1020(staging area)
    But some case is when the production order quantity increases and the production people create again pull list.
    here is the problem :
    the good is still in good intransit for staging area, pull list still create the whole quantity without consider that there is good in transit in staging area
    the pull list should only create the remaining increases because some is already availablt in good in transit
    is there any idea for the solution?
    best regards,
    freddy ha

    no solution

  • Creating Select List with multiple columns

    I want to create a select list with multiple columns. I followed the demo application model described in the by Denes Kubicek (Currently my reference for APEX !!)
    The code is as follows:
    CREATE OR REPLACE FUNCTION getcrops(p_cropid IN NUMBER)
    RETURN VARCHAR2
    IS
    v_cropid VARCHAR2 (400);
    v_fcode VARCHAR2 (400);
    v_product VARCHAR2 (400);
    v_var VARCHAR2 (400);
    v_fname VARCHAR2 (400);
    v_acres VARCHAR2 (400);
    v_style_start VARCHAR2 (400);
    v_style_end VARCHAR2 (400);
    v_return VARCHAR2 (400);
    BEGIN
    FOR c IN (select "CROP"."CROPID" as "CROP ID",
         "CROP"."FIELDCODE" as "FIELD CODE",
         "CARROTPRODUCTLIST"."CARROTPRODUCTNAME" as "PRODUCT",
         "VARIETYLIST"."VARIETYNAME" as "VARIETY",
         "FIELD"."FIELDNAME" as "FIELD NAME",
         "CROP"."SIZEINACRES" as "ACRES"
    from     "FIELD" "FIELD",
         "CARROTPRODUCTLIST" "CARROTPRODUCTLIST",
         "VARIETYLIST" "VARIETYLIST",
         "CROP" "CROP"
    where "CROP"."CARROTPRODUCTTYPE"="CARROTPRODUCTLIST"."CARROTPRODUCTID"
    and     "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
    and     "CROP"."FIELDID"="FIELD"."FIELDID")
    LOOP
    v_cropid := TO_CHAR (c.'CROP ID', 'FML999G999G999G999G990');
    v_fcode := c.'FIELD CODE';
    v_product := c.'PRODUCT';
    v_var := c.'VARIETY';
    v_fname :=c.'FIELD NAME';
    v_acres :=c.'ACRES';
    FOR i IN 1 .. 12 - LENGTH (c."CROP ID")
    LOOP
    v_cropid := v_cropid || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD CODE')
    LOOP
    v_fcode := v_fcode || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'PRODUCT')
    LOOP
    v_product := v_product || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'VARIETY')
    LOOP
    v_var := v_var || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD NAME')
    LOOP
    v_fname := v_fname || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'ACRES')
    LOOP
    v_acres := v_acres || ' ';
    END LOOP;
    v_return := v_cropid || v_fcode || v_product || v_var || v_fname || v_acres;
    END LOOP;
    RETURN v_return;
    END;
    I created this anonymous Pl/SQL function at a application level ..Then I followed up to create a select list with a function inside. However I could not create select list with the command suggested in the demo which is
    select getcrops(cropid) d, cropid r from crop;
    APEX (2.1) returns a error message. What am I missing ? Should the function be called from somewhere else after creating a regular select list..? Where the functions (Pl/SQL) should be ideally stored for application level access..? and for across application level access ? How can I check the function works good. Help is appreciated.

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • How can I display favorites products list as table?

    When I insert favorites list module on a page,
    {module_favorites,i,27,0}
    it renders them as <li> (one per row).  I want them to render as the product list. (Several products per row).
    {tag_productlist,3,,6,alphabetical,true,false}
    How can I do this?
    Also, if I want to insert all products with a certain tag in a page (that is not the Catalog page), It renders as list, not as table.  This is the module I called: {module_productfeaturelist,store,4,Default,,true}

    No - I still can't make it work. Tried a lot of different things but it's like theres only one LI in the list, containing all the items added to the fauvorite list.
    I tried to remove the classes, and this is how it looked in Firebug:
    <div id="favourites">
    <ul>
    <li id="catProdTd_5244310">
    <link type="text/css" rel="stylesheet" href="/css/style.css">
    <div class="hproduct">
    <link type="text/css" rel="stylesheet" href="/css/style.css">
    <div class="hproduct"> <link type="text/css" rel="stylesheet" href="/css/style.css">
    <div class="hproduct">
      <link type="text/css" rel="stylesheet" href="/css/style.css">
    <div class="hproduct">
    </li>
    </ul>
    </div>
    I don't know how to target the LI's inside the module?

  • Report for display the list with details of quantity stock order etc

    Can anybody give the code to display a list with details of quantity stock for specific materials in specific plants or storage locations based on the input values like plant, storage location, material and product hierarchy entered on the selection screen?

    Yes it is possible.
    we can try doing this by user exsits. with one of our client we have added a new tab in MIGO transaction.
    For details on user exsits user below links
    Check out the below links
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    here is the user exit examples..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef
    all the user exits for sd
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/sd%2buser%2bexits
    Regards

Maybe you are looking for

  • Colors in acrobat different from photoshop/indesign

    In Photoshop I use a 'Europe Prepress 3' color setting for my images. In Indesign I use the same color settings. 'Europe Prepress 3' for RGB and Coated FOGRA 39 (ISO 12647-2:2004). The image looks the same in Photoshop as it does when placed in an In

  • PowerPoint in iPhoto

    How do I import PowerPoint slides into iPhoto? I want to burn a dvd on it to play on other computers so I don't have to transport my MAC on vacation. Thanks. Any help is appreciated.

  • Uninstall & install iOS5 on iPhone4

    I have an iPhone4 having size of 8GB. When I connect iPhone to iTunes, It shows me total space 6.37 GB. Q.1 ) If apple says 8GB, where is the remaining space then ? It should specify somewhere that 1.73 GB being used by iOS system. Why is not specifi

  • Are LabVIEW OOP "Helpers" modifiable?

    I am finally "byting the bullet" and attempting to refactor one of my Projects to use LabVIEW OOP (it seems to me ideally suited for OOP-ifying). But I have a few "picky issues".  I don't always like the way LabVIEW "helps" me.  Some things I can cha

  • Just trying to get Licences before we upgrade our voice servers.

    Can anyone explain the procedure to procure the licences.  I know about the Cisco product upgrade tool.  I understand that this will get me the software that I need  but dose it have anything to do with licenses?  If so how?