Skip to main content

Hi,

I’m trying to display the Part ID (from Service Object Details) in the Request Scope tab on the Request page. For this, I created a persistent custom attribute in the SrvRequestScope entity.Added the screenshot below.

Current Version Using 24R2

 

However, this custom field is not appearing in the Attributes dropdown of the RequestScopeitemList in Page Designer. 

 

I’ve checked the Projection Metadata and found that the attribute has been added to the "ReqScope" entity instead of the "SrvRequestScope" entity.

 

Could anyone please explain why this is happening and guide me on how to make the field display in the Request scope?

 

Thanks in Advance.

Hi ​@venkatesh,

The issue is with your View selection.

View for the Service tab is SRV_REQUEST_SCOPE_UIV, which is not the base view for the SrvRequestScope entity, and therefore, you need to enable your custom attribute for the SRV_REQUEST_SCOPE_UIV view manually before publishing. 

Please refer to the screenshots below.

 

Hope this helps.

 

Regards

Abdul Rehman 


So without looking too much into the actual page designer issue here, if you’re trying to display the Part ID, why are you creating a permanent attribute ?

 

A permanent attribute with a reference to EquipmentObject would expect the user to insert equipment object records against the service scope, which seems weird to me as an Equipment Object is typically recorded against the service request scopes out of the box through connected objects?

 

 

Are you sure a permanent attribute is really what you want here ? Are you not instead trying to retrieve (read only) the part number from the connected service object ?


Hi ​@Abdul ,

Thanks Abdul, After enabling the correct additional view, custom attribute is getting populated in the page designer.


HI ​@SimonTestard ,

Yeah, I got your point. But Can you please explain how to create a read-only field using the Actaul_obj_Conn_rowkey.  This one I didn’t understand.


HI ​@SimonTestard ,

Yeah, I got your point. But Can you please explain how to create a read-only field using the Actaul_obj_Conn_rowkey.  This one I didn’t understand.

 

I’d do it like this:

 

Arguments: actual_connection_type_db, actual_obj_conn_lu_name_db, actual_obj_conn_rowkey

Select Statement:

select 
(case when :actual_connection_type_db = 'EQUIPMENT' and :actual_obj_conn_lu_name_db = 'EquipmentObject' then
(select max(part_no) from equipment_object t where t.objkey = :actual_obj_conn_rowkey)
else null
end) as part_no
from dual

 

This seems to work from my own testing.

 


Reply