Questions asked by docvominhhttps://answers.axonivy.com/questions/asked-by/844/docvominh/?type=rssQuestions asked by <a href="/users/844/docvominh" >docvominh</a>enTue, 14 Jul 2020 00:33:46 -0400Get web service namehttps://answers.axonivy.com/questions/4639/get-web-service-name<p>Hi Team, i got a new requirement that needs to log every time Webservice call with ws name and some value.</p> <p>Is there any way that i can get the name of ws process element (in <strong>Code</strong> tab)?</p> <p><a href="https://ibb.co/z4kyqSn"><img alt="ws" src="https://i.ibb.co/z4kyqSn/ws.png" border="0"></a></p> <p>Thank you,</p> <p>Minh</p>docvominhTue, 14 Jul 2020 00:33:46 -0400https://answers.axonivy.com/questions/4639/get-web-service-namewebservicesupress new PMV creation when deploying with project-build-pluginhttps://answers.axonivy.com/questions/4310/supress-new-pmv-creation-when-deploying-with-project-build-plugin<p>I got a problem with Project Build Plugin, it creates new pvm all the time.</p> <p>do we have any option like redeploy=true to skip create new pvm?</p> <p>Thank you,</p> <p>Minh</p>docvominhThu, 09 Jan 2020 02:49:49 -0500https://answers.axonivy.com/questions/4310/supress-new-pmv-creation-when-deploying-with-project-build-pluginmavenproject-build-pluginCaseQuery API with clob fieldhttps://answers.axonivy.com/questions/4287/casequery-api-with-clob-field<p>Hi Team, I try to use CaseQuery API to lazy Case table - ORACLE,</p> <p>but stuck with description field (CLOB)</p> <pre><code>query.orderBy().description().ascending(); </code></pre> <p>SQL generated: ORDER BY IWA_CASEQUERY.DESCRIPTION ASC</p> <p>but I got exception : ORA-00932: inconsistent datatypes: expected - got CLOB</p> <p>Seem it not allow to ORDER BY CLOB field</p> <p>Do we have any solution to fix it with CaseQuery API? like this</p> <pre><code>query.orderBy().description().toString().ascending(); </code></pre> <p>[UPDATE] IVY version : 7.0.13</p>docvominhWed, 18 Dec 2019 06:06:38 -0500https://answers.axonivy.com/questions/4287/casequery-api-with-clob-fieldcase-queryTemporary file got overridehttps://answers.axonivy.com/questions/4183/temporary-file-got-override<p>Hi Fold,</p> <p>I got an issue with <code>ch.ivyteam.ivy.scripting.objects.File</code>.</p> <p>When our Ivy application receive a file via SOAP with the same name all the time Ex: Information.html</p> <p>We create a temporary file </p> <pre><code>ch.ivyteam.ivy.scripting.objects.File file = new ch.ivyteam.ivy.scripting.objects.File(path,true) </code></pre> <p>The problem happens is when 2 requests come at the same time, the second temporary file overrode the first one.</p> <p>Is there any way to avoid it without change file name? or add subfolder (caseId) like IDocumentService in temporary file?</p>docvominhFri, 22 Nov 2019 06:23:15 -0500https://answers.axonivy.com/questions/4183/temporary-file-got-overridefileStart process of Ivycomponent in ManagedBeanhttps://answers.axonivy.com/questions/2736/start-process-of-ivycomponent-in-managedbean<p>Hi everyone, I had a dialog, and an ivyComponent. component is included into dialog When i try to call process in Logic of Dialog like this, it work fine.</p> <pre><code> FacesContext context = FacesContext.getCurrentInstance(); ExpressionFactory elFactory = context.getApplication().getExpressionFactory(); ELContext elContext = context.getELContext(); MethodExpression methodExpression = elFactory .createMethodExpression(elContext, "#{logic.mainMethod()}", String.class, new Class[0]); MethodInfo info = methodExpression.getMethodInfo(elContext); methodExpression.invoke(elContext, new Object[0]); </code></pre> <p>But when i try to call componentMethod() in component logic, it show method not found error : method not found <strong>example.main.componentMethod().</strong></p> <p>Update : each dialog had it own ManagedBean, and i fail to call when i use component ManagedBean.</p> <p>Seem like current context is not belong to component, have anyone meet this before ?</p> <p>Thank you :)</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Capture.PNG"></p>docvominhThu, 06 Jul 2017 09:47:34 -0400https://answers.axonivy.com/questions/2736/start-process-of-ivycomponent-in-managedbeanjsf