• pierjsap

    Hello guys, could someone explain to me how to set the "HTTP Receiver" step by step? I read several posts in the forum and the guide that appears by clicking "?" but I have no idea where to start ...
    In practice I should do a POST to the DataSource. I tried to ping it but without success.
    Thanks ;)

    posted in User help read more
  • pierjsap

    @CraigWeb problem solved i hope that this could help you.

    <button onclick="goBack()">Go Back</button>
    
    <script>
    function goBack() {
        window.history.back();
    }
    </script>
    

    posted in User help read more
  • pierjsap

    It's only an user case schema. Your code works good ;) but the problem is how i can preserve the path through the pages.
    I try to do it by JQuery script with a sobstituition of button properties

    posted in User help read more
  • pierjsap

    @CraigWeb thanks for help me.
    0_1524129396133_step.jpg
    What I wanted to say is that if I browse between the pages
      page1-> page2-> page3-> page4
    when I press the button to make the "back" from page 4 I can go back to 3, but not to page2 because the button is set for redirect to the home.
    In practice I can not go back according to this scheme
    page4-> page3-> page2-> page1
    but I get this result
    page4-> page3-> page1
    In practice, the previous connections are lost.
    I misunderstood the operation, or is there any way to memorize the path I travel?

    posted in User help read more
  • pierjsap

    I created 3 pages with the url path /pagex?origin

    page 1

    <div class="ma-designer-root" id="0ea3f8fc-f27f-495c-a6c2-0ede6e2176ed" style="width: 1366px; height: 768px; position: relative;">
    
      <md-button id="cd4e96ca-a9b8-48b8-a333-63ab36d14bee" class="md-button md-raised 
     md-accent" ui-state="'ui.page2'" icon="input" ui-state-params="{origin:'page1'}" > Go to Page2</md-button>
     
    <div>_______________________</div>
    
        <md-button id="a4a9bc55-c8b7-4459-85fc-1d100375528e" class="md-button md-raised 
     md-accent" ui-state="'ui.page3'" icon="input" ui-state-params="{origin:'page1'}"> Go to Page3</md-button>
    </div>
    

    page2

    <div class="ma-designer-root" id="2b4f31e8-d270-4d75-9270-cbafbe137ec1" style="width: 1366px; height: 768px; position: relative;">
        
          <md-button id="cd4e96ca-a9b8-48b8-a333-63ab36d14bee" class="md-button md-raised 
     md-accent" ui-state="'ui.page3'" ui-state-params="{origin:'page2'}" style="position: absolute; 
     left: 79.2188px; top: 50px; width: 115.766px; height: 36px;"> Go to Page3</md-button>
        
        
       <md-button id="cd4e96ca-a9b8-48b8-a333-63ab36d14bee" class="md-button md-raised md-accent" ui-state="'ui.'+stateParams.origin" style="position: absolute; left:  79.2188px; top: 150px; width: 115.766px; height: 36px;">BACK</md-button>
       
       </div>
    

    page3

    <div class="ma-designer-root" id="492c2e27-20fa-4094-a35c-97b0f7797da8" style="width: 1366px; height: 768px; position: relative;">
          <ma-ui-state-params  stateParams = $stateParams></ma-ui-state-params>
    
          <md-button id="cd4e96ca-a9b8-48b8-a333-63ab36d14bee" class="md-button md-raised md-accent" ui-state="'ui.'+stateParams.origin" style="position: absolute; left:  79.2188px; top: 150px; width: 115.766px; height: 36px;">BACK to {{stateParams.origin}}</md-button>
        
    </div>
    

    This works but if i navigate from the sidenav the value of "origin" was lost as @CraigWeb talks about...
    How could pass dinamically the value?

    I've thought to a thing like ng-if="StateParams.origin=='<nullValue/orEmpty>' ? StateParams.origin= <thisPage.ui.state > " if i clicked sidenav...

    @phildunlap @Jared-Wiltshire could you give me an idea to realize it? Thanks in advance! ;)

    posted in User help read more
  • pierjsap

    Hi guys,
    I should read a file in CSV format. I noticed that among the various datasources there are two that I could exploit: "ASCII file Reader" and "DATA FILE". there is some guide or reference to understand how it works. Because I searched inside the forum and in the documentation and I did not understand how it works. Could you give me some examples? Thanks in advance

    posted in User help read more
  • pierjsap

    0_1523611977311_dinamicLink.jpg
    Good morning guys,
    I have difficulty passing parameters from one page to another.
    This is the situation: In the MainPage I can access via an absolute path button to the MasterPageItems which in turn contains the buttons that take me to the desired item page for supervision.
    On the main page I have another button that depending on whether a device is in alarm color and I have to directly access the page of the item without going through the masterPageItems.
    Once I access the page of the item in alarm state I have to associate the link to a button with the origin of the link in this case the path is ui.MainPage.masterPageItems.item3page. In practice I have to make a back to the page I come from. I thought to bind the path of origin and pass it to the destination page that will set the s-ref = "page of origin".
    how could I achieve this?
    Obviously the source page is not always the same.

    posted in User help read more
  • pierjsap

    Hi @Jared-Wiltshire ,

    I developed a similar thing using the admin template.
    As soon as I have 2 minutes I send screenshots so that other users can benefit from it.
    Thank you very much for the help you gave me.

    posted in User help read more
  • pierjsap

    0_1523348925717_navbar2.jpg
    Hi @Jared-Wiltshire , thanks for the solution, but when i navigate inside pages sidenav and toolbar disappears.
    Is there a way to maintain the structure and associate the navigation you have developed?
    Below I bring you an example of what I would like to get0_1523349174232_navbar3.jpg

    posted in User help read more

Looks like your connection to Mango Automation Forum was lost, please wait while we try to reconnect.