Collect user selection elements - revit-api

in version Revit2016
I have a problem, I want to collect the user has selected element, instead of letting the user re-select, I don't know if there is any way to solve it, just like I want to collect the information of the two columns selected on the way. Thank you

The ActiveDocument.Selection.GetElementIds() (or something close to that) - will be able to tell you the pre-selected elements when you start your command.

Related

Selenium python iterate over multiple elements

Basically my problem is that I can't remember how to do it, I remember being able to print out specific elements some how involving [3] or [ ],
I'm using driver.find_element_by_class_name('classname').click to click on say the 3rd item or for it to work it's way from top to bottom, I want to be able to loop this but what I have at the moment it just repeatedly clicks on the first item rather than go through the entire length of items that I have asked for?
It's 3:36am I'm tired in bed and not at my desk, If I need to provide more information I'll have to post in a few hours thanks in advance.
In order to use array notation, e.g. [1] or [2], you need a collection/array. In order to get a collection of elements using Selenium, you need to use .find_elements_* (note the plural, elementS). From there, you can get what you want, e.g.
driver.find_elements_by_class_name('classname')[1].click()
You can put that in a loop, replace the 1 with the index, e.g.
driver.find_elements_by_class_name('classname')[index].click()
and so on.

Azure DevOps When Work Items Meet Iterations

Is there a field that exposes WHEN a work item is assigned to its current iteration?
Seems like a pretty basic thing one might like to know, but I can't seem to find it anywhere. Can someone point me in the right direction?
There is No field that exposes when a work item is assigned to its iteration.
If you want to see this value, you can go to the page of the work item.
And then click "History". What you need to find is the record of the latest iteration update.
Of course, you can also get this value through the REST API:
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{id}/updates
But just like getting it by website, you need to spend some time looking for this value, and you can't apply it to queries.
If you really need a field that exposes when a work item is assigned to its iteration. You can create a new process that inherits from your current process and change the process of your project. Click this document for detailed steps.
And then, add a new field to show the latest updates of iteration. Click this document for detailed steps.
This way you can treat the iteration change time as a real field. However, the defect is that when you make changes to an iteration, you need to manually change the value of this field.

Can I call a search help programatically, with some parameters already filled in and non-editable?

I have collective search help S_MAT1 defined for data element MATNR.
I want to invoke programatically the append search help S_MAT1_APPEND, this means that when I press a button in an ALV list, I have to trigger a search dialog, like that for a search help.
I'd also want to be able to fill in some parameters automatically, and not let the user change those.
I am expecting to find a function module that does this.
HELP_START doesn't seem too documented, and doesn't seem to be what I want.
Can this be done?
Yes. Use the function module F4IF_GET_SHLP_DESCR to get a description of the search help, then call F4IF_START_VALUE_REQUEST with the description data. Be aware that you need to set SHLP-INTERFACE-VALFIELD to X for the fields you want to get back from the value help.

Handling the back browser button while iterating through a list

I have a list that I iterate through and fill in the fields one page at a a time. I'm using an array list and I increment a counter everytime the user clicks the next button.
This works well. The problem comes when a user wants to go back and edit the previous entries. The counter stays the same and the current user in the backing bean gets updated with the users input. The user at [counter] in the array list then gets updated and instead of the one that was navigated to.
Any ideas how I can implement this? If I could intercept the submit button and update the current user with the user in focus then I could update the current id manually and save to that slot. Any other ideas? I hope this makes sense.
Thanks
Wayne
It's not much of an answer but it will have to do for now. I've referenced the id from the array list directly and created 10 different pages which only load if the array list is large enough. It works for me because 10 is a maximum. If any of you have a better solution I'd love to hear it.

Drupal: How to add a form and perform functionality on it

I am new to Drupal and trying to get hand on it.
I am not able to find how to have the following functionality on my site. If anyone can help me out, it would be great for me.
I need to have a form that will take 2 fields one of which is supposed to be the login id(how to retrive login id?). I need to store this and display in tabular form also on a new page. Lastly I want to provide an edit form for this functionality using the same form but its use will be like whenever a person adds value in this form, it checks in Table1, if entry is not present it adds in table, else it updates the table.
Apart from this I need to store all the updations in a seperate table or something like that, so that I am able to see the history of all the changes
Eg:
ADD Form:
Fields:
- LoginID
- Phone number
Show Table Page(Tabular with the stored information)
Edit Form(same as above form):
Fields:
- LoginID
- Phone number
Now If I add my phone number to this it will get stored. Later when I try to modify my number it should update in initial table but also store the history of old and new entry in a separate table so that I can perform varies options on it.
I also dont know how to add/enable form fields in drupal. :(
Thanks
I'm not entirely sure what you're asking, but I think the Computed Field module might be helpful. The module allows you to define custom hooks that run when a node is saved.
If you're not creating nodes and are using something like the Webform module, you should be able to write a module to process the data.

Resources