Skip to main content
Question

Mandatory field based on condition

  • December 23, 2024
  • 8 replies
  • 79 views

Forum|alt.badge.img+5
  • Do Gooder (Partner)
  • 18 replies

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.

8 replies

Furkan Zengin
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 689 replies
  • December 23, 2024

Hi ​@ZinT 

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


Forum|alt.badge.img+5
  • Author
  • Do Gooder (Partner)
  • 18 replies
  • December 23, 2024

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.


Forum|alt.badge.img+9
  • Hero (Employee)
  • 91 replies
  • December 23, 2024

Hi, 

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


Forum|alt.badge.img+5
  • Author
  • Do Gooder (Partner)
  • 18 replies
  • December 23, 2024

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"


Furkan Zengin
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 689 replies
  • December 23, 2024

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”

 


Forum|alt.badge.img+5
  • Author
  • Do Gooder (Partner)
  • 18 replies
  • December 24, 2024

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.


Furkan Zengin
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 689 replies
  • December 24, 2024

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 


Forum|alt.badge.img+5
  • Author
  • Do Gooder (Partner)
  • 18 replies
  • December 26, 2024

Hi,

is not work 😔

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings