Using jdelaunchUBEEx in a BSFN

yroul

Member
Hi all!

We are upgrading from XE to E1 9.0 (TR8.98.4.6). We have some problems to use custom BSFN to submit UBE from an application. In XE everything works fine but in 9.0 the Printer selection screen does not appear...even if the UBEVAR.bBatchFlag is set to FALSE.
If running Locally, the printer selection Screen will appear, but not if running from the WebServer in J**900 environment. Is someone have an idea?

UBEVAR pUBEVar = {0};

...

#ifdef IAMASERVER
jdeGetHostName(pUBEVar.szHostName, DIM(pUBEVar.szHostName), 0);
#endif

jdeStrcpy(pUBEVar.szReport, szUBEName);
jdeStrcpy(pUBEVar.szVersion, szUBEVersion);
jdeGetHostName(pUBEVar.szMachineKey, DIM(pUBEVar.szMachineKey), 0);
GetLocalEnvironmentName(szEnvironmentName, DIM(szEnvironmentName));
jdeStrcpy(pUBEVar.szEnhv, szEnvironmentName);
jdeNIDcpy(pUBEVar.szReport, szReport);
jdeNIDcpy(pUBEVar.szVersion, szVersion);
jdeNIDcpy(pUBEVar.szPOTemplateName, szProcOpt);
pUBEVar.bSynchFlag = FALSE;
pUBEVar.bPreview = FALSE;
pUBEVar.bBatchFlag = FALSE;
pUBEVar->idRunTime = (GLRTID)(lpBhvrCom->hDlg)<<16;

memset((void *)&dsREPORT, (int)(_J('\0')), sizeof(DSRIR5842565RE));


/* Check if the report is called for an Order Number */
if (&lpDS->mnDocumentOrderInvoiceE != _J('\0'))
{
MathCopy(&dsREPORT.mnSalesOrderNumber, &lpDS->mnDocumentOrderInvoiceE);
jdeStrncpy(dsREPORT.szSalesOrderType,(const JCHAR *)(lpDS->szOrderType),
DIM(dsREPORT.szSalesOrderType));
jdeStrncpy(dsREPORT.szSalesOrderCompany,(const JCHAR *)(lpDS->szCompanyKeyOrderNo),
DIM(dsREPORT.szSalesOrderCompany));
}

bReportSuccess = jdeLaunchUBEEx(hUser, &pUBEVar,(LPVOID)&dsREPORT,(LPBHVRCOM) lpBhvrCom);
jdeFree(&pUBEVar);

Thanks in advance.
 
When your BSFN ran on a fat client, you would get the printer prompt.

Since with a web client your BSFN is running in a callobject kernel on the enterprise server, there is no way to prompt, as the code is executing on the enterprise server and not locally.
 
Hummm Bad news!!
smile.gif

Thank you for your reply.
 
Back
Top