How to access Custom Form data within the AtTask REST API (version 4+)? - api

For a project I'm working on, I need to access Custom Form data via the AtTask REST API. Specifically, I need to surface the text associated with any checked checkboxes within a custom form.
To see where this data might be visible, I've done a query of the form:
https://<company>.attasksandbox.com/attask/api/v4.0/task/search?method=get&sessionID=xxxxxxxx&fields=parameterValues
...but I'm not seeing the checkbox data I'm looking for.
Is it possible to surface this kind of data via the API?
If so, what's the proper syntax?

The parameterValues fields will return all the custom data that is set on the task. You can request the specific parameter by calling it by name like DE:Parameter Name. Both will only return the selected values of the checkbox. If you would like all values for the field then you will need to pull them from the parameter and parameter options objects.
https://<company>.attask-ondemand.com/attask/api/v4.0/popt/metadata

Related

CKAN: how do I update/create the data dictionary of a resource using the api?

My company is using a CKAN instance configured with Data Store and DataPusher. When a CSV file is uploaded to CKAN, DataPusher sends it to the DataStore and creates a default Data Dictionary for the resource. The Data Dictionary is a very nice feature to display the description of data fields for the users. Here is an example (it is in Brazilian Portuguese):
I can update the Data Dictionary using the UI, or it can be sent as part of the Fields passed to datastore_create().
My problem, is that I don't control the call of datastore_create() because this method is automatically called buy the DataPusher service.
I want to programmatically set the values of the Data Dictionary, but I can't find the api call that allows me to do it. An api call that update the Fields metadata. Can I do it using the Api? Or maybe it is possible create it when I create the data resource. I'd like a code example.
You can use the API call datastore_create on top of an existing table. This will not impact the data in the table.
You should use the datastore_search to check the format of how the dictionary is saved in one of your resources (result->fields->info). Use that as your base, make the desired changes, and use it in the body of the datastore_create call.
Unfortunately, the API call datastore_info does not give you back that information.
The majority of the CKAN UI functionalities can be made through the API as well. In this case, you can make use of the "datastore_create" by the controller --> See Code here.

Get Ektron Form Post Back Message from API

Using Ektron 8.02, I'm trying to retrieve the Post Back Message of an Html Form using only the API. I haven't been able to find a property on the Ektron.Cms.FormData object which provides this, nor any method in the `Ektron.Cms.API.Content.Form' class which will retrieve it. Is what I'm trying to do even possible through the API or should I instead attempt to get this from the database directly?
I've found it. To get all of the data from an Html Form you'll need to get the form as FormData and ContentData objects. Inside the ContentData.Teaser property is a bit of XML that contains the postback message among other things. Will have more information after I get back to my work machine.

Best approach to build a DYNAMIC query-by-example form in AngularJS?

I'm relatively experienced with Angular having written many directives, but I have a new requirement where I have to build a query-by-example form into which a user can enter different search criteria. My problem is that I do not know ahead of time what the possible criteria will be. This criteria information will be coming from the server via an ajax request and can differ per user. Thus I will need to dynamically construct a suitable user interface based on the information I get from the server.
I have built individual directives suitable for capturing the search criteria (for example a custom calendar control for date criteria) but I am unsure of the best approach to adding these directives to a form dynamically. Is this even possible in Angular?
I have built something like this before in jQuery but its not so clear to me how I would best do this in an 'Angular way'?
Any suggestions would be most appreciated!
Everything that you can express as a model-to-view projection can be implemented in AngularJS.
I think here you can make a model consisting of "query params". Each of them has name, type and data for filter builder. For example, for the "select" type a data can contain a list of all possible values to choose from.
Then you iterate through the list of "query params" with ng-repeat, rendering each control differently according to its type. That's all.
If I understood the task wrong, please provide more info.

Edit custom field options using API

We are trying to implement a new custom field (drop down list) which would need to be updated regularly with new options. Rather than editing the available options by hand, we were hoping to write a script which would update the custom field's options automatically by using the Rally API. Is this possible, or is it only possible to use the API to edit the records themselves?
Unfortunately it is currently not possible to manipulate custom fields through the API due to the fact that all the fields on AttributeDefinition are read-only.
I would encourage you to submit an idea for this at https://ideas.rallydev.com.

Setting a feed limit on the Eventbrite API

I'm wondering if there is a way to set a limit as to how many events show in my feed. I can't seem to find any documentation as to how to do this. I only wish to show 3 events on my website's homepage, but it automatically lists them all.
I don't see anything under the request parameters (http://developer.eventbrite.com/doc/events/event_new/) but I'm wondering if there is more documentation elsewhere.
event_new creates new events...it does not list events. So, you can't be using this API to create a "feed".
To list events, there are two API endpoints...user_list_events and organizer_list_events. user_list_events has more controls over the return data, so you should use that one.
Since there are not pagination controls on either of those methods, you will need to filter the result set yourself in whatever client library you are using.