How do I reference a capture group in Xcode 11's Find and Replace? - regex-group

After creating a capture group using the + button in Find and Replace in Xcode 11 I can't figure out how to reference that group in the "With" field. No matter which field is focused when I click the plus button the reference is always added to the "Replace" field.

You need to double click the group in the "Replace" field in order to insert it at the caret in the "With" field. That wasn't very discoverable.
I expect I will return to this question...regularly.

Related

PowerApps Get Selected Item from Lookup to make a Button Visible at the Command line bar

I want a button from the command line bar to be visible or invisible depending on whether a record has been selected in the lookup field from the main form or not.
If no record has been selected, then the button should be displayed. Otherwise not.
For this problem, I want to use the Power Fx in PowerApps, but I haven't found a command yet, which shows me the content or something like that of the lookup field. Other field data types like text have worked without problems.
With Javascript, I already managed it without problems, but I would like to do it also in PowerFx if that should work.
Screenshot: https://i.stack.imgur.com/uqDJ6.png
The records come from the Table Company, where the attribute is Companyname.
Commands where I think they might work:
If([Selected Record];true;false);If(IsBlank([Selected Record]);true;false);If(IsBlankOrError([Selected Record]);true;false);If(IsEmpty([Selected Record]);true;false)
I guess there are 2 scenarios:
The Lookup form control element is a Dropdown with a Selected output property. Then your approach would work like If(IsBlankOrError(DataCardValue1.Selected),true,false)
If your form control element is a ComboBox then you could use If(CountRows(DataCardValue1.SelectedItems)>0,true,false) or the above described IsBlankOrError.

How to add another Text Field in VISIO?

As soon as we drag and drop any component we can see the component's name in a text field.. Similarly I want another Text Field with some numeric value like 1.0 , 2.0 to be generated and show it with the Component.
the issue is I am getting only 1 TEXT FIELD option.. Can you help me to understand this.enter image description here
You can have as many text fields as you want, you need to be in the shape text editor (hit F2 first so that text edit is opened, and then insert fields). Here is a video. Please note that this is not a programming question, probably should be closed here as offtopic.

How to edit a pdf generated using iReport?

I have generated this pdf using iReport. Now while viewing this pdf using document viewer, I need to edit that gross amount field and take print out. No need to saving the edited file. How is this possible?
iReports Custom Fields for columns (sum, average, etc)
Right-Click on Variables and click Create Variable
Click on the new variable
a. Notice the properties on the right
Rename the variable accordingly
Change the Value Class Name to the correct Data Type
a. You can search by clicking the 3 dots
Select the correct type of calculation
Change the Expression
a. Click the little icon
b. Select the column you are looking to do the calculation for
c. Click finish
Set Initial Value Expression to 0
Set the increment type to none
Leave Incrementer Factory Class Name blank
Set the Reset Type (usually report)
Drag a new Text Field to stage (Usually in Last Page Footer, or Column Footer)
Double Click the new Text Field
Clear the expression “Text Field”
Select the new variable
Click finish
Put the new text in a desirable position 

Click on checkboxes based on text in another column and status of checkbox

I have a table on a page with 50 check boxes and some columns, and I need to click on the ones that has a specific text on the last column. So I used this command:
//table[#id='edit-entities']/tbody/tr[td[6][contains(text(), 'New')]]/td/div/input
It worked, Selenium clicks on the first one. Now I need to know how can I make Selenium to click in the other ones.
I tried:
//table[#id='edit-entities']/tbody/tr[td[6][contains(text(), 'New')]]/td/div/input[2]
I put the index [2] in the front of the input to test if it would click on the second check box matching this condition, but it says it did not find the element.
Figured out ... the index must be the row index and not the checkbox index:
//table[#id='edit-entities']/tbody/tr[td[6][contains(text(), 'New')]][4]/td/div/input

UITableViewCellEditingStyleInsert or UITableViewCellEditingStyleNone?

I have data edit controller similar to the EditableDetailView sample from the SDK. The view shows only the fields with values in the non-editing mode and in editing mode it adds the unpopulated fields too as placeholders. Unlike the SDK example the set of fields is fixed so no new placeholers have to be added during edit.
My question is whether
Should I should place the green + Insert next to my empty field
placeholders?
(OR)
A click the + would populate the placeholder next to it, but it would
not add a new empty placeholder.
The HIG is not clear on this topic.
If I do add the + it looks better because all fields have an indicator (red - or green +), but I'm concerned that the '+' action does not actually add a new placeholder. If I leave the + out it looks odd as some fields have the red - and other have nothing.