Author Topic: Manually load secondary data with security and filters  (Read 507 times)

Offline Misiu

  • Sr. Member
  • ****
  • Posts: 86
  • Karma: +0/-1
  • Gender: Male
    • View Profile
Manually load secondary data with security and filters
« on: June 04, 2019, 06:46:05 AM »
I'm developing custom control that will allow me to display read only data similar to Pivotal Secondary but with lazy loading - if my control is placed inside PivotalTab that is invisible I don't want to load data. The ata will be loaded only when tab gets visible.

I have PivotalCustomControlContainer and DataGridView in it. I know RecordId, I know the secondary name, now I want to load data for that secondary using Pivotal build-in mechanism (load data same way Pivotal is doing it, applying filters etc).

Is there a build-in method that allows me to load secondary data for a specific record?


Offline jricardodiazl

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Manually load secondary data with security and filters
« Reply #1 on: June 10, 2019, 04:11:17 PM »
Default.DataAccess.GetDataTable ???

Offline Misiu

  • Sr. Member
  • ****
  • Posts: 86
  • Karma: +0/-1
  • Gender: Male
    • View Profile
Re: Manually load secondary data with security and filters
« Reply #2 on: June 11, 2019, 02:31:51 AM »
I can't find that method?
What DLL is it in?
I'm creating my ClientTasks by extending FormClientTask.
Is this method available on the client side or only on the server side?

Offline MarcK4096

  • Jr. Member
  • **
  • Posts: 11
  • Karma: +1/-0
    • View Profile
Re: Manually load secondary data with security and filters
« Reply #3 on: August 26, 2019, 11:23:51 AM »
I think "DefaultDataAccess" is a member of the base server task class.  For client side, you would use something like Globals.GetDataTable.

If that's not sufficient, the source code for Globals.GetDataTable will be available in Applications.Core.Client project.