Posts

Showing posts from October, 2020

grid cell color changing

      <script type="text/javascript">         function setActionButtonColor()         {             var x = document.getElementsByClassName("toolsBtn");             var i;             for (i = 0; i < x.length; i++)             {                 if (x[i].getAttribute("data-cmd") === "attachments")                 {                                       x[i].style.backgroundColor = "red";                                    }             }             if (px_all && px_all["ctl0...

grid row color and button color in acumatica

 <CallbackCommands>             <px:PXDSCallbackCommand Visible="false" Name="FilesUpload" DependOnGrid="grid" />         </CallbackCommands>         <ClientEvents CommandPerformed="setActionButtonColor" />   <ClientEvents AfterCellUpdate="UpdateItemSiteCell" />  //it will use for after row updation grid change color of row. <script type="text/javascript">         function UpdateItemSiteCell(n, c) {             var activeRow = c.cell.row;             if (px_all && px_all["ctl00_phG_tab_t0_grid"] && px_all["ctl00_phG_tab_t0_grid"].rows) {                 let lines = px_all["ctl00_phG_tab_t0_grid"].rows.items;                 for (let i = 0; i < lines.length; i++) {         ...

acumatica-multiline-pxgridcolumn-display-new-lines

https://stackoverflow.com/questions/56452489/how-can-i-make-an-acumatica-multiline-pxgridcolumn-display-new-lines