I've had a similar problem and I used InventoryDimensionsGrid_InventSizeId.pasteText("A"). It worked for me.

Try it, maybe It'll do the job.

Steeve...

-----Message d'origine-----
De : johnn_16 [mailto:[EMAIL PROTECTED] Envoyé : 10 novembre 2003 09:41
À : [EMAIL PROTECTED]
Objet : [development-axapta] Refresh grid without saving the datasource line


I'll explain more clearly what I want. I want to automate the commande input. In a customer command, for a new salesLine, when the user have set the ItemId and the ConfigId, the size and color should be filled by the system.


To do that, I've set a "Modified" method on the "InventoryDimensionsGrid_configId" field in the form SalesTable. Here's a sample of code of want I want.


public boolean modified()
{
   boolean ret;

ret = super();

if(SalesLine.ItemId == "X" && InventDim.ConfigId == Y)
{
InventDim.InventSizeId = "A";
InventDim.InventColorId = "F"; }



//Here I want to refresh my grid to display the new InventSize and
//the new InventColor without saving the line.


   return ret;
}


Because the user can change other things like the price and quantity, I don't want to save the line. But if it was the only problem, I would have use salesLine_ds.researh(), but that method also bring me back to the first salesLine. The reread() and refresh() method on the salesLine_ds or InventDim_ds don't work either. And even if I set the InventoryDimensionsGrid_InventSizeId.Text("A") it doesn't work.



Someone know how to do?
Thanks.



Yahoo! Groups Sponsor ADVERTISEMENT
click here


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to