Documentacion javascript para Workflow

¿Existe documentación de javascript para Workflow de SAP Business One?, tengo el documento que publicó SAP para configuración de Workflows, pero apenas vienen un par de ejemplos de Javascript, que además dan error al ejecutarse.
Apenas he encontrado información, un par de videos en youtube y poco más. No tengo problema para hacer Workflows sencillos, pero si quiero hacer cosas más complejas no queda más remedio que recurrir a Javascript, ¿alguien ha encontrado algo útil?

Hola!
Just follow workflow instalation guide.
Regards,
Luiz Soares

Similar Messages

  • Cannot find metadata values in workflow queue

    I need some help customizing workflow action menues in WF_INQUEUE_LIST.
    What I´m trying is show actions depending on a customized metadata value.
    I´m able to put certain javascript code in order to modify standard behavior if conditions involve workflow metadata (i.e. wfStepName, wfName) but what i need is doing the same based on custom metadata (i.e. xMyMetadata).
    I have been looking for some information in doc but functions like wfCurrentGet or GetValue don´t work.
    I´ve created a custom component with an html resource overwriting setup_workflow_action_popups.
    Basically is the same code that original. There´s only a little change: in the Approve Link creation section I have put this code (is stupid i know)
    +<$exec rsAppendNewRow("PopupProps")$>+
    +<$exec setValue("PopupProps", "label", lc("wwApprove"))$>+
    *<$if strEquals(dWfStepName, "TheStepName")== true$>*
    *<$exec setValue("PopupProps", "function", "javascript:{alert('Workflow Step is <$dWfStepName$>');document.Approve_<$dID$>.submit();}")$>*
    +<$else$>+
    *<$exec setValue("PopupProps", "function", "javascript:{alert('Step is not desired one but <$dWfStepName$>'); document.Approve_<$dID$>.submit();}")$>*
    +<$endif$>+
    +<$exec setValue("PopupProps", "ifClause", "AllowReview")$>+
    +<$exec setValue("PopupProps", "class", "workflow")$>+
    +<$exec setValue("PopupProps", "id", "workflowApprove")$>+
    This change works. But i need make the action depending on a custom metadata value i.e. xMyCustomMD
    *<$if strEquals(xMyCustomMD, "")== false $>*
    *<$exec setValue("PopupProps", "function", "javascript:{alert('<$xMyCustomMD$>');document.Approve_<$dID$>.submit();}")$>*
    +<$else$>+
    *<$exec setValue("PopupProps", "function", "javascript:{alert('Value not find');document.Approve_<$dID$>.submit();}")$>*
    +<$endif$>+
    I am not capable of retrieve the value of xMyCustomMD
    How can i get access in this page to this metadata?
    Thank you very much
    Edited by: user9510270 on 28-feb-2011 7:52
    Edited by: user9510270 on 28-feb-2011 7:53
    Edited by: user9510270 on 28-feb-2011 7:55
    Edited by: user9510270 on 28-feb-2011 7:56
    Edited by: user9510270 on 28-feb-2011 8:01

    Can you check what metadata you can see?
    I gathered that you have an access to dWfStepName, and dID, but not to other metadata values - sounds like the values you can see are taken from workflow temporary files and if you want to have all the metadata of the item you will have to run a search query to get them. I would suggest to follow to other workflow screens (workflow_review_frames template), because there it is possible to see all metadata and you can get an idea what needs to be done.

  • Impresión javaScript desde visual Studio C#

    Buenas.
    Tengo una aplicación que genera pdfs. Le añado una javascript para que se imprima directamente. Todo funciona correctamente, excepto que antes de imprimir el systema lanza un popup preguntado: "Intentando Imprimir este documento. ¿Desea permitirlo?"
    Sabéis qué puedo hacer para que no salga ese mensaje?
    Gracias.
    Código:
    DocumentJavaScript javaScript =
    new DocumentJavaScript("Informes", "this.print(false, this.pageNum, this.pageNum);");
    documento.JavaScripts.Add(javaScript);
    axWebBrowser1.Navigate("c:\\fichero.pdf", ref nullObject, ref nullObjStr, ref nullObjStr, ref nullObjStr);

    Hi Sal_S,
    >>Recently however I am finding that it is hanging - stuck on "Updating the News Channel"  and "Connecting to " Visual studio Online. It remains unresponsive until these actions are completed.
    What does "Updating the news Channel" mean? You mean that open the VS IDE, and then some links or videos showed in the start page.
    Maybe you could change some settings in your VS IDE under TOOLS->Options.
    As you said that the VS hanging when it connected to VSO, one idea is that you could post an issue to the VSO forum:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=TFService
    In addition, for the performance issue, we would think about many elements.
    For example, the machine configurations, run the VS for a long time(we often restart the VS), the temp files(clean them), or the add-ins or extension tools (you could disable them), the third party processes in your task manager which make the CPU is high
    or others.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [IE] Solucion para insertar png trasparente en IE de forma estandar

    Hola:
    Esta duda a salido varias veces y la verdad creo que nunca me
    ha llegado a
    funcionar correctamente las soluciones.
    IE aun no interpreta bien los archivos png, hasta ahi bien, y
    se suele usar
    un javascript para corregir este defecto. Ahora mi duda es,
    el javascript
    que debes usar para que IE muestre el fondo transparente de
    los pgn es
    estandar????
    Es decir, necesito una solucion al problema de los png peo
    que sea estandar.
    No por conseguir hacer visible el png en Ie, quiero perder
    accesibilidad y
    el trabajo realziado para que sea estandar.
    Me explico?
    Saludos y espero vuestros javascript estandar :0) .....si es
    que lo hay
    Gracias

  • Javascript y Photoshop

    Hola a todos yo soy fotógrafo, trabajo con el PS y en mi ratos libres hago scripts para Photoshop.
    Me gustaría encontrar gentes, con quien intercambiar opiniones sobre guiones en Javascript para Photoshop.
    Aquí en Adobe hay un foro muy bueno, pero en ingles, y yo sólo se hablar español y algo de francés.
    Saludos

    Hola, Manolo.
    Me cuesta creer que seas el único hispanohablante del mundo que utilice guiones en Photoshop; sólo que todavía no ha aparcido ningún otro en estos foros. Basta mirar el número de temas publicados en toda su historia para darse cuenta que, a pesar de los notables progresos en el último año, todavía no somos suficientemente conocidos. Es labor de todos nosotros contribuir a mantenerlos con vida y hacerclos progresar.
    Muy bueno tu enlance, espero que lo vean todos los usuarios de Photoshop.
    ¡Contamos con tu ayuda!

  • Null query string in servlet filter with OC4J 10.1.3.1.0

    I have a strange problem with OC4J 10.1.3.1.0. In the servlet filter, while requesting the querystring with HttpServletRequest.getQueryString the result is null, even if it is verified with a sniffer that that query string is there. This happens only with certain requests. The query string is long but nothing very special otherwise.
    Any ideas what might be wrong?
    Thanks,
    Mika

    I got the same problem. I tried in others application servers alternatives and it works. By now i have to change links like this "http://localhost:8888/SIVIUQ/LoadIndex.portal?test=1" for forms using javaScript to send the parameters corresponding to the button pressed. To use buttons instead links is not the better solution due to usability. Any suggestion to solve this problem?
    Thanks
    Javier Murcia
    Yo tengo el mismo problema. He intentado con otros servidores de aplicaciones y funciona. Por ahora tengo que cambiar links como "http://localhost:8888/SIVIUQ/LoadIndex.portal?test=1" por formularios, usando javaScript para enviar los parametros correspondientes al boton presionado. Usar botones en vez de links no es la mejor solucion debido a usabilidad. ¿Alguna sugerencia para resolver este problema?
    Gracias
    Javier Murcia

  • Set Value in a ME22N's field with user exit.

    Every time an PO is create in ME21N or ME22N I need that the user to input some valid Requisitioner in PO's item. These valid Requisitioners are in a Z table.
      Well, to solve this I've used the EXIT_SAPMM06E_017 exit. I call the function F4IF_INT_TABLE_VALUE_REQUEST but it is not bringing the requisitioner I've selected to the field in ME22N the field remains empty.
    data : i_usr   like zmmwfnfusr occurs 0 with header line,
           wa_usr  like DDSHRETVAL occurs 0 with header line.
    IF i_ekpo-afnam IS INITIAL. "The field resquisitioner
      MESSAGE s079(z1) WITH 'Requerente obrigatório para Workflow'
                             'Receb. de NFs.'
                      'Digite um Setor Recebedor cadastrado!'.
    v_repid = sy-repid.
    v_dynnr = sy-dynnr.
       select *                  "My table with requisitioners
       from zmmwfnfusr
       into table i_usr.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
        retfield            = 'RECEBEDOR'     "Field name of zmmwfnfusr
        DYNPPROG            = v_repid
        DYNPNR              = v_dynnr
        DYNPROFIELD         = 'TEKPO-AFNAM'    "Tried to guess 
    the field name, tried all namens..
        VALUE_ORG            = 'S'
       TABLES   
         value_tab                 = i_usr
         return_tab                = wa_usr.

    Hi,
    try with this
    process on value-request.
      field AFANAM module onvalue_request_afanam.
    and check what is the field name in the screen which you want to populate the value like (materail) Material is the Dynpro field and MATNR is the retfield
    in the module
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield        = 'LIFNR' <data element for afanam>
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'AFANAM'
          value_org       = 'S'
        tables
         value_tab       = itab
        return_tab = ret_tab
        FIELD_TAB  = FIELD_TAB
        exceptions
          parameter_error = 1
          no_values_found = 2
          others          = 3.
    this should work,
    Cheers,
    Sasi

  • Crystal Reports Error - BOBJ is undefined

    Post Author: cstent
    CA Forum: Crystal Reports
    Hi
    I recently upgraded from crystal reports 10 to 12 and am now coming accross an error when i try and deploy a crystal report viewer onto a webpage.
    Im getting a javascript page error "'bobj' is undefined".
    Searching on the web i can only find one other person who has come accross this error, and not posted the solution.
    Any ideas?

    Crystal Reports Error - BOBJ is indefinido
    hola para los que no Leen inglés.
    este error se dió cuando quise ejecutar el reporte en formato HTML.
    las causas son estas, cuano se instala el runtime solo se instala en C:Inetpubwwwrootaspnet_clientsystem_web2_0_50727
    alli dentro tiene los formularios, y el javascript para que se ejecute el reporte en html (todo el viewer).
    cuando quise ejecutar el reporte tengo otra ruta que se llama c:Inetpubwwwpruebasaspnet_clientsystem_web y me marcaba el error, eso es porque los scripts no se encontraban en esa ruta.
    PARA RESOLVERLO solo copiar el system web de wwwroot y pegarlo en la otra ruta. con eso solucionan el problema.
    saludos desde MTY Mex.

  • ¿How i make a Browser Detect swf movie?

    Hi, i use a simple embed swf movie in one of many pages i own, but recently I build a new page in html5. But i tested in Internet Explorer and doesnt work well. What i need its a script code in AS3 to use in my swf movie that detect the browser and if the browser its IE9 load an old page, but if its other browser is like mozilla or chrome, load  the new page in html5.
    It is possible to do that in AS3 right?
    Thanks to all
    Firefawx 

    You can simply say "I want an animation to play before it decides which page to load" and we'd get it. So you want to show your logo animation.
    Use the tutorial link I gave you and look at the code. It is a full example of browser detection using both actionscript and javascript. ActionScript needs JavaScript to get the information on what browser it is. All of the information and code examples are there to show you how to detect the browser.
    Spanish translation:
    Usted puede simplemente decir "yo quiero una animación para jugar antes de que decida lo que se cargue la página" y que sería para nosotros. Así que usted quieremostrar su animación de la insignia.
    Utilice el enlace tutorial que te di y mirar el código. Se trata de un ejemplo completo dela detección del navegador utilizando tanto ActionScript y JavaScript. ActionScriptnecesita JavaScript para obtener la información del navegador que es. Todos los ejemplos de la información y el código están ahí para mostrar la forma de detectar el navegador.

  • [DIR] & camaraIP

    Buenas,
    Tengo un problemilla...
    Necesito que director me muestre el contenido de una camara
    IP, tengo el
    script en JavaScript para su visualización con una
    página web (index.htm).
    Por lo que veo, Director MX 2004, es capaz de leer un
    JavaScript, es cierto?
    Cómo puedo hacer que un projecto hecho en Director,
    tenga en medio de la
    pantalla, la visualización de dicha cámara?
    Gracias de antemano.

    puedes postear ese script
    porque no consigo que me funciones mi webcam , en local
    (apache) mediante
    flash si, pero cuando accedo a mi servidor desde fuera solo
    veo un cuadro,
    no se conecta la camara
    gracias
    "Tony Angel" <[email protected]> escribió en el
    mensaje
    news:eu8i4o$m8v$[email protected]..
    > Buenas,
    >
    > Tengo un problemilla...
    >
    > Necesito que director me muestre el contenido de una
    camara IP, tengo el
    > script en JavaScript para su visualización con una
    página web (index.htm).
    > Por lo que veo, Director MX 2004, es capaz de leer un
    JavaScript, es
    cierto?
    >
    > Cómo puedo hacer que un projecto hecho en Director,
    tenga en medio de la
    > pantalla, la visualización de dicha cámara?
    >
    > Gracias de antemano.
    >
    >

  • SDK - Que debo tener, saber y hacer???

    Estrimados amigos del foro: Quisiera saber si hay o existe algun manual sobre SDK de que se necesita como instalarlo, ejemplos etc.
    algo asi como SDK primeros pasos o fundamentos basicos
    quiero saber que necesito para aprender y utilizar el SDK
    Slds
    Jesus Bocanegra

    Estimado Jesus
    el SDK soporta por defecto .NET y Java. Cuando tu instalas el SDK (C:\Program Files\SAP\SAP Business One SDK), se copia la documentacion y ejemplos los cuales te pueden servir de guia para iniciarte en el mundo de la programacion de ADDONS, de igualmanera existe el TB1300 que es la documentacion oficial para la certificacion en el SDK la cual solo esta disponible para los partners.
    De igual manera tambien puedes integrar otros lenguajes de programacion como PHP o cual quier otro que te permita invocar los objetos COM del SDK, y asi trabajar con uno de sus componentes el DI (interface de datos) con la cual creas los objetos de negocios (entradas y salidas de inventario, socios de negocio, cotizaciones, facturas...) y todos lo metodos relacionados con su respectivo objeto.
    el otro componente del SDK es el UI (interface de usuario), con el cual puedes crear ventanas y formularios sobre SAP, ademas de controlar los eventos.
    espero que esto te sirva de algo!
    Saludos,
    Andres Ramirez

  • Using Javascript to email a form in a workflow process

    I've created an Acroform which will be routed around in a workflow process.  The user will open the form, add information and hit a button which is coded in javascript usng the mailDoc function.
    It works perfectly EXCEPT that each time the document is forwarded, "Adobe Acrobat Pro.pdf" gets appended to the name of the file in the email.  It doesn't actually rename the file, so the file does open properly, but the email looks pretty goofy.
    Example.  The filename is Form14.pdf. 
    When the third person signs off and clicks the email button, the email is created, with the address, subject line and body of the email completed, and the document attached has the little icon and then
    - Form 14.pdf - Adobe Acrobat Pro.pdf - Adobe Acrobat Pro.pdf - Adobe Acrobat Pro.pdf
    Is there some way to prevent it from concatenating like this every time the document is emailed?
    Thanks!!!

    Maybe you could try it like this... I saw this question answered not too long ago.
    Submit Portal Form Values to Portal Report

  • Start workflow using javascript

    function AfterSave() {
    alert("in");
    var scriptbase = _spPageContextInfo.webAbsoluteUrl + "/_layouts/15/";
    $.getScript(scriptbase + "SP.js", function () {
    $.getScript(scriptbase + "SP.Runtime.js", function () {
    $.getScript(scriptbase + "SP.WorkflowServices.js", function () {
    var itemId=5;
    var subscriptionId = '{8891EB88-D7F6-495B-A420-877E74754522}';
    var clientContext = SP.ClientContext.get_current();
    var web = clientContext.get_web();
    clientContext.load(web);
    var wfManager = SP.WorkflowServices.WorkflowServicesManager.newObject(clientContext, clientContext.get_web());
    clientContext.load(wfManager);
    alert("in2");
    var subscription = wfManager.getWorkflowSubscriptionService().getSubscription(subscriptionId);
    clientContext.load(subscription);
    alert("in3");
    clientContext.executeQueryAsync(
    function(sender, args){
    alert("Subscription load success. Attempting to start workflow.");
    var inputParameters;
    wfManager.getWorkflowInstanceService().startWorkflowOnListItem(subscription, itemId, inputParameters);
    clientContext.executeQueryAsync(
    function(sender, args){ alert("Successfully starting workflow."); },
    function(sender, args){
    alert("Failed to start workflow.");
    alert("Error: " + args.get_message() + "\n" + args.get_stackTrace());
    function(sender,args){
    alert("Failed to load subscription.");
    alert("Error: " + args.get_message() + "\n" + args.get_stackTrace());
    function closeInProgressDialog() {
    if (dlg != null) {
    dlg.close();
    function showInProgressDialog() {
    if (dlg == null) {
    dlg = SP.UI.ModalDialog.showWaitScreenWithNoClose("Please wait...", "Waiting for workflow...", null, null);
    hi friends
    i am using above code to start workflow
    there is no error in code but it is not starting.
    please help me to figure out my problem

    Hi,
    You can't start workflow in Javascript object model in SP 2010
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/84659489-eba7-4a41-a137-820b01d4bc69/start-a-sharepoint-2010-workflow-using-javascript?forum=sharepointgeneralprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • JavaScript File, Save As para la consola de Acrobat XI

    ¿Cómo lograr que al guardar un formulario PDF con otro nombre utilizando el menú (File, Save As) solamente los campos que han sido rellenados pasen a modo (Read Only)?
    ¿Cuál sería el JavaScript?
    Aquí muestro la consola de JavaScript de Acrobat XI para que me indiquen en cual de ellas hay que aplicarla.

    Por favor. ¿Alguien me puede ayudar con este asunto? Párese que tiene su complejidad...

  • Using javascript:SP.UI.ModalDialog.showModalDialog with Workflow Initiation

    I'm trying to use "javascript:SP.UI.ModalDialog.showModalDialog" with a workflow initiation page.  I can get it to start but the "Cancel" Button doesn't work.  Can anyone give me a clue?
    javascript:SP.UI.ModalDialog.showModalDialog({url:"{SiteUrl}/Workflows/Assign%20Corrective%20Action/Assign%20Corrective%20Action.aspx?List={ListId}&ID={ItemId}&Source={Source}",title:"Custom Form"});return false;
    David Jenkins

    Hi David,
    To reproduce this issue, Could you give me your detailed process and code?
    In addition, for the 'Cancel' and 'Start' buttons, if you want to reture to the original page after clicking, you can open the custom workflow and create a rule and add a 'Close the form' action for the two button.
    Here is an article about starting a workflow with a initiated parameters through JavaScript, please take a look at:
    http://www.sharepointblogs.be/blogs/timmy/archive/2011/09/15/starting-a-workflow-with-a-initiated-parameters-through-javascript.aspx
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • How do I open a wps document on my Mac??

    How do I open a wps document on my Mac??  I have word.....

  • It's working, but is it a good or bad design?

    hiya I hope I�m not breaking any forum rules, but any help would be greatly appreciated. I haven�t really done any programming so far, so finally writing an app with more than few lines of code was something different. Anyways, I managed to write it,

  • Mail service in windows2003 server

    i have old server has windows 2003 server i want to apply mails through this server and i did that but my question  how can i connect between external mail and internal mail how can i create distribute list how can i backup mails

  • Gather schema statistics failes after atgrup7 on 11.5.10.2

    ORA-0000: normal, successful completion Start of log messages from FND_FILE In GATHER_SCHEMA_STATS , schema_name= ALL percent= 20 degree = 4 internal_flag= NOBACKUP Error #1: ERROR: While GATHER_TABLE_STATS: object_name=APPS._temp1***ORA-20001: _TEMP

  • Disabling save feautre in Adobe 9?

    Is there a way to do this? My co. is using encrypted pdf files for others in our co. to read. We can disable the print feature via security settings. Is there a way to disable saving on the same feature? These files truly need to be read only. Sugges