Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Dexterity get table not working

Posted on by 2,845

In dexterity coding I have written a trigger for scroll window line fill. The line fill firing properly, in that I have written dexterity coding to get particular table value. I have passed key fields of that table and written get table statement. The problem is "get table" statement not get that table's record, also the err() statement returns "0" only. I don't why Please help?

Thanks

Manikandan.S

*This post is locked for comments

  • Verified answer
    Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: Dexterity get table not working

    Hi thanks to all,

    I have found the solution, Actually I have inserted values to the TABLE1 by copying from the excel sheet. It was added some additional space with field values. So that it was not retrieved properly.

    Thanks,

    Manikandan.S

  • Suggested answer
    soma Profile Picture
    soma 24,406 on at
    RE: Dexterity get table not working

    Mani,

    Use the below "range where" condition to set range and check whether it is working or not.

    range table SOP_LINE_TEMP where physicalname ( 'Item Number' of table TABLE1)+ " = '"+  'Item Number' of table IV_Serial_MSTR +"' and "+ physicalname (Bin of table TABLE1 )+ " = '"+ 'Bin of table IV_Serial_MSTR +"' and "+ physicalname ('Serial Number' of table TABLE1)+ " = '"+ 'Serial Number' of table IV_Serial_MSTR +"'";

    Hope this helps!!!

  • Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: Dexterity get table not working

    Hi Naga,

    At first I have tried with windows fields, but it was empty value. Only table had the correct value. That is why I have chosen the table values.

    Thanks

    Manikandan.S

  • Suggested answer
    Naga Kiran Profile Picture
    Naga Kiran on at
    RE: Dexterity get table not working

    Hi Manikandan,

    So I see you are setting the data based on the scroll table IV_Serial_MSTR. I suggest you to set the TABLE1's key fields from the Scroll window fields, instead of the Table IV_Serial_MSTR.

    Hope it works.

  • Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: Dexterity get table not working

    Hi Naga,

    Thanks for your response, I have not run the SQL profiler, Could you explain how SQL profiler useful in this case. Here is my coding


    release table TABLE1 ;
    clear table TABLE1 ;
    range clear table TABLE1 ;


    'Item Number' of table TABLE1 = 'Item Number' of table IV_Serial_MSTR;
    Bin of table TABLE1 = Bin of table IV_Serial_MSTR;
    'Serial Number' of table TABLE1 = 'Serial Number' of table IV_Serial_MSTR;

    get table TABLE1 by MB_YSL_Serial_Key1;
    if err(table TABLE1 ) = OKAY then
    'MB Manifest Number' of window IV_Serial_Number_Inquiry_Scroll of form IV_Serial_Number_Inquiry = 'MB Manifest Number' of table TABLE1 ;
    end if;

  • Naga Kiran Profile Picture
    Naga Kiran on at
    RE: Dexterity get table not working

    Did you check in SQL Profiler when the get table statement executed. Could you post the script you have written.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans