0 votes

I try to force into the tab chart an other kind of widget. I have to display a grid like into overview.
So I basically tried to charging OvrwWidget rather than ChrtWidget.
I tried first by charging a standard Macro provide into the OvrwWidget. But no return.
Then i tried by returning "xxxx" displayed into the macro. Nothing.
After I seach how my content was charged. I shown the option Page to generate an iframe.
No more result.

So is there any way to change widget into chart tab or something reduce each DETAIL on one type of content. HIGHCHARTS for CHRT and MACRO for OVRW

Here one of my tests

<%Macro("OvrwBoxWidget", rights="Sale", $KEY$=3, $KIND$="Page", $SENTITY$="Sale", $TITLE$="Details by Articles (Month year vs Month previous year)",
                $CONFIG$=|{url:"consult?key=<%GetKey()%>&entity=<%GetEntity()%>&detail=Ovrw&_MACRO=SalesDetailVolCAM&_MACROFILE=MacroWidgets.txt&norecent=T"}|)%>
asked in Efficy/ Client side by (285 points)

1 Answer

0 votes

Hi,

I add in the MacroConsultCustom.txt the following macro :

DetailSpecial..Chrt {[
    <div id="dash-board">
        <div class="Widgetbox" rel="1" <%OnMobile(else='style="width:39.7%; float:left"')%>>
            <%Macro("ChrtWidget", rights="Acti", $KEY$=2, $KIND$="Highcharts", $SENTITY$="Acti", $TITLE$="Sales Activity",
                $CONFIG$=|{url:"consult?key=<%GetKey()%>&entity=<%GetEntity()%>&_MACRO=SalesActivity&_MACROFILE=MacroWidgets.txt&norecent=T"}|)%>

        </div>
        <div class="Widgetbox" rel="2" <%OnMobile(else='style="width:59.7%; float:right"')%>>
            <%Macro("OvrwWidget", rights="Proj", $SENTITY$="Proj", $KEY$=4, $KIND$="Macro", $TITLE$="Recent Projs",
                $LINK$=|javascript:Consult('<%GetEntity()%>', <%GetKey()%>, 'Proj')|, $HINT$=|Show Projs|,
                $CONFIG$=|{url:"consult?key=<%GetKey()%>&entity=<%GetEntity()%>&detail=Proj&_MACRO=LastProjects&_MACROFILE=MacroWidgets.txt&norecent=T"}|)%>
        </div>
    </div>
]}

Note that I ve only used standard macro to be sure the widgets code is not involved in the result.

This is what I get :
enter image description here

which is what I think you try to have... (if not just tell me)

answered by (989 points)
It was something like that I try to do without success. I tried to use it like that but the widget was empty each time. One of my colleague found a way to use the standard grid, but without using the macrowidget.
this is weird because what I use is the standard..
1,249 questions
1,519 answers
1,859 comments
328 users