Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Help with Dexterity ListView

Posted on by 250

Hello,

I am trying to create a simple list view with two columns (FirstName, LastName). I have tried everything but I cant get the second column (the sub item) to appear. Here is the code I am using:

item_index = ListView_ItemAdd('(L) List View1',"AARON" , 0);
result = ListView_ItemSetSubitem('(L) List View1', item_index, 1, "FITZ");
column_index = ListView_ColumnAdd('(L) List View1', "First Name", 0);
column_index = ListView_ColumnAdd('(L) List View1', "Last Name", 1);

Your help is much appreciated.
Ruaa

*This post is locked for comments

  • DinB Profile Picture
    DinB 3,812 on at
    Re: Help with Dexterity ListView

    Scott, thanks that solves my issue.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Help with Dexterity ListView

    You have to set the view mode, which isn't really mentioned except in the function reference.  

    local integer previousViewMode = ListView_SetView('(L) Your List View', LV_REPORT_VIEW);

    Constant Description

    LV_SMICON_VIEW      Small icon view

    LV_LGICON_VIEW      Large icon view

    LV_LIST_VIEW             List view

    LV_REPORT_VIEW     Report view

  • DinB Profile Picture
    DinB 3,812 on at
    Re: Re: Help with Dexterity ListView

    Anybody can help on this? I am trying to create similar List View, but I am getting same results as Roaa above.

  • Roaa Bahran Profile Picture
    Roaa Bahran 250 on at
    Re: Re: Help with Dexterity ListView

    Hi David,

     No I dont get any headings at all. The only thing that is displayed is the text "AARON".

    Ruaa

  • winthropdc Profile Picture
    winthropdc on at
    Re: Help with Dexterity ListView

    I can't see anything wrong with the code.

    Do you get two column headings?

    David Musgrave [MSFT]
    Escalation Engineer - Microsoft Dynamics GP
    Microsoft Dynamics Support - Asia Pacific

    Microsoft Dynamics (formerly Microsoft Business Solutions)
    http://www.microsoft.com/Dynamics

    mailto:David dot Musgrave at microsoft dot com
    http://blogs.msdn.com/DevelopingForDynamicsGP

    Any views contained within are my personal views and not necessarily Microsoft policy.
    This posting is provided "AS IS" with no warranties, and confers no rights. 

     

     

     

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans