How can I modify DOM value batch? - html

I visit a web page that contains so many text area, and I must replace the text to something else.
One text are like this:
<input type="text" name="field" value="round(avg(value0),2)">
I need replace round(avg(value0),2) to value0, so I think I can replace round(avg( to empty, and then replace ),2) to empty. But I don't know how to replace this batch (it may have 100 this text).

If you open your HTML document in Visual Studio and then press Ctrl+Shift+H, it will open the follow dialog box:
Select Current Document in the Look in: dropdown.
Enter what you want to find in the Find what: box and then keep the Replace with: box blank, then click Replace All. This will replace all of those instances with blank text, effectively removing the instances.

Related

Microsoft SSRS: How to make horizontal flowing fill-in text

Apologies if this has been asked before, I did look around but I'm new to SSRS and I might not know the right keywords to find what I'm looking for.
I am trying to make a new report with a couple of sentences like:
The purpose of this report is to determine an academic plan for student __________, by listing all the courses they will take.
I would like this to display in my report "just like" a paragraph of text, except that I would like the blank filled in with the student's name.
I understand how to do "basic" textboxes and how to bind values to them.
But how to I get a textbox that knows to expand horizontally until it reaches the end of the line, and then continues on the next line? If this was HTML (with some binding libraries like Knockout), I'd stick it all in a <p>, like:
<p>The purpose... <span data-bind="studentName" />, by listing ... </p>
You need to use placeholders, they will do exactly what you want.
Create a text box with the full sentence, then at the position where you want the student name to appear, right-click on the actual text and choose 'create placeholder'.
Once the placeholder is visible, right-click and choose properties, then just set the value to whatever you want.
The placeholder is like an inline textbox, you can set it to be the contents of a field or an expression, give it it's own formatting etc...
If you need a field in a text box with static text, you'd put the text in quotes and use the & to combine them
="The purpose of this report is to determine an academic plan for student " & Fields!NAME.Value & " by listing all the courses they will take."
Text boxes don't expand horizontally though. The text will take up as much room in the text box as it can and then will make a new line in the text box - expanding vertically.
Hoping you are using BI Studio to do this.
I am assuming that your underlying query just produces one value called FieldName and your data source is called DataSource. The text will wrap to your textbox but you can add in a vbCrLf if you want to force linebreak. Concatenating strings you can use + or &.
In your textbox make a formula and set it to:
="First part of string "+First(Fields!FieldName.value, "DataSource")+" rest of sentence"+vbCrLf+"more string"

How can I make a text box that when filled out and hit enter, checks a box by the code that was typed in?

How can I make a text box that when filled out and hit enter, checks a box by the code that was typed in?
There are multiple fields in each row in the database; Accountability check box, Name, ID number, address, , etc... Respectively. I want to have a split form that has fields to edit view each profile and then a table with all the data on the bottom. I want to have a box that when the ID number is typed into will check the box for accountability, and then I want to have a button that will uncheck all of the accountability check boxes to reset it.
I will make ID cards with bar codes and a scanner that will be set up to hit "enter" after the code, so I want it to run continuously.
I am very used to Excel and VBA but I have never used Access, So I am trying to get a start on it.
Thank you for any help and if you have any recommendations on how to make this simpler or better I would appreciate it!
Thanks in advance!
If the text box name is txtTextBox and check box chkCheckBox, then use After Update event of txtTextBox with code like:
chkCheckBox = False
If Len(NZ(txtTextBox)) > 0 Then chkCheckBox = True

How can I prevent the horizontal alienation of TextBoxes on generated report (SSRS)?

I set up my TextBoxes to be close together:
Yet when the report is generated, they are barely in the same zip code:
How can I prevent this AWOListic behavior of the ExecutionTime (and, to a lesser extent, UserID) TextBoxes?
UPDATE
I'm sure the answer is correct, but getting it to work is another matter. When I right-click in the Textbox and select "", I am able to navigate to the Date format I want:
...but after I mash the "OK" button, I get:
So it's another case of non-intuitive/non-user-friendly software. I guess the Redmondians are standing in the bread line and can't afford to make it work as it should.
just use 1 text box, just right click inside textbox select "create placeholder"..

Input Field with text already populated on page load

I have a custom Visual Force page that on load has a name field that is supposed to have {Auto} printed inside the input text box that the user can delete or leave or not. I have been using a html-placeholder however the text just disappears and is gray.
My VF inputfield:
<apex:inputfield required="true"
value="{!EventPackageRevenueBreakdown__c.Name}" html-placeholder="{!Auto}"></apex:inputfield>
What it looks like with that code:
What I need it to look like (notice the cursor is after the closing scope)
Thanks in advance I'm still very new to this!
I suggest you to set Name field in controller with '{Auto}' value.
The placeholder attribute will disappear when there is a value in the field, what you want is to actually set the VALUE of the field to {Auto}.
Try this:
If you want it to automatically clear the field if a user clicks into it, you could add some javascript to handle that.

Shortcut to paste multiple lines - Sublime Text 2

I am using Windows 8 OS
I have some projects where I repeatedly add the same tags to different types of elements, but the format of how the elements are presented through code always stays the same. I'm looking for shortcuts that will help me do these tasks quickly. Is there a shortcut that lets you add the same tag for multiple lines that you specify? I know you can do (CTR + F3) To select clone tags and change all of them, but I want to add tags to elements that previously had no tag. Is there a way you can make your own shortcuts for your tags, like if I type in "li" It will automatically put in "" and all I have to do is hit enter?
Here is an example of the elements and tags I added:
<ul>
<li type="square">Extra Grip
<li type="square">Made of Titanium
<li type="square">Built in Selsoft Processor
<li type="square">Portable</ul>
<b>MBS:</b> 44 kN (10000 lbf)<br>
<b>Weight:</b> 1 lbs 13.2 oz (828 g)<br>
<b>Length:</b> 14.40" (36.6 cm)<br>
<b>Width:</b> 3.75" (9.5 cm)<br>
<b>Height:</b> 1.00" (2.5 cm)<br>
<b>Material:</b> Titanium
Ctrl+C, Ctrl+X and Ctrl+V let you copy/cut/paste lines if you don't select anything. So, Ctrl+X doesn't "delete" a line, it cuts it. To delete a line, the default shortcut is Ctrl+Shift+K :)
Highlighting a bunch of lines then hitting Cmd (Ctrl?) +Shift+L gives you multi-cursors on each line. I do that, followed by Cmd + Right arrow (End?) to get easily get a cursor at the end of a series of lines to simultaneously type something after each.
Ctrl+Shift+J expands the selection to the indentation level of the current line. So if you want to select a block of code with the same indentation it's really useful.
Alt + F3 select all occurrences of current word for multiple editing. Very useful.
A few written about in more detail: http://whiletruecode.com/post/7-handy-text-manipulation-tricks-sublime-text-2
Have you tried to make your own snippets? It may not be exactly what you are asking for, but could be another way to do it.
Try the New Snippet command in the Tools-menu and add the following and save it:
<snippet>
<content><![CDATA[
<li type="square">${1:Item} ${2:}
]]></content>
<tabTrigger>li</tabTrigger>
</snippet>
This will enter an <li>-tag in the current file if you type li and then press Tab.
You can also add a <scope> tag to limit it to HTML-files.