Create custom NSObject through NSData

Hello experts,
I am a Java developer, now putting my steps into IPhone Development too.
In my IPhone Application, I have a Album class which is a direct subclass of NSObject class(having properties like albumID, albumName, numberOfPhotos, createdOnDate). i am retrieving data from a Java Servlet then setting the properties of Album Class one by one. It is all working fine.
Now i am thinking of getting direct Album Object from the java servlet through Object Serialization. I think i will be able to get the NSdata Object from NSMutableUrlResponse.
Then how to make Album Object from that NSData object ??
Can i implement a method like [[Album alloc] initWithData:NSData];
Please help me to implement this. Or tell me if this is just not feasible and the current approach (Get the NSdata from NSMutableURLResponse and Set the Album properties one by one) is better.
Thanks in advance.

hi, take a look a look at NSKeyerArchiver and especially it's classmethod archivedDataWithRootObject. You need to implement the NSCoding protocoll.
You also may take a look at http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/Archiving.ht ml

Similar Messages

  • Creating Custom fields which are sales org dependent in Accounts Master

    Hello Experts,
    I want to create new custom fields in Accounts Master for sales and shipping.The component being used is BP_SALES.However when I try to create custom fields through AET, the new fields are added in the BUILHEADER context node.The problem with this is, its making the fields Sales Org independent.
    I want to add the fields which are sales org dependent( i.e. want to add the fields for the context nodes BUILSHIPPINGTERMS and BUILSALESARRANGEMENT).
    Please help me in this regards,
    Thanks and Regards,
    Rahim
    Edited by: Abdul Rahim on Dec 27, 2010 9:55 AM

    Hi Rahim,
    in general extension fields for Business Partner are only supported for the header fields (Table BUT000). Therefore the AET does not offer this.
    Table extension for BP sales data is supported by the AET beginning from CRM 7.0 eHP1. If you have this you can just create a 1:1 table enhancements and should be happy. If not I'm afraid that you would have to implement this manually.
    Using the Easy Enhancement Workbench (EEW) it would only be possible to create table extensions for the header and for relation ship but not for sales data.
    Regards Matthias

  • How to create custom attributes & object classes through ldif files in OID

    Hi,
    I have to create 4 attributes and one object class(custom) in OID. I want to creae these attributes and object class through LDIF file.
    I tried creating an attribute through this command
    ldapadd -p 389 -h localhost -D cn=orcladmin -w password -f D:/newattr.ldif
    this ldif file contains inf. for creating a new attributes:
    dn: cn=subschemasubentry
    changetype: add
    add: attributetypes
    attributetypes: ( 1.2.3.4.5.6.10 NAME "xsUserType_new" DESC "User Type Definition" EQUALITY caseIgnoreMatch
    SYNTAX "1.3.6.1.4.1.1466.115.121.1.15" )
    I am getting error: Object class violation
    Failed to find add in mandatory or optional attribute list.
    Please help to find where I am going wrong...
    Thanks.

    Hi Ajay,
    Thank you for the help. Now i am able to create both attributes and object classes in OID through Ldif files.
    I was getting constraint violation error because (I think) I was not giving proper naming convection for attributes and object classes. For OID, there are certain Ldap naming conventions. They are as follows:
    # X below is the enterprise number assigned by IANA
    1.3.6.1.4.1.X.1 - assign to SNMP objects
    1.3.6.1.4.1.X.2 - assign to LDAP objects
    1.3.6.1.4.1.X.2.1 - assign to LDAP syntaxes
    1.3.6.1.4.1.X.2.2 - assign to LDAP matchingrules
    1.3.6.1.4.1.X.2.3 - assign to LDAP attributes
    1.3.6.1.4.1.X.2.4 - assign to LDAP objectclasses
    1.3.6.1.4.1.X.2.5 - assign to LDAP supported features
    1.3.6.1.4.1.X.2.9 - assign to LDAP protocol mechanisms
    1.3.6.1.4.1.X.2.10 - assign to LDAP controls
    1.3.6.1.4.1.X.2.11 - assign to LDAP extended operations
    By using these conventions for attributes and object class, I did got any error and they were created in OID.
    Thanks a zillion.
    Kalpana.

  • Problem when create customs BP number through PCUI

    Hi Experts,
    we are working on CRM 5.0 & EP7.0
    i have created custom function module (z function module) for generate the customs BP number( Dep country ,region) for BP t-code in GUI (CRM) System , when test through PCUI i can not get the PCUI field values like counry , region....so i cant generate the custom BP number depend upon the country and region,
    when user type the country,region,company name,city in PCUI
    how can i get PCUI field values ( country,region,company name,city)
    in GUI (SAP- CRM) System.
    PCUI field values ( country,region,company name,city) is not stored in ABAP memory, like
    1. CALL FUNCTION 'BUP_BUPA_MEMORY_GET_ALL'
    TABLES
    t_but000 = t_but000
    t_but001 = t_but001
    t_but0bk = t_but0bk
    t_but100 = t_but100
    t_but0cc = t_but0cc
    t_but0is = t_but0is
    t_but0id = t_but0id.
    2. CALL FUNCTION 'BUA_BUPA_ADDRESSES_GET'
    EXPORTING
    i_xall = 'X'
    TABLES
    t_address = t_add.
    this two function modules are not giving values when user enter the values in PCUI
    plz help me........
    thanks,
    Ganesh,R

    hi karthik,
    i am working in CRM 5.0 ,& PCUI
    i have created custom BP number depend upon country and region ( through PCUI ), it is working fine but when more then one user trying to create account( BP) by uing same country and region it is generating same BP number becoz they are press ENTER button after giving the input data in PCUI , if they press SAVE button it is creating new BP number.
    when user press enter button countron should not go to BP number generation coding..how can i do this?
    How can i identify user press ENTER button or SAVE Button?
    where event is trigring ?where they are calling the Events?
    i want to do when user press ENTER button it should not create BP number but user press SAVE button it should create BP number..
    how they are linking PCUI & SAP CRM-GUI?
    how can i do this ? plz help me..
    Thanks,

  • Problem when create custom BP number through PCUI

    Hi Experts,
    we are working on CRM 5.0 & EP7.0
    i have created custom function module (z function module) for generate the customs BP number( Dep country ,region) for BP t-code in GUI (CRM) System , when test through PCUI i can not get the PCUI field values like counry , region....so i cant generate the custom BP number depend upon the country and region,
    when user type the country,region,company name,city in PCUI
    how can i get PCUI field values ( country,region,company name,city)
    in GUI (SAP- CRM) System.
    PCUI field values ( country,region,company name,city) is not stored in ABAP memory, like
    1. CALL FUNCTION 'BUP_BUPA_MEMORY_GET_ALL'
    TABLES
    t_but000 = t_but000
    t_but001 = t_but001
    t_but0bk = t_but0bk
    t_but100 = t_but100
    t_but0cc = t_but0cc
    t_but0is = t_but0is
    t_but0id = t_but0id.
    2. CALL FUNCTION 'BUA_BUPA_ADDRESSES_GET'
    EXPORTING
    i_xall = 'X'
    TABLES
    t_address = t_add.
    this two function modules are not giving values when user enter the values in PCUI
    plz help me
    thanks,
    Ganesh,R

    hi karthik,
    i am working in CRM 5.0 ,& PCUI
    i have created custom BP number depend upon country and region ( through PCUI ), it is working fine but when more then one user trying to create account( BP) by uing same country and region it is generating same BP number becoz they are press ENTER button after giving the input data in PCUI , if they press SAVE button it is creating new BP number.
    when user press enter button countron should not go to BP number generation coding..how can i do this?
    How can i identify user press ENTER button or SAVE Button?
    where event is trigring ?where they are calling the Events?
    i want to do when user press ENTER button it should not create BP number but user press SAVE button it should create BP number..
    how they are linking PCUI & SAP CRM-GUI?
    how can i do this ? plz help me..
    Thanks,

  • Is it possible to create custom bookshelves in a dedicated reader?

    Hi. I just got a Pandigital 7" Novel eReader. It's connected to Barnes & Noble and it has an Adobe eBooks app too. In the B&N library, I am able to create custom bookshelves to more easily find my books. I figured out how to transfer my ADE books from my computer to the Adobe app on my eReader, but unlike the ADE on my computer, I can't figure out how to create custom libraries/bookshelves on the eReader. The libraries from my computer did not transfer along with my books. It seems my only choices are to view the books by date of installment or alphabetized by title. Since I've transferred over a hundred books so far, scrolling through to find the one I want, every single time, is getting frustrating. To make it even more complicated, when I'm in the title view, the title of some of the books is just a series of random letters and numbers, like SW000000931.epub. I think I read on another thread this issue is impossible to fix, but if I could make my own bookshelves in the eReader, I could just name the bookshelf the title of the book.
    Am I missing something obvious, or is there no way to create custom bookshelves/libraries for ADE books in a dedicated reader?
    Thank you so much for any advice.

    You can add a button using custom javascript. but this could potentially have performance issues. please test the performance and functionality if you implement a lot javascript
    see this link : http://helponmyproject.com/TTOCOD/
    Regards,
    Royston

  • Creating custom dynamic stamps in Acrobat 9

    I have Acrobat 9 Pro and I'm trying to create my own custom dynamic stamp.  I have the image in a PDF format and I can create  custom stamp out of it but I can't figure out how to add the dynamic fields.  It's pretty easy in Acrobat 8 but there's just no info on how to do it in 9.  I've gone through the web, lynda.com, and nothing.  Some from Adobe, please help wtih this!  Thanks.

    Something that may be of some help:
    http://acrobatusers.com/search/google/custom%20dynamic%20stamps?query=custom%20dynamic%20s tamps&cx=010702214422959725198%3Amrw4k197ftq&cof=FORID%3A11&sitesearch=#433
    Be well...

  • Hiding Customized fields through Config - T88M

    Hi,
    My system parameter is : ECC 6.0.
    As per requirement in my project, I have customized IT7 and added a new field - Annual Time . I am populating that field by default using some logic which wrote in the PBO of the newly created module pool and everything is working fine !!
    Query :
    Business wants this field to be displayed only for Ausy employees and not for Indonesian employees AND they want this to be done through config only. How can I do that ?
    What I have tried :
    I can very well go to the PBO and hide this screen reading the WERKS from PA1 for that employee but this is not what is reqd.
    They require to hide this using Infotype screen modification.
    When I go to SM30 and maintain the Infotype screen modification view : V_T88M and give the newly created module pool name : ZMPA0007 ...it doesnt list down the new;y created fields in this screen !! :-s
    So my query is - Is T88M can Only be used to hude standard fields and Not custom fields ?? If it can be used for custom fields also, please let me know how can I see my field there in the list ??
    Note : After creating the new field in PM01, I have assigned it to the standard MP00007 screen 2000. So now for all employees this std screen is getting displayed and also my little field at the end.
    I tried to modify the feature for this std screen and then I tried to create a new variable based on WERKS and assign some other screen 3000 for all employees and 2000 only for Indonesian employees, but it is not working ... at all the times the screen 2000 with my newly added field is getting displayed.
    What am I doing wrong or what do I need to do extra ?? or is it not possible to hide custom fields through Config I have to do it using coding only ??
    Experts, please put some light !!
    Many Thanks,
    Cheers.

    Hi Sourav,
    In table T588M create two entries for MP000700 with different variable key say according to the molga of the country one aus(xx) and other bagladesh(yy).
    Now make the field visible/invisible depending on the country req.
    Now go inside the entry, click on feature and give feature name as P0007. Now change the feature according and return the variable key what you assigned to the module pool.
    Take the help of functional people to change the feature.
    Br/Manas

  • RE: Need to create custom fileds in sourcing in SRM

    Hi All,
    I am working on SRM 4.0. I had a requirement where in Sourcing I need to add a custom field in the standard SRM shopping cart. The best approach is BADI as far as my know ledge is concerned.
    Can anybody help me out the procedure, which BADI to use or any other suggestion so that my issue will get resolved.
    Await your response.
    vishal

    Hi Vishal,
    To bring customer fields to the sourcing cockpit , you need to add those custom fields to shopping cart first and these fields will automatically show up in the sourcing cockpit.
    To add fields in the shopping cart you need to follow the steps given in the following blog:
    How to create custom fields in SRM
    To find out in which structures the field is to be included you can go through the following notes:
    Note 672960 - User-defined fields 2
    Note 458591 - User-defined fields: Preparation and use
    And after adding the fields in shopping cart you need to regenarate the sourcing screens so that the custom fields are dispalyed in the sourcing cockpit. For doing that the below given note:
    Note 632982 - Generation of the screens for the sourcing.
    Thanks,
    Pradeep

  • Creating Customer from employee who is hired in HR

    Hi
    Please tell me if there is some way to create customer records from employee record created in HR
    Is there any report or transaction available that will create a customer record by using/copying  the HR employee record without entering data again.
    regards
    Pravin

    Hi Pravin,
    let me correct you.
    As the employee codeand you can maintain sales related data  T-Code
    PA30
      and through info type 900 sales org.,sales office,sales group.
    You can use sales employee code as a partner means who has taken order or during return who is responsible for return delivery.
    You can create emloyee no. as vendor (FI & CO intgrtaion) e.g. for salary,travel advence,etc.
    Hope this will help you the role of employee id and integrtaion.
    Best Regards
    Sainath

  • Creating custom Category for Risk & Issue in Project Server 2013

    Dear All,
    How to Change Risk & Issue Category default as per business requirement when selecting them through drop down or radio button?
    I can do only Project wise from project site & then setting changes. But i want to customize it for all projects which are getting published in Project Server 2013. So doing manually every time project wise not making sense & consuming time also.
    Kindly help..

    I have created custom template but not getting as demonstrated in  blog
    post from Prasanna  specially
    end part where Risk, Issue n all content can be seen. In My case only simple 3-4 items can be seen apart from risk, issue etc.
    After that i saved this custom template to my
    one of EPT in Project Server 2013. But unable to customize my Risk & Issue Category options for all projects. However, i have gone through that post & unable to understand as described in 2010 & i am using 2013 version.
    Kindly let me know after saving custom Template
    to EPT how to move further to customize these risk & issue categories globally.!!

  • Best way to create custom reports

    Good Afternoon,
    I am completely new to UCCX 9 and Crystal reports, so double newbie. I have been attempting to create customs reports that will not be run by the Historical Reports. I've used the Historical Reporting Admin and Dev Guide along with the DB Schema pdfs, to no avail. Is there a better option? I've seen that the DB can be accessed via SQL applications. The reports that have been requested are rather complex (IMO),
    Number of calls accepted and abandoned, with available (Ready and Not Ready) Agents per hour vs scheduledI've been able to create this with two different reports
    Calls taken by Agent by hour and status through out the day including times spent in different Ready Codes, Talk times, hold times, etc.
    Essentially, can any one guide me to a better resource or option? I appreciate the help. Thank you.
    - Jose

    Hi,
    there's a number of solutions available, you may wish to browse the Solutions Catalog.
    Alternatively, you can build your own - there's a number of free and commercial solutions available. Personally, I prefer BIRT.
    G.

  • What is the best tool to create custom transaction on SRM 4?

    Hi. We are using SRM 4 and will need to build a new transaction, that users need to run from the ITS, that will allow the users to enter data and then send it to SRM when they submit the data.
    What is the best way of doing this?
    I don't want to use the WebGUI as that is memory intensive and does not look very good. BSP's look great, but how do the users call it from SRM like a transaction code? Does this mean that it would be best to do it as an internet service?
    Thanks a lot for your help.
    Regards,
    Dave.

    Hi,
    Time saving and simplest way would be to develop the transaction/report in SE38 and then jst provide a link in Web for the report/transaction so that users can execute that through web.
    If you are more concerned with the look and feel,then BSP would be best option .You may need to take help of BSP experts to find a way as to how to provide a ink in SRM web portal.I tried creating custom internet service in SRM 4,however couldnt execute it through the web.
    BR,
    Deepti.

  • MDM Business Partner 5.5 Not Creating Customer Master in SAP ECC

    Hi,
      I am importing Business Partner into ECC from MDM using XI with BP Business Content. This is done using proxy.
      The business partner is created sucessfully but the customer master table KNA1, KNB1 is not being populated.
       Does anyone experienced this before? Or has a solution for this?

    I am not creating customer in ECC. I am creating Business Partner,  this is because we are using IS-U which uses the BP instead of the Customer Master.
    So we are using the MDM BuPa to ABAP BuPa mapping.
    The thing about this is, when we run the transaction BP to create Business Partner, it automatically creates a mirror KNA1 record to match the business partner. But through MDM-XI proxy, it is not creating the record.

  • Create customer master in Web dynpro abap

    Hi Gurus,
    i'm new to web dynpro abap...
    My requirements is given below... which is the standard BAPI for create customer master data... then how to call workflow in web dynpro application without using portal server (uwl)... please reply as soon as possible
    1) Create customer master
    2) Change Customer master
    3) Display customer master
    4) When the customer master record is created it should trigger a workflow to another user for approval. Once approved, the customer master should be created in the system
    5)The customer master record creation should be through a bapi call.
    6) When the system master record is being created, duplication check should be performed for name, city, postal code,email I'd etc.
    Regards
    vijay.

    Dear Vijay,
    HAVE YOU GOT THE SOLUTION FOR THE ABOVE REQUIREMENT.. i TOO HAVE GOT THE SAME REQUIREMENT AND I CAME ACROSS YOUR THREAD.
    Please do reply with your answer.
    Regards,
    Sujit K karn

Maybe you are looking for

  • Why can't I deploy the NI-DAQmx 8.5 drivers with a Teststand installer?

    When I include the NIDAQmx 8.5 drivers with the deployment, it automatically checks off that I have to include Labview 7.1 runtime, which causes them to prompt me for the November 2005 driver CD. I insert this CD and get the errors saying that the Wi

  • IC WebClient startup error

    Hi all, When I launch IC webclient from SAP Standard roles after assigning to some users its working fine. But I created a new role and when i launch IC webclient form that role I am getting HTTP_COMMUNICATION_FAILURE error. Any authorization issue?

  • ERROR/ NOT VERIFIED Error WHILE LOGGING IN AZURE

    I have subscibed for a 1 month free trial 8 days before and used it well till yesterday....When I logged in yesterday it showed  me a message like  Error/ NotRiskVerified in the url...... and showing options like Sign out See options about how to ren

  • How to Import Transport Files to SAP System

    Hi Experts, I have installed BO XI R3.1 SP3 Integration tool kit for SAP Solutions with Java Connectors.Now i can able to see SAP after login into the CMC. I have installed prerequisites like SAP GUI,Xcelsius,BO XI 3.1 Enterprise. 1)Can you please te

  • How to find my missing ipad

    how to find my missing ipad?