Home » Developer & Programmer » Forms » Dynamic LOV problem
Dynamic LOV problem [message #466667] Tue, 20 July 2010 08:31 Go to next message
dhanasurya
Messages: 33
Registered: May 2010
Member
Hi,
I have one requirement.I am populating LOV dynamically for the subinventory field in the order form through custom.pll.
If Dropship flag= 'Y' then populate suninv LOV with D1,d2..values.If it is 'N' then
populate suninv LOV with w01,w02,....values.This is done and working fine in the form.But
If i save dropship flag='Y' and Subinv value is D1 then it saves the record.Now I am changing Drop ship flag as 'N' then
'D1' value appearing in the SUBINV field.and it allow the save changes.
So How can i refresh Lov at the time of making drop ship flag as 'Y'/'N'?

Please give me the reply.

Thanks in Advance,
Re: Dynamic LOV problem [message #466671 is a reply to message #466667] Tue, 20 July 2010 08:58 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Are you talking about an LOV or a list item?
Re: Dynamic LOV problem [message #466673 is a reply to message #466671] Tue, 20 July 2010 09:03 Go to previous messageGo to next message
dhanasurya
Messages: 33
Registered: May 2010
Member
LOV attaching to Text_Item
Re: Dynamic LOV problem [message #466674 is a reply to message #466673] Tue, 20 July 2010 09:04 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Then surely what you need to do is set Subinv to null whenever dropship flag is changed.
Re: Dynamic LOV problem [message #466677 is a reply to message #466674] Tue, 20 July 2010 09:12 Go to previous messageGo to next message
dhanasurya
Messages: 33
Registered: May 2010
Member
It it is set to null even i save the record in the database then also it shows Null.

What should i do?
Re: Dynamic LOV problem [message #466682 is a reply to message #466677] Tue, 20 July 2010 09:26 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Explain the issue more clearly.

What was the value of subinv and dropship and at the start.
What did you change dropship to.
What happened to subinv.
What do you want to happen.
Re: Dynamic LOV problem [message #466707 is a reply to message #466667] Tue, 20 July 2010 12:54 Go to previous message
dude4084
Messages: 222
Registered: March 2005
Location: Mux
Senior Member
What i perceived that you are getting problem is data consistency.

You need a value in Suninv =D1/D2/... when Flag='Y'
and value in Suninv=W1/W2/... when Flag='N'

I suggest you to use when_validate_item on Flag.

Validate Suninv with respect to Flag values. If validation fails then call LOV by using the command "show_lov"


This will solve your problem.

Good Luck
-Dude


Previous Topic: smart lov
Next Topic: help in Tree
Goto Forum:
  


Current Time: Fri Sep 20 03:57:27 CDT 2024