Skip to main content
Solved

Using the same view for multiple tabs in the modern UI


Forum|alt.badge.img+8
  • Captain II
  • 396 replies

Hello everyone,

 

I have a custom screen which uses the same view for multiple grids.

I have converted the screen to the modern UI but only one tab actually has a grid:

The others look like this:

This is my html:

<qp-tabbar id="CstPXTab13">
	<qp-tab id="tabAssembly" caption="Assembly">
		<qp-grid id="gridAssembly" view.bind="Details">
			<field name="PressNo"></field>
			<field name="PressID"></field>
			<field name="Core"></field>
			<field name="BatchNbr"></field>
			<field name="StartTemp"></field>
			<field name="FirstTime"></field>
			<field name="LastTime"></field>
			<field name="FirstTime"></field>
			<field name="OpenTimeMin"></field>
		</qp-grid>
    </qp-tab>
	<qp-tab id="tabPressSettings" caption="Press Settings">
		<qp-grid id="gridPressSettings" view.bind="Details">
			<field name="Pressurepsi"></field>
			<field name="StartTimePress"></field>
			<field name="ExitTimePress"></field>
			<field name="PressTimeMins"></field>
			<field name="StartTimePress"></field>
			<field name="CureTimeMins"></field>
		</qp-grid>
    </qp-tab>
	<qp-tab id="tabGlueLine" caption="Glue Line Settings">
		<qp-grid id="gridGlueLine" view.bind="Details">
			<field name="GSM"></field>
			<field name="Margins"></field>
			<field name="SpeedMmin"></field>
			<field name="BatchNbrptA"></field>
			<field name="BatchNbrptB"></field>
			<field name="Who"></field>
		</qp-grid>
    </qp-tab>
	<qp-tab id="tabMetalLine" caption="Metal Line">
		<qp-grid id="gridDetails" view.bind="Details">
			<field name="CoilRefFront"></field>
			<field name="CoilRefBack"></field>
			<field name="SpectroVal"></field>
		</qp-grid>
    </qp-tab>
</qp-tabbar>

and this is my ts:

@gridConfig({
	initNewRow: true,
	showFastFilter: GridFastFilterVisibility.False,
	preset: GridPreset.Details
})
export class PressGlueLogDetails extends PXView {

	@columnConfig({ width: 140 }) PressNo: PXFieldState;
	@columnConfig({ width: 70 }) PressID: PXFieldState;
	@columnConfig({ width: 70 }) Core: PXFieldState;
	@columnConfig({ width: 140 }) BatchNbr: PXFieldState;
	@columnConfig({ width: 180 }) StartTemp: PXFieldState;
	@columnConfig({ width: 90 }) FirstTime: PXFieldState;
	@columnConfig({ width: 90 }) LastTime: PXFieldState;
	@columnConfig({ width: 70 }) OpenTimeMin: PXFieldState;
	@columnConfig({ width: 70 }) Pressurepsi: PXFieldState;
	@columnConfig({ width: 90 }) StartTimePress: PXFieldState;
	@columnConfig({ width: 90 }) ExitTimePress: PXFieldState;
	@columnConfig({ width: 70 }) PressTimeMins: PXFieldState;
	@columnConfig({ width: 70 }) CureTimeMins: PXFieldState;
	@columnConfig({ width: 220 }) GSM: PXFieldState;
	@columnConfig({ width: 250 }) Margins: PXFieldState;
	@columnConfig({ width: 180 }) SpeedMmin: PXFieldState;
	@columnConfig({ width: 140 }) BatchNbrptA: PXFieldState;
	@columnConfig({ width: 140 }) BatchNbrptB: PXFieldState;
	@columnConfig({ width: 70 }) Who: PXFieldState;
	@columnConfig({ width: 220 }) CoilRefFront: PXFieldState;
	@columnConfig({ width: 220 }) CoilRefBack: PXFieldState;
	@columnConfig({ width: 70 }) SpectroVal: PXFieldState;
}

Has anyone successfully been able to use the same view on multiple tabs with the modern UI/ is there anything that  I am doing that is fundamentally wrong?

Best answer by Vignesh Ponnusamy

Hi ​@aiwan,

I tested using the out-of-the-box(ootb) Customers screen(AR303000), I created a new tab to duplicate Locations tab. I see the duplicate tab, I created loads but the ootb Locations tab isn’t load.

Once I refresh the ootb Location tab works,

 

Can you please confirm if you observe the similar behavior?

View original
Did this topic help you find an answer to your question?

2 replies

Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

Hi ​@aiwan,

I tested using the out-of-the-box(ootb) Customers screen(AR303000), I created a new tab to duplicate Locations tab. I see the duplicate tab, I created loads but the ootb Locations tab isn’t load.

Once I refresh the ootb Location tab works,

 

Can you please confirm if you observe the similar behavior?


Forum|alt.badge.img+8
  • Author
  • Captain II
  • 396 replies
  • January 15, 2025

Hi ​@Vignesh Ponnusamy,

 

This worked, thank you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings