|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
List Box preselected row does now work correctly with up/down arrowsI have been trying to set the initially selected line for a Dialog
displaying a three column "List Box". Everything appears pretty straight forward, and when the dialog is displayed the correct line is selected. The problem I am having is that let's say I pre-select row 5 during the : (Form Event = On Load) phase, when the dialog displays line 5 is selected, BUT when I hit the "down arrow", the selected line jumps to line 1, instead of going to line 6. I have simulated the problem below so that I don't have to post my database in order to get someone to look at it to see if they can spot the problem. I found "4D Objects.4dbase" at http://www.4d.com/us/support/resources/exampleapplications.html and from the File Menu -> 4D Objects Demo, and from the "Direct Access" popup menu I selected "List Box". I went to the : "Design Menu -> Project Forms -> Objects -> Page (6/22) -> Reset Button" and added the following code to simulate the problem. `---- 4D Objects.4dbase `---- Object Method: Objects.Bouton10 `---- Project Forms : Objects : Page (6/22) : Reset Button C_LONGINT($i;$no_of_elements) $no_of_elements:=Size of array(vGridTool) For ($i;1;$no_of_elements) vGridTool{$i}:=False End for vGridTool{5}:=True `---- NONE OF THESE HELP THE PREVIOUS LINE `---- vGridTool:=5 `---- vArray1:=5 `---- vArray2:=5 `---- vArray3:=5 When you run the demo again, and use the "Down Arrow" to scroll several lines (Not 5) and hit reset, line 5 is selected correctly, but as soon as you hit the down arrow, you get the incorrect line selected. Any Ideas ? I have been trying to figure out this for the last couple of days all to no avail. I want to preselect the line base on stored data, and don't want the user to have to click on the line in order to get this to work. Any Ideas ? Bill Hernandez Plano, Texas ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Register for 4D Summit 2009 Today Early Bird Pricing Ends August 28th - http://www.4D.com/summit To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
|
|
Re: List Box preselected row does now work correctly with up/down arrowsI am assuming the you called SCROLL LINES before you called SELECT
LISTBOX ROW. If not, give that a try. Phil Davis On Oct 25, 2009, at 11:15 PM, Bill Hernandez wrote: > I have been trying to set the initially selected line for a Dialog > displaying a three column "List Box". Everything appears pretty > straight forward, and when the dialog is displayed the correct line > is selected. > > The problem I am having is that let's say I pre-select row 5 during > the > : (Form Event = On Load) phase, when the dialog displays line 5 is > selected, BUT when I hit the "down arrow", the selected line jumps > to line 1, instead of going to line 6. > > I have simulated the problem below so that I don't have to post my > database in order to get someone to look at it to see if they can > spot the problem. > > I found "4D Objects.4dbase" at http://www.4d.com/us/support/resources/exampleapplications.html > and from the File Menu -> 4D Objects Demo, and from the "Direct > Access" popup menu I selected "List Box". > > I went to the : > > "Design Menu -> Project Forms -> Objects -> Page (6/22) -> Reset > Button" > > and added the following code to simulate the problem. > > > `---- 4D Objects.4dbase > `---- Object Method: Objects.Bouton10 > `---- Project Forms : Objects : Page (6/22) : Reset Button > > C_LONGINT($i;$no_of_elements) > $no_of_elements:=Size of array(vGridTool) > For ($i;1;$no_of_elements) > vGridTool{$i}:=False > End for > vGridTool{5}:=True > > `---- NONE OF THESE HELP THE PREVIOUS LINE > `---- vGridTool:=5 > `---- vArray1:=5 > `---- vArray2:=5 > `---- vArray3:=5 > > When you run the demo again, and use the "Down Arrow" to scroll > several lines (Not 5) and hit reset, line 5 is selected correctly, > but as soon as you hit the down arrow, you get the incorrect line > selected. > > Any Ideas ? > > I have been trying to figure out this for the last couple of days > all to no avail. > > I want to preselect the line base on stored data, and don't want the > user to have to click on the line in order to get this to work. > > Any Ideas ? > > Bill Hernandez > Plano, Texas > > > ********************************************************************** > 4D Basics hosted by 4D, Inc. http://www.4D.com/ > > Register for 4D Summit 2009 Today > Early Bird Pricing Ends August 28th - http://www.4D.com/summit > > To Unsubscribe: mailto:4DBasics-off@... > ********************************************************************** > > ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Register for 4D Summit 2009 Today Early Bird Pricing Ends August 28th - http://www.4D.com/summit To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
|
|
List Box - up/down arrows fail to synchronize with pre-selected List Box row...Phillip,
The above didn't work either... The title for this email should really be : SUBJECT : List Box - up/down arrows do not synchronize with pre- selected List Box row... REPLACES : List Box preselected row does now work correctly with up/ down arrows Bill Hernandez Plano, Texas On Oct 26, 2009, at 4:25 PM, Philip Davis wrote: > I am assuming the you called SCROLL LINES before you called SELECT > LISTBOX ROW. If not, give that a try. > > Phil Davis > I have been trying to set the initially selected line for a Dialog displaying a three column "List Box". Everything appears pretty straight forward, and when the dialog is displayed the correct line is selected. The problem I am having is that let's say I pre-select row 5 during the : (Form Event = On Load) phase, when the dialog displays line 5 is selected, BUT when I hit the "down arrow", the selected line jumps to line 1, instead of going to line 6. I have simulated the problem below so that I don't have to post my database in order to get someone to look at it to see if they can spot the problem. I found "4D Objects.4dbase" at http://www.4d.com/us/support/resources/exampleapplications.html and from the File Menu -> 4D Objects Demo, and from the "Direct Access" popup menu I selected "List Box". I went to the : "Design Menu -> Project Forms -> Objects -> Page (6/22) -> Reset Button" and added the following code to simulate the problem. `---- 4D Objects.4dbase `---- Object Method: Objects.Bouton10 `---- Project Forms : Objects : Page (6/22) : Reset Button Trace C_LONGINT($i;$no_of_elements) $no_of_elements:=Size of array(vGridTool) For ($i;1;$no_of_elements) vGridTool{$i}:=False End for vGridTool{5}:=True `---- NONE OF THESE HELP THE PREVIOUS LINE `---- vGridTool:=5 `---- vArray1:=5 `---- vArray2:=5 `---- vArray3:=5 When you run the demo again, and use the "Down Arrow" to scroll several lines (Not 5) and hit reset, line 5 is selected correctly, but as soon as you hit the down arrow, you get the incorrect line selected. Any Ideas ? I have been trying to figure out this for the last couple of days all to no avail. I want to preselect the line base on stored data, and don't want the user to have to click on the line in order to get this to work. Any Ideas ? Bill Hernandez Plano, Texas ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Register for 4D Summit 2009 Today Early Bird Pricing Ends August 28th - http://www.4D.com/summit To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
|
|
List Box - up/down arrows fail to synchronize with pre-selected List Box row...Phillip,
This solved the problem... SELECT LISTBOX ROW(*;"GridTool";5) Thanks for pointing me in the right direction... http://www.4d.com/docs/V6U/V6U00024.HTM Bill Hernandez Plano, Texas The title for this email should really be : SUBJECT : List Box - up/down arrows do not synchronize with pre- selected List Box row... REPLACES : List Box preselected row does now work correctly with up/ down arrows On Oct 26, 2009, at 4:25 PM, Philip Davis wrote: > I am assuming the you called SCROLL LINES before you called SELECT > LISTBOX ROW. If not, give that a try. > > Phil Davis > I have been trying to set the initially selected line for a Dialog displaying a three column "List Box". Everything appears pretty straight forward, and when the dialog is displayed the correct line is selected. The problem I am having is that let's say I pre-select row 5 during the : (Form Event = On Load) phase, when the dialog displays line 5 is selected, BUT when I hit the "down arrow", the selected line jumps to line 1, instead of going to line 6. I have simulated the problem below so that I don't have to post my database in order to get someone to look at it to see if they can spot the problem. I found "4D Objects.4dbase" at http://www.4d.com/us/support/resources/exampleapplications.html and from the File Menu -> 4D Objects Demo, and from the "Direct Access" popup menu I selected "List Box". I went to the : "Design Menu -> Project Forms -> Objects -> Page (6/22) -> Reset Button" and added the following code to simulate the problem. `---- 4D Objects.4dbase `---- Object Method: Objects.Bouton10 `---- Project Forms : Objects : Page (6/22) : Reset Button Trace C_LONGINT($i;$no_of_elements) $no_of_elements:=Size of array(vGridTool) For ($i;1;$no_of_elements) vGridTool{$i}:=False End for vGridTool{5}:=True `---- NONE OF THESE HELP THE PREVIOUS LINE `---- vGridTool:=5 `---- vArray1:=5 `---- vArray2:=5 `---- vArray3:=5 When you run the demo again, and use the "Down Arrow" to scroll several lines (Not 5) and hit reset, line 5 is selected correctly, but as soon as you hit the down arrow, you get the incorrect line selected. Any Ideas ? I have been trying to figure out this for the last couple of days all to no avail. I want to preselect the line base on stored data, and don't want the user to have to click on the line in order to get this to work. Any Ideas ? Bill Hernandez Plano, Texas ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Register for 4D Summit 2009 Today Early Bird Pricing Ends August 28th - http://www.4D.com/summit To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
|
|
Problem on sequence with 4d SQL 11.4 serverSince October of last year we have the following problem, and now also
send this Email to this list, with the hope you can help us: Problem 1) We send an Email with a problem, and following our Email we received a revised database, which did not work either (see point 2): Case of : (Before) InInput:=True If ([Facturas SUN]Nº Factura=0) [Facturas SUN]Nº Factura:=Sequence number([Facturas SUN])-593 [Facturas SUN]Nº Albaran:=Sequence number([Facturas SUN])-630 [Facturas SUN]Fecha Factura:=Current date ORDER BY([Line Items]Invoice ID;[Line Items]Item Nº;>) End if : (During) CalcInvoice End case 1A) Problem: The above method is to give new invoice numbers. Works okay with 4d SQL 11.2 mono-user, however, does not work with 4d SQL 11.2 server/client, due to the following error: when cancelling the operation, a new number is added anyway. ` bAdd button script ` CREATE SET(TheFile->;"Current Selection") Repeat ADD RECORD(TheFile->;*) If (OK=1) ADD TO SET(TheFile->;"Current Selection") End if Until (OK=0) USE SET("Current Selection") CLEAR SET("Current Selection") SetWindowTitle 2) Here also the revised structure that was sent by 4D was going completely wrong as well: when we cancel the operation 4D Client simply ignores cancel and adds a numer to the secuence. Then when you again want to add a record, for example, an invoice, the secuence number is not correct at all! This problem does not exist with 4D Professional 11.3, and only with the Server solution!!! We need a rapid solution for this all. Case of : (Before) InInput:=True If ([Facturas SUN]Nº Factura=0) [Facturas SUN]Nº Factura:=Sequence number([Facturas SUN])-595 [Facturas SUN]Nº Albaran:=Sequence number([Facturas SUN])-632 [Facturas SUN]Fecha Factura:=Current date ORDER BY([Line Items]Invoice ID;[Line Items]Item Nº;>) End if : (During) CalcInvoice End case Thanks in advance for your kind help. Best regards, Philipp --- Please change our Email and company´s address as well as telephone number AND NOW ALSO OUR FAX NUMBER/ Rogamos cambiar nuestro correo electrónico, la dirección y el número de teléfono Y AHORA TAMBIÉN NUESTRO NÚMERO DE FAX: Sun Suministros Industriales y Servicios S.L.U. Calle Campo Real Nº 11, local 1 28806 Alcalá de Henares, Madrid, Spain/España, E.U./U.E. VAT number/CIF: ES B 33752494 Phone/Teléfono: ..-34-91-8870071 Fax: ..-34-91-8892857 EMail: sun00006@... (Grupo W. Maass - Distr. of/de W. Maass Nederland B.V.) Company founded/Empresa constituida 25-02-1991 ********************************************************************** 4D Basics hosted by 4D, Inc. http://www.4D.com/ Register for 4D Summit 2009 Today Early Bird Pricing Ends August 28th - http://www.4D.com/summit To Unsubscribe: mailto:4DBasics-off@... ********************************************************************** |
| Free embeddable forum powered by Nabble | Forum Help |