cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Add gadgets to dashboard

dwightwhe
1-Newbie

Add gadgets to dashboard

Hi,

I'm trying to let users add gadgets to their dashboards based on gadget visibility.

Is there a way to have an add gadget selector that is not based on a predefined mashup? Select by magic picker would be just fine.

EDIT: I created a new mashup. It has dashboard, group and gadget picker lists (using DashboardResource services) and a button to add a gadget to a dashboard group. This kinda works but there are 2 downsides: I need a master mashup to show this popup, and the dashboard does not automatically refresh after a gadget gets added. Any ideas how to refresh the dashboard?

Thanks!

3 REPLIES 3

<p>You can use add gadget capability in your own dashboard group.<br> <ol start="1" type="1"><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;<br /> text-align:left;line-height:normal;mso-pagination:widow-orphan;mso-list:<br /> l0 level1 lfo1;tab-stops:list 36.0pt;text-autospace:ideograph-numeric ideograph-other;<br /> word-break:keep-all"><span style="font-size:12.0pt;font-family:<br /> 굴림;mso-bidi-font-family:굴림;mso-font-kerning:0pt" lang="EN-US">Creating gadgets.</span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;<br /> text-align:left;line-height:normal;mso-pagination:widow-orphan;mso-list:<br /> l0 level1 lfo1;tab-stops:list 36.0pt;text-autospace:ideograph-numeric ideograph-other;<br /> word-break:keep-all"><span style="font-size:12.0pt;font-family:<br /> 굴림;mso-bidi-font-family:굴림;mso-font-kerning:0pt" lang="EN-US">Creating a gadget library<br /> mashup. This is the mashup that gadgets can be added to within the<br /> dashboard. ( You can add multiple gadgets as you define mashup layout. )</span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;<br /> text-align:left;line-height:normal;mso-pagination:widow-orphan;mso-list:<br /> l0 level1 lfo1;tab-stops:list 36.0pt;text-autospace:ideograph-numeric ideograph-other;<br /> word-break:keep-all"><span style="font-size:12.0pt;font-family:<br /> 굴림;mso-bidi-font-family:굴림;mso-font-kerning:0pt" lang="EN-US">Remember your </span><span style="font-size:12.0pt;font-family:<br /> 굴림;mso-bidi-font-family:굴림;mso-font-kerning:0pt" lang="EN-US">gadget library<br /> mashup</span></li></ol><br /><br /><span style="font-size:12.0pt;line-height:115%;font-family:굴림;<br />mso-bidi-font-family:굴림;mso-font-kerning:0pt;mso-ansi-language:EN-US;<br />mso-fareast-language:KO;mso-bidi-language:AR-SA" lang="EN-US">4. Creating a dashboard mashup.<br>5. </span><span style="font-size:12.0pt;line-height:115%;font-family:굴림;<br />mso-bidi-font-family:굴림;mso-font-kerning:0pt;mso-ansi-language:EN-US;<br />mso-fareast-language:KO;mso-bidi-language:AR-SA" lang="EN-US"><!--[if gte mso 9]><xml><br /> <o:OfficeDocumentSettings><br /> <o:AllowPNG></o:AllowPNG><br /> </o:OfficeDocumentSettings><br /></xml><![endif]--><span style="font-size:10.0pt;mso-bidi-font-size:<br />11.0pt;line-height:115%;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;<br />mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-latin;<br />mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;<br />mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA" lang="EN-US">In the<br />mashup parameters window, in the <b>MashupToAddGadgets</b> field, use the magic<br />picker to select the previously created your own gadget library mashup.<br><br>6. Save your dashboard mashup and you can use add gadget function in your building dashboard mashup.</span><!--[if gte mso 9]><xml><br /> <w:WordDocument><br /> <w:View>Normal</w:View><br /> <w:Zoom>0</w:Zoom><br /> <w:TrackMoves></w:TrackMoves><br /> <w:TrackFormatting></w:TrackFormatting><br /> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery><br /> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery><br /> <w:ValidateAgainstSchemas></w:ValidateAgainstSchemas><br /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid><br /> <w:IgnoreMixedContent>false</w:IgnoreMixedContent><br /> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText><br /> <w:DoNotPromoteQF></w:DoNotPromoteQF><br /> <w:LidThemeOther>EN-US</w:LidThemeOther><br /> <w:LidThemeAsian>KO</w:LidThemeAsian><br /> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript><br /> <w:Compatibility><br /> <w:SpaceForUL></w:SpaceForUL><br /> <w:BalanceSingleByteDoubleByteWidth></w:BalanceSingleByteDoubleByteWidth><br /> <w:DoNotLeaveBackslashAlone></w:DoNotLeaveBackslashAlone><br /> <w:ULTrailSpace></w:ULTrailSpace><br /> <w:DoNotExpandShiftReturn></w:DoNotExpandShiftReturn><br /> <w:AdjustLineHeightInTable></w:AdjustLineHeightInTable><br /> <w:BreakWrappedTables></w:BreakWrappedTables><br /> <w:SnapToGridInCell></w:SnapToGridInCell><br /> <w:WrapTextWithPunct></w:WrapTextWithPunct><br /> <w:UseAsianBreakRules></w:UseAsianBreakRules><br /> <w:DontGrowAutofit></w:DontGrowAutofit><br /> <w:SplitPgBreakAndParaMark></w:SplitPgBreakAndParaMark><br /> <w:EnableOpenTypeKerning></w:EnableOpenTypeKerning><br /> <w:DontFlipMirrorIndents></w:DontFlipMirrorIndents><br /> <w:OverrideTableStyleHps></w:OverrideTableStyleHps><br /> <w:UseFELayout></w:UseFELayout><br /> </w:Compatibility><br /> <m:mathPr><br /> <m:mathFont m:val="Cambria Math"></m:mathFont><br /> <m:brkBin m:val="before"></m:brkBin><br /> <m:brkBinSub m:val="&#45;-"></m:brkBinSub><br /> <m:smallFrac m:val="off"></m:smallFrac><br /> <m:dispDef></m:dispDef><br /> <m:lMargin m:val="0"></m:lMargin><br /> <m:rMargin m:val="0"></m:rMargin><br /> <m:defJc m:val="centerGroup"></m:defJc><br /> <m:wrapIndent m:val="1440"></m:wrapIndent><br /> <m:intLim m:val="subSup"></m:intLim><br /> <m:naryLim m:val="undOvr"></m:naryLim><br /> </m:mathPr></w:WordDocument><br /></xml><![endif]><![if gte mso 9]><![endif]><![if gte mso 10]>

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"표준 표";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:115%;
mso-pagination:widow-orphan;
font-size:10.0pt;
mso-bidi-font-size:11.0pt;
font-family:"맑은 고딕";
mso-ascii-font-family:"맑은 고딕";
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"맑은 고딕";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:"맑은 고딕";
mso-hansi-theme-font:minor-latin;
mso-font-kerning:1.0pt;}

<![endif]> </span><![if gte mso 9]><![endif]><![if gte mso 9]><![endif]><![if gte mso 10]>

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"표준 표";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:115%;
mso-pagination:widow-orphan;
font-size:10.0pt;
mso-bidi-font-size:11.0pt;
font-family:"맑은 고딕";
mso-ascii-font-family:"맑은 고딕";
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"맑은 고딕";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:"맑은 고딕";
mso-hansi-theme-font:minor-latin;
mso-font-kerning:1.0pt;}

Hi.

I am also trying the same. How can achieve this use case??

Thanks & Regards,

Sathishkumar C

Hi..

I think i found a Solution.

Use below code to achieve:

var params = {

tags: undefined /* TAGS */

};

// result: INFOTABLE dataShape: RootEntityList

var result = Resources["DashboardFunctions"].SearchGadgets(params);

Thanks.

Top Tags