2 Replies Latest reply: Jan 11, 2013 11:07 AM by Marina Alvarez Ruiz RSS

    How to to a JScript Macro?

    Marina Alvarez Ruiz

      How to do something like this?

       

      Function fnConvTooQQ(uniBase,cantBase){

                var cantReturn;

                var factConv;

                if (uniBase=="LTA" || uniBase=="FGS" || uniBase=="QQ"){

                          cantReturn=cantBase;

                }

                else {

                          factConv = "LOAD FC as factConv FROM vConversionUM.qvd (qvd) WHERE UMO = uniBase and UMD='QQ'";

                          cantReturn = cantBase * factConv;                     

                }

                return cantReturn;

      };