Hi,Below is the code under a button:
DocForEdit := EntityCode + “01”;
@Command([FileOpenDatabase]; @DbName ; “LookUpRisksByEntity” ; DocForEdit);
@Command( [OpenDocument];“1”);
@Command([OpenView] ; “LookUpRisksByEntity”);
@Command([FileCloseWindow])
On clicking the button, I am getting an message “View or Navigator 'LookUpRisksByEntity” does not exist".
Where am I wrong ? Pls help…
Subject: View or Navigator does not exist
Just a wild guess…
I think the view “LookUpRisksByEntity” doesn’t exist in the database
Is it spelt correctly? Can the user clicking the button access the view if it does? Is the correct database being opened?
Subject: RE: View or Navigator does not exist
Everything is perfect… the view is spelled correctly, it has to be opened in the same database, the view does exist…
Wonder why the message pops up !!!
Subject: RE: View or Navigator does not exist
Do the view properties say it should be opened in a particular frameset? Is there anything in the Query/PostOpen events of the view?
In what context is the button? View action, button on a form etc?
Subject: RE: View or Navigator does not exist
The view’s alias name is “LookUpRisksByEntity”. There are no other view in this name neither the alias.
There is no property set in the View to open in a designated frameset.
There are no Query/post open events in the view.
Subject: RE: View or Navigator does not exist
"Try just@Command([OpenView] ; “LookUpRisksByEntity”);
Does that work?"
Does @Command([FileOpenDatabase]; @DbName ; “LookUpRisksByEntity” ; DocForEdit) alone stem the same error, or is it just @Command([OpenView] ; “LookUpRisksByEntity”) (which would be surprising, indeed)?
And my I ask what this formula is expected to achieve?
Subject: Let’s make sure first it’s the line you think it is creating the problem
Try just@Command([OpenView] ; “LookUpRisksByEntity”);
Does that work?
Does the view have any alias names? Are there any other views with the same name or alias?