Page 1 of 1

How to Access a Remote Jiwa Database

PostPosted: Fri Dec 11, 2015 9:53 am
by indikad
Hi Scott,

this works as it is.

I am however trying to figure out how to specify the warehouse that the stock needs to be transferred to - ( rather than the default ).
Can you show me how pls ?

also I need to specify the Transfer reason and this seems to be a read-only field ( hope you can show me a code sample there too )

Re: How to Access a Remote Jiwa Database  Topic is solved

PostPosted: Sat Dec 12, 2015 4:36 pm
by Mike.Sheen
indikad wrote:Hi Scott,

this works as it is.

I am however trying to figure out how to specify the warehouse that the stock needs to be transferred to - ( rather than the default ).
Can you show me how pls ?

also I need to specify the Transfer reason and this seems to be a read-only field ( hope you can show me a code sample there too )


The Stock Transfer business logic object has a property named LogicalWarehouseResidingIn - which is an entity of type JiwaApplication.Entities.LogicalWarehouse - you need to call the ReadRecord on that after creating the business logic object.

The transfer reason is read-only because - again - it is an entity, of type JiwaApplication.Entities.StockTransferReason - use the ReadRecord method of that class to set it.

Also, your question is really beyond the scope of the sample provided - you should really make your own threads next time to give the proper context - doing so would assist others in the future doing searches for that specific problem. E.g.: "How do I set the warehouse when creating a stock transfer?" and "How do I set the transfer reason for a stock transfer?".