Hi all,
I tried several methods but just cant get the desired result...
I have a registration form that is somewhat simple, but, in preparation for a more comprehensive "Profile" screen I wanted to create several almost blank records in a separate table.
I have a table "user_limits".
The structure is...
ul_index = autoincrement
ul_cf_user_id_link = to hold cf_user_id (from users.id)
ul_order = to order records sequentially always 1-4
ul_limit_min = min dollars
ul_limit_max = max dollars
The idea is to create 4 records at the same time as the registration is submitted so that the 4 records had this data...
(assume that the newly created user's id = 60)
I tried custom code..
I tried custom code (for the UL_ORDER field changing the value before each save to 1, then2, then 3, then 4) each followed by a db save. Like
custom code UL_ORDER =1
DBsave
custom code UL_ORDER =2
DBsave
custom code UL_ORDER =3
DBsave
custom code UL_ORDER =4
DBsave
I end up with only 1 record in the user_limits table???? So It is updating instead of inserting.
Please give me a hint or a push in the right direction.
The end result desired is to offer a table on the profile screen like this
+------+------+
|--Min-|--Max-|
|-0.00-|-0.00-| where this would be UL_ORDER = 1
|-0.00-|-0.00-| where this would be UL_ORDER = 2
|-0.00-|-0.00-| where this would be UL_ORDER = 3
|-0.00-|-0.00-| where this would be UL_ORDER = 4
+------+------+
Where the user can establish his own Min and Max values..
I see another question with this...
and that is once in the profile screen,
when the user enters the Max of (for example $50.00) the Min on the next line should calculate to $50.01. I think I can use the java together with the dom to do this, but... How would I display this (which event would accommodate this result?)
I know this is complicated so please answer any parts you can help me with.
Thanks in advance for your help.
MrFitz
I tried several methods but just cant get the desired result...
I have a registration form that is somewhat simple, but, in preparation for a more comprehensive "Profile" screen I wanted to create several almost blank records in a separate table.
I have a table "user_limits".
The structure is...
ul_index = autoincrement
ul_cf_user_id_link = to hold cf_user_id (from users.id)
ul_order = to order records sequentially always 1-4
ul_limit_min = min dollars
ul_limit_max = max dollars
The idea is to create 4 records at the same time as the registration is submitted so that the 4 records had this data...
(assume that the newly created user's id = 60)
ul_index= 1000(auto increment on insert) ul_cf_user_id = 60 ul_order 1 other fields = NULL
ul_index= 1001(auto increment on insert) ul_cf_user_id = 60 ul_order 2 other fields = NULL
ul_index= 1002(auto increment on insert) ul_cf_user_id = 60 ul_order 3 other fields = NULL
ul_index= 1003(auto increment on insert) ul_cf_user_id = 60 ul_order 4 other fields = NULL
I tried custom code..
I tried custom code (for the UL_ORDER field changing the value before each save to 1, then2, then 3, then 4) each followed by a db save. Like
custom code UL_ORDER =1
DBsave
custom code UL_ORDER =2
DBsave
custom code UL_ORDER =3
DBsave
custom code UL_ORDER =4
DBsave
I end up with only 1 record in the user_limits table???? So It is updating instead of inserting.
Please give me a hint or a push in the right direction.
The end result desired is to offer a table on the profile screen like this
+------+------+
|--Min-|--Max-|
|-0.00-|-0.00-| where this would be UL_ORDER = 1
|-0.00-|-0.00-| where this would be UL_ORDER = 2
|-0.00-|-0.00-| where this would be UL_ORDER = 3
|-0.00-|-0.00-| where this would be UL_ORDER = 4
+------+------+
Where the user can establish his own Min and Max values..
I see another question with this...
and that is once in the profile screen,
when the user enters the Max of (for example $50.00) the Min on the next line should calculate to $50.01. I think I can use the java together with the dom to do this, but... How would I display this (which event would accommodate this result?)
I know this is complicated so please answer any parts you can help me with.
Thanks in advance for your help.
MrFitz