How to Access a Remote Jiwa Database  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

How to Access a Remote Jiwa Database

Postby indikad » Fri Dec 11, 2015 9:53 am

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 )
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

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

Postby Mike.Sheen » Sat Dec 12, 2015 4:36 pm

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?".
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests