Extended the VO in OAF to display new attributes, but not saving those fields - oaf

Current View of the Business Classifications(Payables -> Supplier -> Business Classification) in Oracle: This is the view where we would like the additional fields added to view and enter/update the Effective Start Date and Effective End Date.
The view behind is BusClassVO. The table referred to is POS_BUS_CLASS_ATTR
ATTRIBUTE1 and ATTRIBUTE2 are available and varchar2 is the datatype
Proceeded with extending the view as McwBusClassVO to show attribute1 as EffectiveStartDate
Personalized to show the Effective Start Date in the page.
But the save button in the Business Classification Page isn’t storing the value for the new field in the table. There is no EO attached to the standard VO (BusClassVO)
What needs to be modified to make the new field saved? Is that the controller code?

Related

NoteID in lotus notes view defaluts to NT00000000

I have a form with a computed when composed field containing #NoteID in it.
I then want to display that field in a view which is being exported to Oracle ( the NoteID is acting as a key)
The problem is sometimes during document creation the field stores the NoteID value but the view displays NT00000000
Any idea the cause, and how can I refresh the documents with the issue?
You can't get the real note id of a document until after the document is saved, so #NoteID in a field won't produce a useful result until after saving.
I suggest not using a field at all, and instead having the view column formula as #NoteID.
Also: Don't rely on note id if you have replicas of the database.
The same document in a different replica can have a different note id.
If you need an id represented as a string that remains the same across all replicas, use the formula #Text(#DocumentUniqueID).

Display Customer Activity Notes on Sales Order After CustomerID entered

I have a request from a pop up of the Customers Activity Notes after the Customer ID has been entered on a sales order. Currently they have set up specific instructions for entering an order for customer (could be different for each customer). We have entered them under the customers Activity Notes with a specific ID in the subject field. The notes will be in the body of the activity.
Rather then copy this info to the Sales Order Activity Notes, they would just like to display the Activity Notes from the Customers Activity Notes.
Has anyone done something like this or have any though as to how this could be accomplished.
You could proceed one of two ways:
First way is you could create a button in which it would fetch the associated customer's notes and display them.
The second way is that you could override the PXSelecting action for the page and make sure the Customer ID selector has commit changes set to true.
Either way you go, you will need to fetch the notes using the customer's NoteID field from the Note table. One method would be:
BAccount cust = PXSelect<BAccount, Where<BAccount.bAccountID, Equal<Current<SOOrder.customerID>>>>.Select(Base);
Note custNote = PXSelect<Note, Where<Note.noteID, Equal<Required<BAccount.noteID>>>>.Select(Base, cust.NoteID);
This should get you the result you desire. You can then display it however you choose.
NOTE: Please let me know if there are any syntax errors and I will correct them ASAP.

Filtering based off #me

I have created a custom screen that records a "SalesPerson" ID that links back to the Salespersons records.
One of the requirements is to create an inquiry screen (not generic inquiry) that has a filter for the current sales person (based on logged in user). The Filters should be "All Records" / "My Items" with the second being the default displayed (based on the recorded "Sales Person)
For this, The PXSelect statement links {customtable} -> {employee} (where salesperson record = employee.salesperson
I even extended that to link employee.userId -> users.pKid.
The actual select statement is below:
public PXSelectJoin<CWAItem,
LeftJoin<EPEmployee,On<CWAItem.salesPersonID,Equal<EPEmployee.salesPersonID>>,
LeftJoin<Users, On<Users.pKID,Equal<EPEmployee.userID>>>>> MobileOrders;
Both of these correctly display the user name in the grid however when i create a filter where EPEmployee__UserID = #me or Users.UserName = #me no records are returned.
Scanning through the system this appears to be used on the "WZ201500" screen that has a simular filter. The difference that I see is this is referencing "EPEmployee_UserId" based on the table definition.
Is there a limitation to using child DAC's and the #me or is there a different way to handle the joins so the #me works correctly?
Any assistance would be appreciated.
Having not used #me I am not sure what this refers to, however we did something similar limiting records based on the current user ID using access info like such:
Where<EPEmployee.userID, Equal<Current<AccessInfo.userID>>
Hope that helps
Just use the Table AccessInfo then Default Value of your Filter Equals to AccessInfo.UserID to any of the Table Field you need like CreatedByID or ModifiedByID

how to get a userIds or users associated with particular assets category

If I create a new category it will store in AssestCategory table.At the same time entry should be in AssestEntry table also.For mapping between these two tables we have AssestEntries_AssestCategories table.How to achieve above thing by programmatically because for mapping table I didn't get any API.by these tables shall I get userIds associated with particular category. Or let me know is there any other way.
A new entry stored in AssetCategory when a category is created for a topic in site.
For example, Create a category named "Test Category" in site. You will see an entry in AssetCategory table. But there will not be any entry get stored to AssetEntries_AssetCategories table.
When the category is associated with some data item, then its association is stored in AssetEntries_AssetCategories table.
For example, When you create a bookmark with "Test Category" selected, then a new entry stores in AssetEntries_AssetCategories table.
entryId in AssetEntries_AssetCategories represents the corresponding entry for AssetEntry table.
In liferay Asset framework, liferay-ui:asset-categories-selector tag can be used to provide Asset category selection.
Please refer below links for details of liferay asset framework and to implement the same for a custom resource.
https://www.liferay.com/en_GB/documentation/liferay-portal/6.2/development/-/ai/asset-framework-liferay-portal-6-2-dev-guide-06-en
https://dev.liferay.com/develop/learning-paths/-/knowledge_base/6-2/enabling-assets-at-the-service-layer

Create custom view with multiple entities in CRM 2011?

I'm new in CRM 2011. So not familiar with all it functionality.
Have a question about displaying data from multiple related entities.
First Entity is a Users (contain information about user)
Second Entity is a Class (contain information about class user enrolled)
Third Entity is a Class Attendance (contain information if user attended class on specific date)
The idea is to show view with users who is enrolled in class.
To show start end dates and if user attended class or not.
Administrator should select user and change status to attended or not.
How it can be done in CRM 2011? Is it required custom development or just to View Customization using user interface in CRM?
Any suggestion or examples highly appreciated.
In Mscrm you can create a view for a single primary record type, on this view you can show fields from the primary record. You can also include secondary records that are linked via a lookup to the primary record, you can show columns of these secondary linked records. The limitation here is that you cannot link tertiary records from these secondary linked entities. The slight confusion here is that you can show the name of the tertiary entity as its a field on the secondary entity.
So to put this into the context for a real example, take the following entity model.
Contact has a 1 to Many relationship with incident (a contact can have many incidents, each incident has a lookup to contact)
Incident has a 1 to Many relationship with task (an incident can have many tasks, each task has a lookup to an incident)
So a view of tasks can;
Show all the fields from the task (task in the primary)
Show all the fields from the incident (incident is the secondary)
Show the name of a the contact, but not any other field (contact is a tertiary, but its name is shown as a field from the incident)
This is one of those things that becomes a lot clearer when you actually try it out for yourself. Its hard to say what you will be able to achieve because its not clear what your entity model is.
In any case here is how you create your own custom view.
CRM > Settings > Solutions > Your Solution > Your Entity > Views > New. There are various buttons would should hopefully be self explanatory.
Click Add Columns and it will present you with fields of the primary entity, use the Record Type drop down option to select fields from linked secondary entities.
Reading between the lines you have:
Class entity with many:many relationship to student (user), so a user can be enrolled on more than one class and a class has more than one user.
There is then a second entity for attendance which by the sound of it has a many:1 relationship to both student and class, and has a status to show attendance for a particular instance of the class on one date.
So far sounds like a good model.
Using the ideas in James' answer you ought to be doing a view of Attendances, including the name of the class and user. You might also have extra columns from the user or class to show things like when the course starts and ends, what the student's email address is etc.
Sort this view by class, then student, then attendance date and you have a pretty good view. But this won't display in any kind of hierarchy or show summaries. You might want to look at building a custom report for this instead so you can report on attendances, grouped by student and grouped by class. If you get clever you could also add filters for dates so you can look at attendances last month only, for example. You can probably do a lot of this with the built-in report wizard, for more complex or pretty versions go to SSRS

Resources