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.

Portal delete button repeating

Featured Replies

Just asking a general question about portal behavior.

I have a portal and i had put an "X" to delete records but this was put in my Orders table. The portal was based on my Line Items table So this is what i noticed.

If i use the icon from the orders table this is the effect:

post-105143-0-70319600-1314779363_thumb.

What i did was create a new field in my lineitems table to lookup the orders trash "X". and i get this:

post-105143-0-30153800-1314779413_thumb.

I would like to know why i get the undesired repeating field when i think it shouldnt matter?

thanks

The relationship the portal is based on is set to allow the creation of related records. This produces the blank row at the bottom.

Doesn't answer your specific question but is related to it ...

If required, you can create a conditional delete button that will not show in the portal (with auto creation enabled of related records) when there is no record.

Use a calculated field (result text)

If(IsEmpty ( portal primary key field );"";"X")

Use this calc field - conditionally formatted to show a red X - as the delete button with a script that does nothing if there is no portal row record but deletes the related record if used when one exists.

  • 4 weeks later...
  • Author

Efen,

if the calculated field does the calculation and inserts the "X" only if the primary key is not empty, then what am i conditionally formatting?

can u please give me an example ? i am confused.

what would the condition be i guess is what i am saying since the calculation took care of it?

-i

Like the attached - although this just uses a conditionally formatted text object

delete.zip

  • Author

Efen,

So based on this post:

Use a calculated field (result text)

If(IsEmpty ( portal primary key field );"";"X")

that is irrelevant to your file TOTALLY!!

that is what was confusing me, but in your file, your conditional

  • child::_pk - true then turn Text RED
  • THen your script checks if ID field and asks if you want to delete portal row.

Thanks for making me not think i was crazy .. YET!!

This version has the extra field ...

delete2.zip

  • Author

2nd version seems like why bother when your 1st method is much cleaner & simpler.

-i

1st method is much cleaner & simpler

That's why I attached the first file rather than the one with the extra field - which I only posted because you seemed to have trouble understanding how it worked in a previous post

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.