Home » Developer & Programmer » Forms » How to remove the field value of a list element.
How to remove the field value of a list element. [message #629155] Thu, 04 December 2014 00:08 Go to next message
tara_260985
Messages: 46
Registered: November 2014
Member
I have a list of element field and in that drop down I have 3 values,once user selects the value and press apply button i want to clear the field, I have tried clear_item property,it clears the value from the field but when I press on OK button to commit the changes it says "frm 40202 Field value must be entered".
Kindly assist
Re: How to remove the field value of a list element. [message #629158 is a reply to message #629155] Thu, 04 December 2014 00:18 Go to previous messageGo to next message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I'm sorry, but I don't see any sense in what you are doing. First you put a value into a required item. Then you press the APPLY button (whatever that button is and does), which - in turn - clears that item. Finally, while saving changes (what changes? You did nothing, really ... inserting & removing a value brings you back to the beginning), you get an error saying that the required item is empty, while it requires the value.

So, what problem are you trying to solve? I, somehow, doubt that the way you are solving it now isn't right.
Re: How to remove the field value of a list element. [message #629169 is a reply to message #629155] Thu, 04 December 2014 02:12 Go to previous messageGo to next message
tara_260985
Messages: 46
Registered: November 2014
Member
hey I could solve this issues using clear_list
Re: How to remove the field value of a list element. [message #629177 is a reply to message #629169] Thu, 04 December 2014 02:58 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Really? Won't you still end up with a required item with no value?
Re: How to remove the field value of a list element. [message #629271 is a reply to message #629177] Fri, 05 December 2014 04:16 Go to previous messageGo to next message
tara_260985
Messages: 46
Registered: November 2014
Member
YUP,Actually it clears the list element item but the dropdown arrow is greyed out.I need to exit the form now and press add button to enter a value.
I want to clear the list elemt value and enable it back again..how should I do it?.
Re: How to remove the field value of a list element. [message #629272 is a reply to message #629271] Fri, 05 December 2014 04:35 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Are you trying to change the value a list item is set to?
Or are you trying to remove a particular value from those displayed when you open up the list item?

For the first just assign a value to the list item same as if it waa a normal item. Set it to null if you want.
For the second - don't, it never works properly.
Re: How to remove the field value of a list element. [message #629275 is a reply to message #629272] Fri, 05 December 2014 06:06 Go to previous messageGo to next message
tara_260985
Messages: 46
Registered: November 2014
Member
Newly entered values should move the XREF table only when the user clicking on 'Apply' button. Once the value moved to XREF table then the XREF fields (Item Xref Number, Company ID & Supplier) in the bottom of the Item XREF section should be cleared
Re: How to remove the field value of a list element. [message #629276 is a reply to message #629275] Fri, 05 December 2014 06:06 Go to previous messageGo to next message
tara_260985
Messages: 46
Registered: November 2014
Member
Company ID is a list element value..a drop down...how to set its value null..
Re: How to remove the field value of a list element. [message #629277 is a reply to message #629276] Fri, 05 December 2014 06:21 Go to previous message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
You must realize that we know nothing about your form, or your DB, other than what you tell us.
We don't know what blocks or items you have in the form, we don't know what the process is for entering data.
A screenshot would probably help, along with a more detailed description of what you are trying to do.
Previous Topic: When check box changed trigger not working
Next Topic: Calculated Field changes value when Scrolling a record set.
Goto Forum:
  


Current Time: Sat Apr 20 07:48:05 CDT 2024