Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to refresh the Section of UI Page from Handler class #746

Open
amitkumargne opened this issue Mar 11, 2021 · 0 comments
Open

Unable to refresh the Section of UI Page from Handler class #746

amitkumargne opened this issue Mar 11, 2021 · 0 comments

Comments

@amitkumargne
Copy link

amitkumargne commented Mar 11, 2021

Issue Details

Type of Issue (check one with "X")

[ ] Bug Report => Please search GitHub for a similar issue or PR before submitting
[ ] Feature Request => Please ensure feature is not already in progress
[ ] Support Request => Please do not submit support requests here, instead see: https://discourse.oss.antheminc.com/

Current Behavior

When we are trying to refresh one variable of CardDetail or complete card using executor's execute method by passing commandMessage. we are creating CommandMessage using CommandBuilder.withUri method and passed parameters are (resolvedCommandUrl.toString()).getCommand()

The value for that label in the UI is being displayed using ConfigUrl because variable does not belong to associated collection with that section.

Expected Behavior

That value or complete section should be refreshed which we are calling from our handler class.

How to Reproduce the Issue

Steps to Reproduce

Create one static inner class in any page using @CardDetail and create one variable with below properties:-
@path(linked=false)
@fieldvalue
@Label(value = "ABC")
private String abc;

Update the value of this variable from another section and that section should be linked to the collection from which we want to fetch this value from the database.

Now create one Handler class and call it in the config of the above created section not on the variable.
Once the page is loaded Make a call to any service which is changing the value of the above mentioned variable.
Fetch the updated value from DB.
Update the latest value coming from the DB on UI using executorGateway.execute method.

Code Snippet

Below variable is in CardDetailInfo

@path(linked=false)
@fieldvalue
@Label(value = "ABC")
private String abc;

@model
@Getter
@Setter
@MapsTo.Type(ACollection.class)
public static class OverviewTile {

	@Section
	@Initialize
	@Config(url = "<!#this!>/../abc/_process?fn=_set&url=/p/ACollection:<!/.d/.m/acollection/acollectionId!>/abc/_get?b=$state")
	})
	private OverviewSection overviewSection;

Environment Details

  • Nimbus Version:
  • Browser:

Google Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant