titanium Posted October 26, 2009 Posted October 26, 2009 (edited) Hi, I know i have seen this in the past but cant find it again. (urggg) A kick to the forum post on this would be appreciated... I have a portal displaying data with a DELETE button for each row. The problem is that the row directly after the last row of data shows the DELETE button, even tho it has no data in the portal row. Only the one extra row has this, the rest are blank as they should be. (see attached picture) I would be great full for a point in the right direction to find the solution to this...it just looks bad right now. Thanks, Edited October 26, 2009 by Guest Added Picture
bcooney Posted October 26, 2009 Posted October 26, 2009 Unfortunately, with Allow Creation of Related Records on in the relationship, you will always have this "ghost" record. The only solution is to turn that off, and provide a New button that scripts the new child creation.
grumbachr Posted October 26, 2009 Posted October 26, 2009 This is happening because you are allowing the creation of a record via the relationship. If you can not turn this off you will have to us a calculation to hide the icon you're using to show the delete button. I use something that looks like this; Case( IsValid(Table::Some_Key); "Result1"; "Result2" ) to use icons you'll want to setup a repetition field that holds the icons and replace the "Result1" and "Result2" with GetRepetition ( repeatingField ; number ) Hope that helps.
titanium Posted October 26, 2009 Author Posted October 26, 2009 Thanks for the help. I will look into how to implement the suggestion you provided. (I will have to figure out how, but you've given me a great starting place) Thanks very much!!
bcooney Posted October 26, 2009 Posted October 26, 2009 Invoice Demo This demo has a button to create a child record in a portal.
titanium Posted October 26, 2009 Author Posted October 26, 2009 Bcooney... Not sure that the demo you provided is to do with the solution grumbachr recommended. I am now trying to figure out how to create a repeating field to hold the delete icon and ware the script grumbachr mentioned goes... Perhaps im missing something in your demo? The further clarify... i only use the portal to display items, i do not create items via the portal...So, i dont need to create new records from here, just occasionally delete old ones. Also... i am going to look further to see if i can remove the allowing of creating records via the relationship.... not sure, have to check, but that would sure be the easiest way to solve this!! thanks for your continued input!
bcooney Posted October 26, 2009 Posted October 26, 2009 If you are not creating portals by typing directly in the portal, then just turn off Allow create in the relationship graph (double-click the box that is in the middle of the connecting lines). The "ghost" record will disappear.
titanium Posted October 26, 2009 Author Posted October 26, 2009 thanks very much for your help. I have changed the relationship and it looks much better. I have tested other parts of the application and it all works, so seems all good. thanks again for your time!
Recommended Posts
This topic is 5562 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now