Jump to content

blarney

Members
  • Content Count

    9
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by blarney

  1. On 4/4/2017 at 0:46 AM, Ba2sai said:

    Hi Blarney,

     

    Try this:

    If your fieldname is "lineitemsku" and you want to focus on this Inline Insert field, try the code below.

    <script>
    {
    document.getElementsByName('InlineAddlineItemsku')[0].focus();
    }
    </script>

    Wow...that worked.

     

    I could've sworn that I had tried this already.... but I may have put the [0] in the wrong place. Thank you!!!!!!!!!!!!!!!!!!!!!

  2. I'm using a barcode reader to scan an order in a form, passing parameters to another form that scans the product sku, and the 2nd form opens itself up after each sku for however many skus are related to the order. It works well.

     

    The sum of the skus scanned by product are in another report datapage that updates on the same page the 2nd form is on. The report queries both the table used to scan skus for a sum by product, and a table containing data from shipping software that contains what should be shipped within it's table....

     

    The only issue with this setup is that I'd prefer to get rid of the 2nd form, and just scan the order# , then pass parameters to the report page and use inline edit to scan skus.... the barcode reader hits enter itself with each scan and I have the button hidden...  

     

    I can't get this done BECAUSE I can't get the cursor to focus on the inline edit field for skus when the first page opens the report.

     

    I think there should be an option for this like there is for forms....but since there isn't, I've been trying a bunch of scripts....here's my latest.... 

    Footer:

    <script>
    {
    document.getElementsByName('EditRecordInlineAddlineItemsku').focus();
    document.getElementsByName('EditRecordInlineAddlineItemsku').select();
    }
    </script>

     

    Any ideas how I might fix this???

     

×
×
  • Create New...