Overview
Summary
Contact
Donate
Imprint
Prompt for the
AlertRuleView
Please create a React-JS view called "AlertRuleView" for the fields of the AlertRule entity. The AlertRuleView must contain the following fields: - name: AlertType type: STRING - name: CreatedUtc type: DATE - name: Description type: STRING - name: GeographicalArea type: GeographicalArea - name: IsActive type: BOOL - name: Name type: STRING - name: Port type: Port - name: ThresholdSpeed type: STRING - name: UserAccount type: UserAccount - name: Vessel type: Vessel The data source for the [Vessel] select control should be loaded from the relative URL: "/VesselService/vessel" (HTTP-GET) The data source for the [Port] select control should be loaded from the relative URL: "/PortService/port" (HTTP-GET) The data source for the [GeographicalArea] select control should be loaded from the relative URL: "/GeographicalAreaService/geographicalarea" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing AlertRule entity should be loaded from the relative URL: "/PortService/alertrule/{id}" (HTTP-GET) If a new AlertRule entity has been created, the new entity should be posted to the relative URL: "/PortService/alertrule" (HTTP-POST) If an existing AlertRule entity has been updated, the modified entity should be sent to the relative URL: "/PortService/alertrule/{id}" (HTTP-PUT) If an existing AlertRule entity has to be deleted, the following relative URL should be called: "/PortService/alertrule/{id}" (HTTP-DELETE) Add a HTML table to the view with the following AlertEvent columns: - column: Vessel - column: GeographicalArea - column: PositionReport - column: AlertRule - column: EventDescription - column: TriggeredUtc - column: Port The table should have the title "AlertEvents" und the data must be loaded from the server with the following relative URL: "/PortService/alertevent/alertrule/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint