Replies: 1 comment
-
try this in grid editor: private _flightId: number;
public get FlightId() {
return this._parentEntityId;
}
public set FlightId(value: number) {
if (this._flightId!== toId(value)) {
this.setEquality(thisFlightId(), this._flightId= toId(value));
this.refresh();
}
} in dialog parent: this.form.EventList.FlightId= toId(this.EntityId); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a dialog on which I have a custom editor that populates linked data from another row. In order to filter some of the data in the editor i need a parameter passed in from the dialog to the editor. How do i do that? The following is my working code (that does not do the filtering). The editor displays a dropdown of EventTypeRow and the selected item then generates a record of type EventRow. I need to pass in FlightsRow.StudTypeID in order to filter the EventTypes displayed.
Thank you very much for your assistance and guidance.
FlightsDialog:
`import { any, Decorators, EntityDialog, Fluent, formatDate, localText, TabsExtensions, ToolButton, WidgetProps } from '@Serenity-
is/corelib';
import { FlightsForm, FlightsRow, FlightsService } from '../../ServerTypes/Schedule';
import { EventTypeDialog } from '../../Settings/EventType/EventTypeDialog';
import { EventEditor } from '../../Settings/Event/EventEditor';
This is the editor that need the parameter for the filtervalue option in the lookupeditor.
FlightsRow
Beta Was this translation helpful? Give feedback.
All reactions