public void openInvoicesBrowser(JLbsXUIControlEvent event) throws LbsLocalizableException
{
String contractId = LOHelper.getContract(JLbsXUITypes.XUIMODE_DBSELECT, LOConstants.CONTRACTS_INVOICE, LOConstants.INVC_WHOLESALE);
InvoiceBrowserInput input = new InvoiceBrowserInput();
BasicContractCallback callback = new BasicContractCallback();
Hashtable<String, String> implProps = new Hashtable<String, String>();
implProps.put(IAppletUIContractConstants.Modal, "true");
AppletContractService.executeContract(event.getClientContext(), contractId, callback, implProps, new ContractParameter(input, "input"));
if (callback.isContractComplete())
{
if (callback.getException() != null)
event.getClientContext().getLogger().error(callback.getException(), callback.getException());
else if (callback.getOutputs() != null)
{
InvoiceBrowserOutput output = LOXEInvoicesBrowser.findInvoiceBrowserOutput(callback.getOutputs());
List<InvoiceBrowserRecord> selectedRecords = output.getSelectedRecords();
if (selectedRecords.size() > 0)
{
InvoiceBrowserRecord record = selectedRecords.get(0);
}
}
}
}
We can use Control Serives for this purpose as used in above source code
Cevap vermek için giriş yapmanız gerekmektedir.
Soru sormak için lütfen oturum açınız.
Open InvoiceBrowser ( Using Code )
10/02/16 16:44   j-Platform/LPTHow can i Open InvoiceBrowser Using Code ?
LPT