Lookup filter in master-detail grid-add

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
darkdragon
User
Posts: 151

Lookup filter in master-detail grid-add

Post by darkdragon »

Hello,

What logic should apply to filter out records in a select field, in the details section of a master-detail page.

I'm in insert mode, I assume that the details section is in "gridadd" action.
The thing is I do not want to filter out the record with CurrentPageID == "list", as the records should be visibile in grid-list, only if I'm in insert/grid-add mode.

this condition is not filtering out the records (in Lookup_Selecting):

	string sFilterLookup = "";

	if (fld.Name == "FiledName") {

		if ((CurrentPageID() == "add") || ((CurrentPageID() == "list") && (CurrentAction == "gridadd"))) {
			
			sFilterLookup += "[Hidden] = 0";
		}

		fld.Lookup.UserFilter = sFilterLookup;
	}

MichaelG
User
Posts: 1113

Post by MichaelG »

in the details section of a master-detail page

If you are referring to master/detail add/edit, then the page id should be "add" / "edit".


Post Reply