Skip to main content
Question

Add button embedded report

  • July 12, 2024
  • 0 replies
  • 216 views

Forum|alt.badge.img+8

Hello, 

I have a button in the embedded report to allow the user to quickly add an update with the current record. However, I don't want the button to add an update display if this record is considered closed and the user not add an update with a closed record - only add an update with a current active record. 

Is there a way to only have this button show in line with a current active record that needs to have update records added? Screen shot of the purple buttons in questions. 

 

This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24

When a URL formula field calculates to blank, then the button will be blank.  

So just put a IF statement around  your URL formula and leave the alternative condition blank and the button will end up being blank. 

Feel free to post back if you have trouble with the syntax for the IF statement.


Forum|alt.badge.img+8
  • Author
  • Registered
  • July 12, 2024

URLRoot() & "db/" & [_DBID_BJS_YOUTH_UPDATES] & "?a=API_GenAddRecordForm&_fid_12=" & URLEncode ([Record ID#])& "&z=" & Rurl()


MarkShnierYou
Forum|alt.badge.img+24

var text URL = URLRoot() & "db/" & [_DBID_BJS_YOUTH_UPDATES] & "?a=API_GenAddRecordForm&_fid_12=" & URLEncode ([Record ID#])& "&z=" & Rurl();

 

IF([Status] <> "Closed", $URL)

 

Of course I'm not exactly sure what your field names are for determining if the record is open or closed for editing, but you will get the idea from the formula above. You'll notice that the formula is silent as to what happens if the status is closed and that will cause the button to go blank.  

 

 

 


Forum|alt.badge.img+8
  • Author
  • Registered
  • July 12, 2024

Thank you, so I add both formulas to the button field?

 


Forum|alt.badge.img+8
  • Author
  • Registered
  • July 12, 2024

Ok, in the IF formula it's highlighting the $ yellow?

and I essentially have 2 status options that consider a record closed, they are closed and transitioned to another facility. How would I incorporate both of those options?

 


Forum|alt.badge.img+8
  • Author
  • Registered
  • July 12, 2024

It worked when I removed the space between the $ and URL and used $URL. I'm not sure how to incorporate the other option 


Forum|alt.badge.img+8
  • Author
  • Registered
  • July 12, 2024

That worked, many thanks!!