Hexagon Geospatial
MENU

GeoMedia Smart Client

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Reply
Frequent Contributor
Posts: 91
Registered: ‎04-03-2017
Accepted Solution

Hiding FormReport using Javascript

Hi there,

 

Are formreports similar elements to formtabs, formfields etc?

 

I want a report to be hidden if the user has a certain role, but can't seem to get it working with Javascript.

The below are the formtabs but how can I include the formreport here?

 

if (IG.form.id == 'EFM_Weeding_Management_Edit') { //If creator is BRS and viewer is NL, or vice versa formtabs not visible JG12/02/2019
		if (IG._form.getItemById('CreatorRole').value() == 'Natural Systems Contractor' && IG._form.getItemById('ContractorRole').value() == 'Broad Spectrum Weeds') {
			IG.form.getItemById('Basic_Info_Tab').visible(false);
			IG.form.getItemById('Action_Details_Tab').visible(false);
			IG.form.getItemById('Ground_Flora_Tab').visible(false);
			IG.form.getItemById('Scrambling_Tab').visible(false);
			IG.form.getItemById('Woody_Tab').visible(false);	
			IG.form.getItemById('MapTab').visible(false);			
		} else if (IG._form.getItemById('ContractorRole').value() == 'Natural Systems Contractor' && IG._form.getItemById('CreatorRole').value() == 'Broad Spectrum Weeds') {
			IG.form.getItemById('Basic_Info_Tab').visible(false);
			IG.form.getItemById('Action_Details_Tab').visible(false);
			IG.form.getItemById('Ground_Flora_Tab').visible(false);
			IG.form.getItemById('Scrambling_Tab').visible(false);
			IG.form.getItemById('Woody_Tab').visible(false);
			IG.form.getItemById('MapTab').visible(false);
		};

Regards,

 

Josh

Highlighted
Frequent Contributor
Posts: 91
Registered: ‎04-03-2017

Re: Hiding FormReport using Javascript

Sorted. The report is no longer in use so I'll just remove it from the workflow.

Polls
Please register to vote
Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.