Re: Value of Deselected Radio Button not updated when RBs are built via Object Duplicate

2018-02-04 Thread Keisuke Miyako via 4D_Tech
for the option to work, I believe you need to:

1. switch off the "group by name" compatibility mode, and
2. "join" an existing group of radio buttons

2018/02/05 0:18、Jonathan Marohn 
> のメール:
I have seen that setting in the docs for Object Duplicate but I have not been 
able to get the duplicated radio buttons to behave as a grouped set.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Value of Deselected Radio Button not updated when RBs are built via Object Duplicate

2018-02-04 Thread Jonathan Marohn via 4D_Tech
I have seen that setting in the docs for Object Duplicate but I have not
been able to get the duplicated radio buttons to behave as a grouped set.
I have a form with 1 radio button, on load I'm running this.
C_LONGINT(RB1;RB2;RB3)

$groupName_t:="radioGroup1"

For ($i;1;3)

$obj_NewName_t:="RB"+String($i)

$object_p:=Get pointer($obj_NewName_t)


OBJECT DUPLICATE(*;"Radio
Button";$obj_NewName_t;$object_p;$groupName_t)//_radiob

$object_p->:=Choose($i=1;1;0)  // set the first RB to active


OBJECT MOVE(*;$obj_NewName_t;0;22*$i)// move object down 22 px

OBJECT SET TITLE(*;$obj_NewName_t;$obj_NewName_t)

OBJECT SET COLOR(*;$obj_NewName_t;red) // just to see what was duplicated


End for

// get the form objects and inspect that the rbs have a valid pointer

ARRAY TEXT(aDialogObjNames_t;0)

ARRAY POINTER(aDialogObjVars_p;0)

FORM GET OBJECTS(aDialogObjNames_t;aDialogObjVars_p)

Thoughts?


On Fri, Feb 2, 2018 at 2:55 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I don't think that's possible.
>
> grouping by variable name is a "compatibility" (I refrain from calling it
> deprecated) feature since v2004.
> in general, compatibility features can go way at any time after 3 major
> versions.
> indeed, form objects can have no variable names since v12, and that is now
> the default in v15 or v16.
>
> object duplicate specifically offers the option to associate created radio
> buttons to a group,
> but there is no mention of radio buttons grouped by variable name.
>
> http://doc.4d.com/4Dv16/4D/16.3/OBJECT-DUPLICATE.301-3651551.en.html
>
> 2018/02/03 2:30、Jonathan Marohn via 4D_Tech <4d_tech@lists.4d.com d_t...@lists.4d.com>> のメール:
> Could it be that using since Object Duplicate is a newer method it forces
> the need for Grouping of RB? is there a way to group radio buttons
> programmatically? I can not find anything on that.
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Value of Deselected Radio Button not updated when RBs are built via Object Duplicate

2018-02-02 Thread Keisuke Miyako via 4D_Tech
I don't think that's possible.

grouping by variable name is a "compatibility" (I refrain from calling it 
deprecated) feature since v2004.
in general, compatibility features can go way at any time after 3 major 
versions.
indeed, form objects can have no variable names since v12, and that is now the 
default in v15 or v16.

object duplicate specifically offers the option to associate created radio 
buttons to a group,
but there is no mention of radio buttons grouped by variable name.

http://doc.4d.com/4Dv16/4D/16.3/OBJECT-DUPLICATE.301-3651551.en.html

2018/02/03 2:30、Jonathan Marohn via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
Could it be that using since Object Duplicate is a newer method it forces
the need for Grouping of RB? is there a way to group radio buttons
programmatically? I can not find anything on that.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Value of Deselected Radio Button not updated when RBs are built via Object Duplicate

2018-02-02 Thread Jonathan Marohn via 4D_Tech
We are building a dynamic dialog for all our reporting dialogs, We are
using Object Duplicate on radio buttons. we are passing in a pointer to a
radio button variable and are setting one of the RBs on load. The radio
button we are copying has a unique name that does not conflict with any
existing radio buttons. We also have compatibility mode set for 4D to
manage radio buttons by name.

The problem is that when changing to a different radio button the
previously selected RB does not deselect. If there are 3 RBs it's possible
to have all set to be selected.

So a 3 RB setup would be this
radio button 1
   name = "CurrencyRB1"
   var . = Currency1
radio button 2
   name = "CurrencyRB2"
   var . = Currency2
radio button 3
   name = "CurrencyRB3"
   var . = Currency3


Could it be that using since Object Duplicate is a newer method it forces
the need for Grouping of RB? is there a way to group radio buttons
programmatically? I can not find anything on that.

Thanks
Jonathan Marohn
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**