' Hi All, I am using USERPROFILE CI on a custom page (field event: SavePostChange) I was able to create users using the USER PROFILE CI. But for some reason I can not update these new users using the same CI. I have full access to the component and was able to update via test component in the application designer. Tools 8.46 HR 8.9 Thank you in advance, Here is my code. It needs to be If Not &oUserProfile.Get Then If Not &oUserProfile.Create Then; rem. Unable to Create Component Interface for the Add keys provided.; errorHandler; throw CreateException(0, 0, 'Create failed'); End-If; End-If; rem. Execute Create.; I have just shuffled your code to create only if not Get (found) -Original Message- Hi All, I am using USERPROFILE CI on a custom page (field event: SavePostChange) I was able to create users using the USER PROFILE CI.
But for some reason I can not update these new users using the same CI. I have full access to the component and was able to update via test component in the application designer. Tools 8.46 HR 8.9 Thank you in advance, Here is my code. If you are only going to insert new entries, check again if you need to have GetHistoryItems & EditHistoryItems set to True.
PeopleBooks suggests us not to use think-time functions in SavePreChange, Workflow, RowSelect, SavePostChange, and any peoplecode event that executes as a result of ScrollSelect, ScrollSelectNew, RowScrollSelect, or RowScrollSelectNew function call, and any peoplecode event that executes as a result of Rowset class Select or SelectNew method. If you are using think-time functions in one of the above events, just get red of it. PeopleSoft PeopleTools. PeopleTools Quiz; PeopleTools Quiz 2; PeopleTools Quiz 3. Get Latest Updates directly delivered in your Email. PeopleSoft Component Interface Frequently Asked Question. Publish On June 8, 2013 In PeopleSoft CI FAQ. 1) What are the main elements in the component Interface? One comment on “ PeopleSoft.
PYCFVERTGRDWK must be a derived work record going by the naming convention. Is there PeopleCode that copies the derived record field values into the actual physical table?
Why are you testing the label value? Is this required? If &oPycfVertgrdWk.PYCFlabel = 'Account:' ThenIf &oPycfVertgrdWk.PYCFlabel = 'Department:' Then 4.
The above statements will always be false because Label will not have a ':'. The colon is appended to the label ONLY during runtime when HTML data is sent to the browser. One other thing- For debugging a CI never use think-time functions such as Winmessage. Use MessageBox instead.
Refer PeopleBooks - Home PeopleBooks Enterprise PeopleTools 8.4x PeopleBook: PeopleSoft Component Interfaces Programming Component Interfaces in PeopleCode Understanding PeopleCode Behavior and Limitations Look into these aspects and correct them. Let me know if you still have issues. Regards, Rao.Original Message- I'm trying to add entirely new entry using 'create'. I can do it from online page, also from test component. I call this function from another component.
After create, I can edit level 1, but not level 2. There is code to set level 2 readonly when%mode 'A'. Thank you for quick response. I have answer below - From: blrvenkat via peoplesoft-hr-l mailto:[email protected] Sent: Friday, July 11, 2008 10:33 AM To: Li Guan Subject: RE:peoplesoft-hr-l How to update existing rows using Component Interface liguan, 1. If you are only going to insert new entries, check again if you need to have GetHistoryItems & EditHistoryItems set to True. I'll check if this makes difference. PYCFVERTGRDWK must be a derived work record going by the naming convention.
Is there PeopleCode that copies the derived record field values into the actual physical table? Why are you testing the label value? Is this required? Chartfields are displayed as vertical (label and value). I only need to change two of them.
If &oPycfVertgrdWk.PYCFlabel = 'Account:' ThenIf &oPycfVertgrdWk.PYCFlabel = 'Department:' Then 4. The above statements will always be false because Label will not have a ':'. The colon is appended to the label ONLY during runtime when HTML data is sent to the browser. The label is correct - I got it using winmessage. PeopleSoft has code to add ':'. Also the winmessage showed up for that statement.
One other thing- For debugging a CI never use think-time functions such as Winmessage. Use MessageBox instead.
I'll change to messageBox. Refer PeopleBooks - Home PeopleBooks Enterprise PeopleTools 8.4x PeopleBook: PeopleSoft Component Interfaces Programming Component Interfaces in PeopleCode Understanding PeopleCode Behavior and Limitations Look into these aspects and correct them. Let me know if you still have issues. Regards, Rao.Original Message- I'm trying to add entirely new entry using 'create'. I can do it from online page, also from test component. I call this function from another component. After create, I can edit level 1, but not level 2.
There is code to set level 2 readonly when%mode 'A'. Liguan, Are you trying to add a new row at Level1 for an existing entry or creating entirely new entry in which case the mode should have been 'A'? If you can do it from an online page, then it should be possible from your CI code. Can you post your code? Regards, Rao.Original Message- Can some one help me on this?
I can create. But after that I can not setup level 1 value because it is in 'U' mode, and there is code to setup field readonly for 'U' mode. I can do it in test component. I'm trying to add entirely new entry using 'create'. I can do it from online page, also from test component. I call this function from another component.
After create, I can edit level 1, but not level 2. There is code to set level 2 readonly when%mode 'A'.
Component interface. 1. COMPONENT INTERFACE By, Mr. What is Component Interface? A means to access the PeopleSoft application without using the PeopleSoft pages. It exposes a PeopleSoft component for synchronous access from external application(peoplecode,c/cpp, java). External applications need not be concerned with the details of page structures and component definitions in order to access the underlying data and business logic through component interfaces. Architecture of Component Interface. Architecture(Contd.)Fundamental elements to the component interface architecture.
Components. Component Interface. Component Interface API. Elements of ComponentInterfaceEvery component interface has the following four main attributes 1)Name 2)Keys GetKeys Findkeys CreateKeys Generated in CI when the Use tab on the Component Properties dialog allows the Add action.
Elements of ComponentInterface(contd)3) Properties and collections (fields and records) Provide access to both component data and component interface settings. Two types of properties: Standard and User-defined. Standard properties can be set to true or false. Examples: InteractiveMode, GetHistoryItems, EditHistoryItems. Userdefined methods. User-defined properties map to record fields on the PeopleSoft component and are displayed in the PeopleSoft Application Designer.
A component interface collection is a special type of property that corresponds to a scroll.4)Methods. A method is a function that performs a specific task on a component interface at runtime.
Two main types of methods: standard and user-defined. Standard methods. Standard methods are those that are available for all component interfaces. 1.Cancel: Cancels any changes made since the last save. 2.Create: Creates new instance of CI 3.Find:Performs partial key search on the particular instance of the CI using search key at level zero.
4.Get:Retrieves a particular instance of CI. 5.Save: Saves an instance of the CI. 6.GetPropertyByName:Returns the value of the property specified by name. 7.SetPropertyName: Sets the value to the property specified by name. Userdefined Methods.Those that you can create to meet the requirements of an individual componentinterface.A method is simply a PeopleCode function that you wish to make accessible throughthe component interface. Each method maps to a single People Code function.The Component Interface object, instantiated from a session object, is created atruntime as a way to access the data specified by the Component Interface.
&oSession =%Session; &oSIdn1Ci = &oSession.GetCompIntfc(CompIntfc.SIDN1CI);. When you populate a Component Interface with data, the first thing you fill out are its keys, as you would in a component. These can be keys for getting an existing instance of the data or for creating a new instance of the data. Component Interface properties provide access to the data in a component buffer. Component Interface methods are functions that can be called to perform operations on a Component Interface. Component Interface can map to only one component. A component can have any number of CIs.
Component Interface Definition. Developing & Implementing CIDesign Define Fields Record Definition Build Record Defines Pages Define Components Define the Component Interface Link the Component to the Menu Authorize User Access (Security) Test your Component Interface. A component interface is a PeopleTools object that you create in Application Designer. Add individual objects, or groups of objects, to the component interface by dragging objects from the component view into the component interface view. Creating & Working with a CI To create a new component interface Select File, New from the Application Designer menu. Select the Component Interface object type from the New dialog. Select the component on which this component interface will be based. Save the component interface. Add properties, collections, or methods to the component interface. Set the security. Test the component interface. Working with Component InterfaceDeclaring a Component Interface Object Component Interfaces are declared as type ApiObject.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |