This for a client table with listsource for field Agency_Ref pointing to agency table.
The field client.Agency_Ref can be left null
I have a triggers in client table to make it null if it is 0.
Questions
Is there a way I can insert an item at the top of the list which has a value 0 and the Name "Not an Agency"? (I am just recalling the issue I had with Ref=0 a while ago)
Where would be a good place to do this?
If I cant have it 0, is there a way to have the value null?
On a related note, for a different part of the program, its is not possible to have a placeholder for <select>, the common thing to do is
What kind of tables are this? Is this something server side or client side?
In the client, I would assume you have a TDataset?
I also do not understand your second question.
What kind of placeholder do you look for?
You indicate yourseff in the HTML shown the disabled attribute exists, so, that is what you use to make an item disabled.
At this moment, there is no built-in support at Pascal class interface for the TWebDBLookupComboBox to set an item as disabled.
For now, you'd need to loop through the child OPTION elements of the WebDBLookupComboBox.ElementHandle at perform a child.SetAtttribute('disabled') for the items you want to set as disabled.
We've added it on the feature request list to allow access of this via the Pascal class.