Re: Redrawing List Subform...
Problem solved. The record was being added but was not part of the current selection. A query was added that performs the same duty as the automatic Relate Many. So the problem was not one of object redraw it was data related. FWIW, Robert Sent from my iPhone > On Nov 20, 2018, at 12:37 PM, Robert ListMail via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I have a list subform showing related records and when a record is added via > programming the list does not update. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Redrawing List Subform...
a listbox (selection) has to have it's content updated to show a change in display. Use set, use named selection, query <[table]>. if you: - delete a record from the list - but do not remove it from the current selection (which seems to force the redraw) the listbox still shows the deleted record. - add 1 (or more) records through the listbox, you need to update the selection displayed (add the new record(s) to the current selection) or they will not show up. As I mentioned before, I do whatever query is is needed to gather the data to be displayed, then place those results into a set. - If I delete record(s) they are differenced out of the original records displayed. & Used - If I add record(s) they added to the set. & Used - If the user does a query (which is a query selection), and then clears the query entry area, the original records (with deletions and additions) is redisplayed by Using the set. -- this has an advantage of not having to re-run the original query repeatedly. On Tue, 20 Nov 2018 12:37:27 -0600, Robert ListMail via 4D_Tech wrote: > I have a list subform showing related records and when a record is > added via programming the list does not update. So, I tried to use > Redraw using the: object name; variable name, table name as a > parameter and the redraw did not occur. Also, Redraw window had no > affect either. Any ideas on how to get this simple subform to refresh? > > Searching the NUG I found: > >> On May 13, 2016, at 2:40 PM, Gary Boudreaux wrote >> Re: redrawing subform: >> REDRAW([ManyTable]) //[this worked for Gary] > > >> On Sep 5, 2018, at 2:43 PM, Stephen J. Orth via 4D_Tech >> <4d_tech@lists.4d.com> wrote, Re: v13 - screen redraw: >> Chip, Another option is to use CALL PROCESS (-1) and see if that works... >> Steve > > Also, 4D v17 does not seem to have the Call Process command…. Was > this removed? > > Thanks, > > Robert > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Redrawing List Subform...
Also, I forgot to mention: > On May 14, 2016, at 1:59 PM, David Belote wrote, > Re: redrawing subform: > Keisuke, Thank you for that nugget. I have been confused for a long time > about REDRAW. In the past, when I’m coding and something doesn’t display or > doesn’t display like I think it should, I start putting REDRAW commands into > my code. In almost all case, eventually, I determine it was something else > and have removed them. Essentially, what you are saying is that except for > ListBoxes this command is not needed (which should be the 4D behavior). If > so, I sure wish the documentation would state that. Apparently, there is plenty of confusion about redrawing subforms. Thanks, Robert > On Nov 20, 2018, at 12:37 PM, Robert ListMail via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Searching the NUG I found: ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Redrawing List Subform...
I have a list subform showing related records and when a record is added via programming the list does not update. So, I tried to use Redraw using the: object name; variable name, table name as a parameter and the redraw did not occur. Also, Redraw window had no affect either. Any ideas on how to get this simple subform to refresh? Searching the NUG I found: > On May 13, 2016, at 2:40 PM, Gary Boudreaux wrote Re: > redrawing subform: > REDRAW([ManyTable]) //[this worked for Gary] > On Sep 5, 2018, at 2:43 PM, Stephen J. Orth via 4D_Tech > <4d_tech@lists.4d.com> wrote, Re: v13 - screen redraw: > Chip, Another option is to use CALL PROCESS (-1) and see if that works... > Steve Also, 4D v17 does not seem to have the Call Process command…. Was this removed? Thanks, Robert ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **