Skip to main content

Hi,

i want to make a field editable when the state is diffrent Closed, but is not working

for information i want to put it on a custom entity associated to business opportunity

 

 

do you have any idea why its not work ?

Regards.

Hi ​@ZinT 

If the status is in the header then try record.parent.Status!= "Closed"


Hi Furkan Zengin,

thank you for your quick response, but your solution does not work.

i can edit the field when the satatus is Closed.

Regards.


Hi, 

If you run the debug and investigate the record. Is the value of òbjstate` = ‘Closed’ ?


Hi, 

the objstate is in the Header ( business opportunity ), i need to make edit with condition based on the state of the header, but is not work in my custom list which connected to the header 

my opportunity is closed but i can add lines, below the header of the debug of my custom list:

Request Method: "GET"
Request URL: "https://arkolia-cfg.ifs.cloud/main/ifsapplications/projection/v1/BusinessOpportunityHandling.svc/BusinessOpportunities(OpportunityNo='90')/AssBussOppInfEcoLoc/IfsApp.BusinessOpportunityHandling.BInfEcoLoc_Default()?odata-debug=json"
Status Code: "200 OK"


Hi

If you want to hide Plus or  Edit (Pen) icon based on the status then you need to enter condition to CRUD actions, not the field conditions.

 

On the other hand,  if you need to set a specific field not editable in a custom tab then you can try adding the header status in your custom entity and use record.Objstate !=”Closed”

 


Hi 

THank you Furkan 

i already made what you sugest me before posting the problem in the community, 

i think its not work for custom tab, i will made business process to bloque adding and updating when status is Closed.

Regards.


Hi ​@ZinT ,

You can try adding header status as part of custom tab. Based on the line status, you can make your setup. I tried this before and worked without problem.

Hope this helps 


Reply