Skip to Content
author's profile photo Former Member
Former Member

Creation of Buttons in Agentry


Hi,

I need to create few buttons in form of two rows. In the first row there will be 3 buttons which define activity type - Work, Lunch, Drive. In the second row there will be 3 buttons - Start, Pause and Hold.

For Eg, if the user clicks on Work button in first row and then on start button in second row then the timer should start. If user now clicks on Hold the this timer should be paused and if he clicks on Stop button then the timer should be stopped. Finally I need to calculate the total time duration taken for this particular activity and send it to the backend. I need to perform these actions in Agentry. Similarly the user may click on other two buttons like Lunch and Drive and click on any of the three buttons in second row.

Please let me know what type of buttons to be used while creation and how to configure the properties for these buttons so that I can have the timer being worked according to the actions of the user.

I would be using Agentry for designing these buttons and Java for sending the data to backend.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Apr 14, 2014 at 04:25 AM

    Madhuri,

    You can of course use screen buttons to control your actions. These would display on the side or bottom of the screen. Otherwise, you can use button fields on a detail screen which you can then position anywhere you desire.

    Adding a button field is simply a matter of adding a field to the screen and setting the Edit Type to button. After changing the edit type and clicking save you will see a Button tab on the properties pane (see image below).

    You can change the button appearance based on your need. Based on your description you will probably want Push Buttons where you then assign actions to run when the button is pressed.

    You can define properties on your main object to hold the type of button pressed and also the start time. For each of the buttons define a transaction to edit the property on the main object setting the type based on which of the three were pressed.

    When the start is pressed, use an edit transaction to set the start time to the current time.

    Then when either the hold or stop button is pressed you can define your transaction to genearte the time entry and use before/after data entry rules on the transaction properties to calculate the elapsed time or simply store the start / stop times along with the type and perform the calculation as part of your update step to the backend.

    Hopefully this will help you get started.

    --Bill


    button-prop.png (19.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.