Custom PropertyVersions for observed data - ocean

Does anyone know if it is possible to create custom property version for observed data using Ocean?
I'd like to store 2 sets of observed values based on the same template.
Cheers,
Neal

Sorry, but neither Petrel nor Ocean provides this functionality. You can use the only predefined ObservedDataVersionSelection[s], the list of available options can be obtained via Petrel's import data dialog or you can retrieve it programmatically via ObservedDataSetForWell.AllObservedDataVersionSelections (Note: you can retrieve this list from any ObservedDataSetForWell, e.g. you can get it from a just created and "empty" set)

Related

Shopware 6 add entity extension fields to admin search

I wonder how to make some fields of an entity extension searchable in the administration through the "/api/search/my-entity" api-endpoint. By default they are not considered during search as it looks like.
I found the answer by debugging the search-endpoint:
The association-Field of the EntityExtension needs to have a SearchRanking-flag:
...->addFlags(new SearchRanking(SearchRanking::ASSOCIATION_SEARCH_RANKING))
Then you can add SearchRanking-flags in the EntityExtensionDefinition as you like, e.g.:
(new StringField('test', 'test'))->addFlags(new SearchRanking(SearchRanking::HIGH_SEARCH_RANKING)),
After that the fields are searchable via the search-endpoint :)
As far as the API is concerned, search functionality should automatically be generated following your custom entity definitions.
When it comes to facilitate Admin search for your entity, you need to add some code to the administration component as described in the docs: https://developer.shopware.com/docs/guides/plugins/plugins/administration/search-custom-data (even though it looks not fully up-to-date w.r.t to the current Shopware versions).

Use Piranha CMS Manager editor in application for other users

I am trying to create some dynamic forms using Piranha CMS. As far as I managed to learn it is not supported right now, so I'm looking for work arounds or alternatives.
What I want to do now is use the editor from the manager for other users. To be more precise: this is how the editor looks like inside my manager when I want to edit a page
I have a text input and a select, both are Fields and there are many more fields to be used.
I want the sys admin to create a page with a list of inputs like this, which right now are usable only by the admin. BUT make this list of inputs available for edit to other users as well. Is it possible?
I'm not sure how to extract this editor or behavior or even if it is possible. The problem is we really need the admin to be able to configure different form inputs for users as it is the main core of our functionality.
Any help/advice is highly appreciated, thank you!
The components in the management UI is not designed to be reused in the front-end application in any way. The edit models in the manager contains a lot of extra meta data since the UI is completely generic. If you want to build an edit UI in your front end application, and you're using MVC or Razor Pages, the simplest way is to.
Get the generic model instead of your strongly typed model, for example api.Pages.GetById(...) instead of api.Pages.GetById<T>(...).
Loop the available fields in your selected region (a region is an ExpandObject which can be casted to an IDictionary<string, object>).
Use the built in support in Razor by calling #Html.EditorFor(...) for the fields.
Using this approach you can easily create your own EditorTemplates for the different types of fields you use that will match the rendering in your client application.
Best regards
HÃ¥kan

ESRI: dynamically hide features from web map

I am trying to implement this function with ArcGIS Server JavaScript API:
I have a web map created by ArcGIS Online (or a web map created on the fly using JSON). Within the web map, I have a point feature layer (or MapServer layer). Initially the entire layer is shown on the map.
Now I am receiving a list of feature IDs received from another server, and I need to hide those points with the feature IDs on the map whilst maintaining the visibility of other points.
I am receiving the lists of feature IDs every 5 mins. Once a new set of IDs is received, I need to make the corresponding point invisible. If a previously hidden point is not included in the new list, they need to be turned back on again on the map.
Any ideas on how to startthis?
Thank you!!
Eric
It sounds to me that you are trying to implement an AVL system.
Anyway, the best way for receiving data for another server is using AJAX. Then, every time you receive new points, you'll need to clear the feature layer point and then to add the newest information from the server.
If you put your code in a fiddle, I'll help you.
Rafael

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

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

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.