How to create a Custom UIView and How to instantiate that ?

How to create a Custom UIView and How to instantiate that ?
In Flash, all we need to do is create a MovieClip and assign it a class name in the library.
Instantiation is a simple matter of:
var newclass:CustomClass = new CustomClass({initialization_data:1652});
addChild(newclass);
At this current point in time, my understanding of creating custom UIView in xcode is limited to the understanding that you have to:
1: Forward declare the class in the header.
2:
]newclass *CustomClass in @interface's {}
and THEN
@property (nonatomic, retain) newclass *CustomClass;
in the header file also.
3: Nib initialization in the implementation file in viewDidLoad and do "addSubview".
==============================
Based on my limited understanding at this point, I find the need to
@property (nonatomic, retain) newclass *CustomClass;
at the header somewhat limiting...as it denotes you must know how many instance you will create in the application before hand.
I believe I am wrong here, hence, my question is, how do I add custom UIViews with initialization codes in real time ?

hi,
one workaround i could think of is using the CM views to search for content that belongs to a category and display it in a custom way.
http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc904/wwsbr_api_view.html
this only allows you to search for the meta-data available in the CM views but not the content of an item that is available when doing a search.
in the next major portal release we will have a publich search API that can be used for these type of requirements. you can execute your search and format the results in the way you want.
regards,
christian

Similar Messages

  • How to create a job card and how to add waranty card in sales order

    I have one scenario for CS.the scenario is realted to automotive industry. Basically its a trading industry of HCV,MCV,LCV apart from that they will do servicing also. First the customer comes for a service.he is having free services. he will have waranty for spare parts of the vehicle. once he comes for servicing first the executive will take complains from the customer after that a Job card will be issued to the customer. there his chasis no ,engine no and registration no will be there. once enter the chasis no entire customer details has to come. how many free services he is having for how many kilo meters.then job card will go to the spare parts dept.that dept will issue the spare parts.then they will invoice the customer. he will pay the payment.and finally the gate pass will be given to the customer to deliver the vehicle.
    painful area is how to create a job card and how to add waranty in sales order.
    Regards,
    Venkat

    Hi,
    Have u resolved it then Please let me know !!! It is a very interesting problem and owuld like to know the solution...
    Regards
    Krishna

  • Plz tell me how to create authority check objects and how to usein prg

    dear sir,
    plz tell me how to create authority check objects and how to usein prg

    http://help.sap.com/saphelp_46c/helpdata/en/5c/deaa74d3d411d3970a0000e82de14a/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/52/6716a6439b11d1896f0000e8322d00/content.ht
    Create custom authorization – Customer specific object
    If you have requirements that cannot be met using the P_ORGIN and P_ORGXX authorization objects (for example, because you want to build your authorization checks on additional fields of the Organizational Assignment infotype (0001) that are customer-specific), you can include an authorization object in the authorization checks yourself.
    Create the authorization object using transaction SU21. Make sure you keep to the customer name range (Z/Y). To be able to use the new authorization object you have created in the master data authorization check, the object must contain the INFTY, SUBTY, and AUTHC fields. You can use any of the fields of the Organizational Assignment infotype (0001) for the other fields. You can also use customer-specific additional fields provided they are CHAR or NUMC type fields.
    After you have created the object, you must start the RPUACG00 report. This report overwrites the MPPAUTZZ standard include with the code that is needed to evaluate the authorization object you created. Note: Technically speaking, this involves a modification. However, SAP fully supports this procedure. And you should not have more maintenance work as a result of this modification.
              Note: that if you use customer-specific authorization objects, you must maintain these objects in transaction SU24 (Maintain Assignment of Authorization Objects to Transactions) in the same way as you maintain the authorization objects P_ORGIN, P_ORGXX, and P_PERNR
    AUTHORITY CHECK OBJECT Object_name
                ID fieldname1 FIELD fieldvalue1
                ID fieldname2 FIELD fieldvalue2
                ID fieldname3 FIELD fieldvalue3.
                 If sy-subrc eq 0.   "Authorization exists
                 Endif.
    http://articles.techrepublic.com.com/5100-6329_11-5110893.html
    Edited by: JackandJay on Jan 16, 2008 10:21 AM

  • How to lock a customer master and how to make a parameter checkbox as defau

    how to lock a customer master and how to make a parameter checkbox as default checked?

    The Account Groups is the one which maintains the field status for the customer master. In case you want to change the field status (i.e. changage the mandatory field to optional field) you need to maintain the same (i.e. changage the mandatory field to optional field) by navigating to the field status screen and then to the general data tab. Here you can change the status of the your field by selecting the 'OPTIONAL' radio button for the respective field and then save the transaction.
    Reward Points if useful.

  • How to create a custom report and include multiple extended CRM database?

    I have created a number of CRM databas extensions and applied all there fields to my contacts and cases.
    I might have for example:
    - Additional address details
    - Business information
    - Quote Details
    - Trade Referees
    I know how to run a custom report and that I can select any one of these extra CRM databases as a filter and included them in the report. Is there a way though to add more than one (preferrably all) of the extra CRM databases to the report?
    The onely ways I can see it work is by either include all fields in one extra CRM database (not ideal) or bu running multiple reports and merge them somehow in Excel.
    Is there another way that I am not aware off?
    Thanks for your help,
    Jerun

    Hi Jerun,
    There's no way to do that. You'll need to run separate reports and merge them in Excel.
    -m

  • How to create the custom method and make it available to clients:

    Hello, Can any one help me with this problem ASAP??
    I am trying to work on an example of "Customizing the Query and Creating an Associated Custom Method"
    from http://helponline.oracle.com/jdeveloper/help/topics/jdeveloper/developing_mvc_applications/adf_pviewcustommethod.html?tp=true#method. To do that, the first task is to create the custom method and make it available to clients.
    Following instructions in the helponline documentation, I completed the three steps: (1) "Specify a custom query for the View Object definition for EmployeesView", (2) "Add the custom method to the application module Java class", and (3) "Make the method available to clients".
    The following is the error message I got to test the application module. Can anyone tell me what the message really means and what I should do. I am wondering if there is any mistakes in the document.
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: SELECT Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.EMAIL, Employees.PHONE_NUMBER, Employees.HIRE_DATE, Employees.JOB_ID, Employees.SALARY, Employees.COMMISSION_PCT, Employees.MANAGER_ID, Employees.DEPARTMENT_ID FROM EMPLOYEES Employees WHERE Employees.SALARY > :1 and Employees.DEPARTMENT_ID = :2
    ----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-01008: not all variables bound

    You need to set values for the parameters in your query before you try to execute the query in the view object.
    So you need to call the setBindVars method before the query.

  • How to:Create a blank document, and how to make a font available for editin

    Two questions:
    1: How do I create a new PDF document? All I see is to create from an existing document or scanner. If I'm creating something from scratch, do I really have to load an existing PDF, delete everything and then start my new document? That's the way it seems, which is nuts!
    2: I have tried to edit the text in a document. I did not not create it, but it is open to editing. The font used in the document is "Arial", a very common font that comes with windows. The font is installed and I use it all the time in other Adobe apps. However when I try to edit a ducument using that font, I get a message that "the font is unavailable for editing" and it substitutes some random font. So why is it not available, and how do I make it available?
    Thanks!
    I'm using Adobe Acrobat XI Pro v.11.0.10 with Adobe Creative Cloud 2014 and Windows 7, all shown as up to date.

    For the first item...
    Here is a sample from the Acrobat SDK - JavaScript section:
    trustedNewDoc = app.trustedFunction( function (nWidth, nHeight)
            app.beginPriv();
                switch( arguments.length ) {
                    case 2:
                        app.newDoc( nWidth, nHeight );
                        break;
                    case 1:
                        app.newDoc( nWidth );
                        break;
                    default:
                        app.newDoc();
            app.endPriv();
        app.addSubMenu({ cName: "New", cParent: "File", nPos: 0 })
        app.addMenuItem({ cName: "Letter", cParent: "New", cExec:
            "trustedNewDoc();"});
        app.addMenuItem({ cName: "A4", cParent: "New", cExec:
            "trustedNewDoc(420,595)"});
        app.addMenuItem({ cName: "Custom...", cParent: "New", cExec:
            "var nWidth = app.response({ cQuestion:'Enter Width in Points',\
                cTitle: 'Custom Page Size'});"
            +"if (nWidth == null) nWidth = 612;"   
            +"var nHeight = app.response({ cQuestion:'Enter Height in Points',\
                cTitle: 'Custom Page Size'});"
            +"if (nHeight == null) nHeight = 792;"
            +"trustedNewDoc(nWidth, nHeight) "});
    Copy it into a text file and give it a name with a "*.js" file extension.
    Place the JS file in the JavaScripts folder:   C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts\
    Relaunch Acrobat and you should have a new menu item named "New"

  • How to create RFC function module and how to call this function module

    Hi,
    i want to know step for creating RFC function module and then How to  use this function module from some other sap system.
    Thnaks,
    jigar

    Jigar,
    To implement a remote function module in ABAP, perform the following steps:
    Register the module as remotely callable in the RFC server system.
    In the function module Administration screen (transaction code SE37), set the field Can be called via REMOTE CALL. Registering a module as remote causes an RFC stub to be generated for it.
    Write the code for the function module.
    Create the destinations.....................
    Displaying, Maintaining and Testing Destinations
    To display, create or modify destinations, choose Tools ® Administration ® Administration ® Network ® RFC destinations or enter transaction code SM59.
    Remote Destinations are stored in table RFCDES. The RFCDES table describes logical destinations for remote function calls.
    It is not possible to maintain the RFCDES table directly.
    You can also access logical destinations via the Implementation Guide (IMG) by choosing Tools ® AcceleratedSAP ® Customizing ® Execute Project ® SAP Reference IMG.
    In the Implementation Guide, expand the following hierarchy structure:
    Basis
    Application Link Enabling (ALE)
    Sending and Receiving Systems
    Systems in Network
    Define Target Systems for RFC Calls
    Displaying Destinations
    The initial screen for this transaction displays a tree:
    Different connection types (i.e. partner systems or programs) are possible. For further information, see Types of Destinations.
    To display all information for a given destination, double-click it, or place the cursor on it and press F2 .
    To search for a destination, press the Find button and specify your selection. You get a list of all entries matching your selection. Place the cursor on the one you want, and press F2 or simply double-click the destination. All information for the given entry appears.
    Creating Destinations
    On the destinations overview screen (transaction code SM59), the connection types and all existing destinations are displayed in a tree structure.
    All available connection types are explained in Types of Destinations.
    To create a new RFC destination, press the Create button. A new screen is displayed with empty fields for you to fill in.
    If you want to create a new destination
    As you create a remote destination, you can specify a particular application server or a group of servers for a balanced distribution of system load.
    For details of the destination parameters, see Entering Destination Parameters.
    Changing Existing Destinations
    On the destinations overview screen (transaction code SM59), the connection types and all existing destinations are displayed in a tree structure.
    You can display all information for a given destination by double-clicking it or pressing F2 on it.
    To change an existing destination, double-click it, or place the cursor on it and press the Change button.
    For details of the destination parameters, see Entering Destination Parameters.
    Testing Destinations
    To test a destination, choose the appropriate function from the Test menu.
    Connection (also available via the Test connection pushbutton)
    Authorization (checks logon data)
    Local network (provides a list of application servers)
    You can use the CALL FUNCTION statement to call remote functions, just as you would call local function modules. However, you must include an additional DESTINATION clause to define where the function should run:
    CALL FUNCTION RemoteFunction
    DESTINATION Dest
    EXPORTING
    f1 =...
    f2 =...
    IMPORTING
    f3 =...
    TABLES
    t1 =...
    EXCEPTIONS......
    The field Dest can be either a literal or a variable: its value is a logical destination (for example, "hw1071_53") known to the local SAP System. Logical destinations are defined in the RFCDES table (or the TRFCD table in R/2 Systems) via transaction sm59 or the following menu path: Tools ® Administration, Administration ® Network ® RFC destinations. You can also access logical destinations via the Implementation Guide (IMG) by choosing Tools ® Customizing ® Enterprise IMG. In the Implementation Guide, you can then choose Cross-application components ® ALE ® Communication ® Define RFC destination.
    The remote function call concept, for example, allows you to access a function module in an R/2 System from an ABAP program in an R/3 System. If you want to read a customer record from your R/2 System’s database, create a remotely callable function module in the R/2 environment which retrieves customer records. Call this function from your R/3 System using a remote function call and listing the destination for the target R/2 System:
    Pls. reward if useful

  • How to create cookies in webdynpro and How to read from cookies

    Hi all
    Please let us know how to create cookies and how to store and retrieve the data from cookies in webdynpro.
    we have the following requirement in each and every webdynpro form we have dropdownbox UI element , when ever a user logins into portal then he will select his state from the dropdownbox UI element then when even again the same user logs into portal and select the state field then the previously existing value which ever used in cookies that should be selected as dropdownbox.
    can you please send sample codes how to create and read the data from cookies in webdynpro?
    if you have any useful links or documents on this cookies in webdynpro then it would be great help to us.
    Thanks in advance.
    Regards
    Kalki reddy

    Hi,
    Have a look at the following thread:
    Re: How to use Cookies in Web DynPro?
    This may help you.
    Regards.
    Rajat

  • How to create a flat files and how i used this

    hi Guys and gals,
    I am david. I want to know how to create a flat files. I don't know about it also. pls explain it and also pls help me to create a flat files. If u have any program for creating pls send me.
    I want to know about retrive the datas from flat files and also insert a record into it.
    pls guide me
    i need this immediately
    david

    void newMethod() throws Exception {
         // Reading from a flat file
         String data;     
         BufferedReader br = new BufferedReader(new FileReader("c:\filename1.txt"));
         while ((data = br.readLine()) != null) {
              System.out.println(data);
         // Writing to a flat file
         BufferedWriter bw = new BufferedWriter(new FileWriter("c:\filename2.txt"));
         bw.write("sample data");
         // After writing the data close the file
         bw.close();
    }

  • How to create Package( development class) and how to assign the program

    Hi,
    Can any body give me the steps to create the package (developement class) and also please give me the steps to assign the local object ( program) to that development class.
    thanks in advance
    KP

    Hi,
       This document will help you to create package and move local package name to your package.
    Package  Creation:
    1.T-code=SE80.
    2. give the option 'PACKAGE' in text field, give 'PACKAGE NAME' then enter.
    3. The next screen will open in that screen you shoul give short text and Software Component-'HOME'.  then enter.
    4. Next screen will open here you should give create request then next page will open
    5.In the next page give short description this is your package identification,then click 'SAVE ' button now one  unique number will open then give 'YES' button, now your package is created.
    HOW TO MOVE LOCAL PACKAGE DATA TO YOUR PACKAGE
    1.IN  the same screen you should give program option, then open your local program ,
    2.'WRITE  CLICK YOUR PROGRAM NAME', then give 'COPY' option
    3.Next window will open here you should give 'TARGET PROGRAM NAME'.
    4. THEN you should give you 'PACKAGE NAME'.
    now you can store local package program's to your package.
    IF HELPFULL GIVE REWARD POINTS

  • How to create wave pick document and transfer order from that document

    Hi All,
    I want to create wave pick document based on delivery and correspondingly want to create transfer order for that. My requirement is that if in 3 delivery i have to pick material M1 as 100, 50, 100 qty then when i create wave pick for these deliveries and create Transfer order by this wave pick doc it should pick from single bin of warehouse , currently it is picking from 3 different bins though qty in each bin is more than 250 in each bin. Also suggest me the configuration requred for this.
    Thanks in advance:

    Hello Gordon, tha is working perfect now I finaly get the forecasted items in my MRP window If I click on show recommendations I see he recommends he wants to order some pcs, and Indd what I split in to Buy or Make is separated in an Production order. But how do I change the recommendations into orders?

  • How to create a Regional Structure and how to use it

    Hi can anyone help me in creating the postal and political regional  structures with T-CODES if u have any documents or screen shots
    THANK YOU IN ADVANCE

    **Postal Code     **
    SR30     Create
    SR31     Change
    SR32     Display
    **City     **
    SR10     Create
    SR11     Change
    SR12     Display
    **Street     **
    SR20     Create
    SR21     Change
    SR22     Display
    **Political          **
    ER30     Maintain Hierarchy
    ER3D     Display Hierarchy
    ER31     Maintain Elements
    ER32     Display Elements
    Regards,
    Siva Bontha
    Edited by: Siva Bontha on Sep 4, 2009 12:38 PM

  • How to create the custom table?

    Hi, how to create the custom table and how to integrate the table with defferent R/3?
    my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
    Tks
    DPk

    how to create the custom table
    There are two approach in creating a table.
    1. Bottom-up approach
    2. Top-down approach.
    Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
    1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
    2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
    3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
    4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
    5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
    6. Go to data element page and save, check and activate.
    7. Go to main table page and save, check, and activate.
    8. Also, you have to save the technical settings of the table.
    The table is now ready for operation. You can use it in your program or you can use it to enter information.
    Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
    It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
    SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
    how to integrate the table with defferent R/3
    Transport the Table to the another server/client/qas/prd
    Kanagaraja L

  • [CLOSED]How to create a custom messages

    Hi All,
    I have a page and one save button .on press of save button, i want to show a custom message like "Applied changes are saved."
    Can anybody please elaborate how to create a custom message and how to show it through Controller.
    may i use
    OAException message = new OAException("AK",
    "FWK_TBX_T_EMP_DELETE_CONFIRM", tokens, INFORMATION, null);
    -Thanks,
    Avinash
    Message was edited by:
    user624747

    When i used the code
    OAException confirmMessage = new OAException("JTM","JTM_SAVE_SUCCESSFULL",null, OAException.CONFIRMATION,null);
    throw confirmMessage ;
    i am getting following error :
    Error :
    Application: JTM, Message Name: JTM_SAVE_SUCCESSFULL.
    I have created the message "JTM_SAVE_SUCCESSFULL" through
    Application Developer --> Application --> messages responsibility and given its type as error , application as "mobile application foundation" and then "ran the generate message" program.
    After that i checked the fnd_new_message table . the message is there.

Maybe you are looking for

  • Converting a text file into an array

    import java.io.*; public class Copy { public static void main(String[] args) throws IOException {      File inputFile = new File("farrago.txt");      File outputFile = new File("outagain.txt"); FileReader in = new FileReader(inputFile); FileWriter ou

  • FAST Food Billing and Menu

    Dear All  I have data like below in data table ID         ProductType        ProductName   ProductDescription   ProductSize ProductPrice 1          Single Product          Burger              Zinger                                      15 2         

  • Tree Node Links

    Hello, I am trying to configure a Tree in APEX 4.1 and I'm not sure if what I am trying to do is possible. Here is the situation: I work for a university that has the following colleges: College of Arts & Communication College of Business Administrat

  • Method-level Locking

    (Here's another one): I'm unable to find a way to enable method-level locking in WebLogic. This kind of lock has the same semantics as a simple "synchronized" on the method level (which you cannot write as a bean developer). The advantage is that you

  • Funky Leopard Boot

    Hi All. I installed Leopard and then BootCamp over an existing Boot Camp Beta. I'm getting TaskManager.exe not responding errors, a couple of crashes, no keyboard control over the DVD/CD writer/reader and some other funkiness. For instance CtrlOption