Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 18, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Custom radiobuttonlist selected value is null
daria
Posts: 5
 
Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 09 2:33 PM
Hi all,
I am trying to add a custom field to the InsertContact control. It is a asp radiobutton list

<asp:RadioButtonList ID="rgContactGender" runat="server" RepeatDirection="Horizontal" >
<asp:ListItem Selected="true" Value="M">Male</asp:ListItem>
<asp:ListItem Value="F">Female</asp:ListItem>
</asp:RadioButtonList>

I bind it in the OnAddEntityBindings

BindingSource.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityBinding("UserField2", rgContactGender, "SelectedValue"));

However when I save the form the UserField2 in the db is null.

To test general functionality I added a textbox and bound that to UserField2 and that saved into the db fine. What am I doing wrong?
[Reply][Quote]
Ken Poggensee
Posts: 71
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Mar 09 7:02 PM
I pulled the section below from a form I still had in AA so its a standard Slx radiogroup. I noticed in had a text property in there too. Hope it give you some direction...
----------------------------------------------------

Value="<%$ resources: rgApprove_item0.Value %>"
/>
Value="<%$ resources: rgApprove_item1.Value %>"
/>
[Reply][Quote]
Ken Poggensee
Posts: 71
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Mar 09 7:11 PM
That didnt copy\paste in this form to well .... Maybe this one will come across better

[Reply][Quote]
Ken Poggensee
Posts: 71
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Mar 09 7:13 PM
Nope. Third time a charm...

[ a s p: ListItem Text="Item1" Value="Item1" ]
[Reply][Quote]
daria
Posts: 5
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Mar 09 10:32 AM
Thanks so much for responding.

It does not help me though. I am trying to get the value to be bound to the db field. In a normal asp.net form in a post back I would
rgContactGender.SelectedValue
and that would return either "M" or "F" and this is what I want to save in the db. F

For some reason the way that sales logix does binding is not what I expected.
BindingSource.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityBinding("UserField2", rgContactGender, "SelectedValue"));

If no one has any ideas on this does anyone know what the syntax is for a saleslogix radio group. The help files said there is one but I cannot find usage of it anywhere.
[Reply][Quote]
daria
Posts: 5
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Mar 09 10:32 AM
Thanks so much for responding.

It does not help me though. I am trying to get the value to be bound to the db field. In a normal asp.net form in a post back I would
rgContactGender.SelectedValue
and that would return either "M" or "F" and this is what I want to save in the db. F

For some reason the way that sales logix does binding is not what I expected.
BindingSource.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityBinding("UserField2", rgContactGender, "SelectedValue"));

If no one has any ideas on this does anyone know what the syntax is for a saleslogix radio group. The help files said there is one but I cannot find usage of it anywhere.
[Reply][Quote]
daria
Posts: 5
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Mar 09 10:32 AM
Thanks so much for responding.

It does not help me though. I am trying to get the value to be bound to the db field. In a normal asp.net form in a post back I would
rgContactGender.SelectedValue
and that would return either "M" or "F" and this is what I want to save in the db. F

For some reason the way that sales logix does binding is not what I expected.
BindingSource.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityBinding("UserField2", rgContactGender, "SelectedValue"));

If no one has any ideas on this does anyone know what the syntax is for a saleslogix radio group. The help files said there is one but I cannot find usage of it anywhere.
[Reply][Quote]
Ken Poggensee
Posts: 71
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Mar 09 11:14 AM
I was trying to copy\paste the oob slx radio group for you but the forum mis-interpets some of the code and strips it out.

I would suggest creating a simple form with your radia group on it and then open up the ascx file after you deploy it and see what they give you.
[Reply][Quote]
daria
Posts: 5
 
Re: Custom radiobuttonlist selected value is nullYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Mar 09 10:57 AM
So figured out what I was doing wrong

instead of

BindingSource.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityBinding("UserField2", rgContactGender, "SelectedValue"));

I should have used
BindingSource.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityBinding("UserField2", rgContactGender, "Text"));

Thanks,
Daria
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/18/2025 10:43:18 PM