Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7514059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:22:54+00:00 2026-05-30T00:22:54+00:00

I am having an issue populating a data table with the correct data. I

  • 0

I am having an issue populating a data table with the correct data.

I have a Data Table that I am using in a form. It is called userConfigProfiles. It has a 2 FK columns groupId(this joins to UserGroupInfo) and corpProfileId(this joins to a table I created). That data in userConfigProfiles is populated from another form and is currently populated appropriately.

The issue is, I need to create a drop down on the SalesTable form that shows a subset of the rows in userConfigProfiles based off of what UserGroups the current user is in.

I tried to do this by adding the below code to the table, userConfigProfiles in the SalesTable form:

public void init()
{
    userConfigProfiles.data(userConfigProfiles::find());

    super();
}

Then I added this find method to the Table itself:

static public userConfigProfiles find()
{
    userConfigProfiles userProfile;
    UserGroupList userGroupList;

    str 8 u = curUserId();

    select *
    from userProfile
    order by userProfile.bdcProfileId
        join userGroupList
    where userProfile.groupId == userGroupList.groupId
        && userGroupList.userId == u;

    return userProfile;
}

However, it appears that even though my find method is called and it returns the correct data it is not affecting the data that goes into the drop down list on my form.

My drop down list is a StringEdit field with a DataSource of userConfigProfiles and a DataField of corpProfileId.

I am pretty sure there are several ways to solve my problem and I am open to any of them, even if it means removing all of my code and doing the drop down box completely differently.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:22:55+00:00Added an answer on May 30, 2026 at 12:22 am

    Create a query using table UserConfigProfiles with an exist join (property joinMode) to table UserGroupList, use the appropriate relation, then add a range on field UserId with a value of (currentUserId()).

    This value is a dynamic query expression which is provided by the class SysQueryRangeUtil.

    Finally create a lookup using class SysTableLookup using your query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an issue here that I have tried everything I can think of but
I'm having an issue with a standard ASP.NET page that has a TextBox and
having an issue using a NSMutableArray; In my implementation file applicationDidFinishLaunching method I have
Experts, I'm having issue when sending emails out. Currently, I have a feedback form
Having a very strange issue regarding postback in ASP.NET. I have page dynamically populating
We have a device that support SAE J1939 interface and having issue with finding
I have a FlowLayoutControl on my form that I am populating with 20-100 graphics
I am having issue in checking which input has been clicked using unobstructive javascript.
I have multiple DIVs on my page and I'm having problems populating the correct
I'm having issue assigning regex value to a string. Issue that I have is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.