Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

hiding Delete Icon for a portal last row- did i reinvent the wheel?

Featured Replies

I need to have Add Record on, but I don't want buttons in the last row to show (Export File and Delete).

As a test I created a calc in a field of the portal file

case ( isempty ( THE_Data_Field ) ,"", UI:Delete_Icon )

Works, no delete icon shows on the last "row". I'm just annoyed that I would have do that all over my tables where needed.

Aside from the fact that I tested for a single field instead of a record present (TBD),

Was there a more logical, easy method?

I have a UI file, a Data file, and a FileLibrary (too chicken to store many file attachments to my "real" data.)

The UI has image files to use as icons (instead of pasting/inserting on layouts), with 1 record in file (don't want the hassle of resetting globals).

With a relationship of [X] I can use the one icon all over, but it seems that in a portal, they will show on the "potential" record in the last row. Same if I use a calc, so thats why I tested for empty first.

No, I think the way you did it is pretty much what you have to do now. I would use an ID field, or one you're certain has data; or should have data for the button to appear.

Another "related" trick is to create a calculation field in your 1-record table, equal to the container (or whatever) constant. Then set the calculation's storage to [x] Global. That way you can access the calculation field from anywhere without a relationship. Not a big deal, but cuts down on the number of lines needed on the Relationship Graph.

  • Author

Do you mean that the art could then be accessed from the unrelated table section?

UI: 1 record

ArtField_f (I used "f" for container as in File)

ArtField_cfg=ArtField_f

ArtField_cfg now can be used from unrelated table list in any table

If so, a Copy&Pasting I will go (mytestforempty_calc).

Now if only I can get my client to accept a Skull&CrossBones instead of a plain old X as the delete icon.

******

To answer my own Q, yes. Very elegant. I hope I can resist adding tests for appearance of icons types ( ;) for spelling errors? )

Edited by Guest
afterword

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.