FoxInCloud
Combo - RowSourceType = 6
Gravatar is a globally recognized avatar based on your email address. Combo - RowSourceType = 6
  Vincent H.
  All
  Apr 15, 2021 @ 09:23am

Hi Thierry,

Always the same problem with a combobox, when RowSourceType = 6 and RowSource = MyTable.Ch1

In the init of the (simple) screen, I have RowSource = "", I create my cursor, then I restore RowSource = MyTable.Ch1

At the first launch of the screen, no worries. At the second, the list is empty and so on.

No error, the HTML source code is below.

Adding a ControlSource doesn't change anything.

Thanks in advance for what you can do !


<select id="teleinit_scx-etatcivil" class="teleinit_scx-etatcivil form-control" title="Titulaire du document d'état civil vérifié par la commune" tabindex="12" autocomplete="off"><option>Monsieur LOUVEL Michel</option><option>Monsieur TEST Jean</option></select>

<select id="teleinit_scx-etatcivil" class="teleinit_scx-etatcivil form-control" title="Titulaire du document d'état civil vérifié par la commune" tabindex="12" autocomplete="off"></select>

<select id="teleinit_scx-etatcivil" class="teleinit_scx-etatcivil form-control" title="Titulaire du document d'état civil vérifié par la commune" tabindex="12" autocomplete="off"><option>Monsieur LOUVEL Michel</option><option>Monsieur TEST Jean</option></select>

Gravatar is a globally recognized avatar based on your email address. re: Combo - RowSourceType = 6
  Vincent H.
  Vincent H.
  Apr 17, 2021 @ 12:15am

We must save the waRowSource property ...

Is there a downside to doing it systematically for this type of object?

Gravatar is a globally recognized avatar based on your email address. re: Combo - RowSourceType = 6
  FoxInCloud Support - Thierry N.
  Vincent H.
  Apr 17, 2021 @ 01:51am

Vincent,

Please see this example in the FoxInCloud Live Tutorial

FoxInCloud adds 'waRowSource' to (.wcPropSave) automatically.

Gravatar is a globally recognized avatar based on your email address. re: Combo - RowSourceType = 6
  Vincent H.
  FoxInCloud Support - Thierry N.
  Apr 17, 2021 @ 03:42am

OK Thierry,

I don't see where.

One thing is certain, without this addition, the result corresponds to what I published.

Gravatar is a globally recognized avatar based on your email address. re: Combo - RowSourceType = 6
  FoxInCloud Support - Thierry N.
  Vincent H.
  Apr 19, 2021 @ 06:45am

I don't see where

see modify command awServer.prg > procedure PropsSave_Init_Memb_Init() > CASE m.tcBaseClass == 'Combobox' or CASE m.tcBaseClass == 'Listbox'

© 1996-2021