axapta - How to hide grid in form when there is no data to show? -


i have 2 linked tables linked id.

one of them contains list of albums , second 1 list of songs.

i have them in data sources proper link types etc.

i have form 2 grids. 1 shows albums , second 1 show list of songs on album. work correctly if there songs on album. if there no song on album on second grid values. there should nothing shown. there wrong information based on previous clicked album song.

how can ensure if there no songs on album second grid empty or not shown @ all?

without problems: http://postimg.org/image/e2pvzmbfb

with data should not there:http://postimg.org/image/75xjyh9xt/

tables: album, songs (one song can on 1 album , linked album albumid. on song table there relation album.albumid==song.albumid)

there 2 data sources. 1 link albums (ds_albums). second link songs (ds_songs) joinsource ds_albums, link type delayed. there 2 grids linked data sources.

that's unusual behavior in axapta.

1.- check relation in songs table albums table.

2.- make sure second grid datasource ds_songs , not ds_albums, , parent controls has ds_songs or empty datasource property.

3.- perhaps what's happening ax creating empty record default if no records in ds_songs present given album record selected. if case, ax creates record related fields automatically filled. avoid this, go songs_ds datasource , put "insertifempty" property (or similar) "no".


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -