Change only the first text found...
I need change only the first occurrence taking place, but with this...
app.findChangeGrepOptions.includeMasterPages = false;
app.findChangeGrepOptions.includeFootnotes = false;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.appliedParagraphStyle = "_TIT";
app.findGrepPreferences.findWhat = '. '. + $» ;
app.changeGrepPreferences.changeTo = ' $0\\r ~ c ';
app.activeDocument.changeGrep ();
I have change all occurrences...
Can how I do that..?
Thank you...
Hi Marcos,
Hope this helps
app.findChangeGrepOptions.includeMasterPages = false; app.findChangeGrepOptions.includeFootnotes = false; app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.appliedParagraphStyle = "_TIT"; app.findGrepPreferences.findWhat = ".+$"; app.changeGrepPreferences.changeTo = "$0\\r~c" ; //app.activeDocument.changeGrep(); var FindGrep=app.activeDocument.findGrep(); for(i=0; i<1; i++) { FindGrep[i].changeGrep(); }
Thank you
Anil yannick
Tags: InDesign
Similar Questions
-
Change only the similar text format?
Hi all
I'm changing the formatting of the similar text.
for example
I R-6-6 (more like this one where the number of change) which is light and I want to make it regular.
I want to change all elements of similat thus, if 4-R-11 and R-5-3 and so on.
I thought that the wildcards would, but it's not. At least I'm not getting to work.
Thank you.
Kevin J
Thanks Peter.
I thought about it it. Took a little fiddling with grep. My solution: \d-\d-R and R-\d\d-\d for mor than one number.
KJ
-
So I can not print just 1 of 5 pages. The default, 1-5, will display all 5 pages. The 2nd field cannot be changed, possible in previous versions of FF, 1 of 1. Therefore, I can print only all 5 pages, 2-5, 3-5, etc. WTF - I keep losing the print paper. I had printing edit add-on, but that doesn't seem to help. I've been through several versions of FF and do not like the format of 29.
In fact, with the addon print change, if I click on the arrow down I get old print format options and can do.
-
"Change only the size of the text" greyed out
I want to change the size of the text only in windows 8. When I go to control panel/display option 'Change only the size of the text' dialog boxes are grayed out. Can someone tell me how to solve this problem?
Hello
You can see this thread dealing with the same type of problem:
Change the size of the text only does not work
Note:
After my research I find that if we choose smaller screen, which is the default (100%) under change the size of all the elements , then the options for "Change only the size of the text" is not grayed out, if we select medium or large, then the option is grayed out.
Check if you are using the smaller screen under change the size of all the items and then try to change the "Only change the size of the text".
You may also refer to this article to check if it helps:
Make the text on the screen larger or smaller
Please let us know if you have any concerns about Windows.
-
the column showing my address book now shows only the first three characters of each name
It's as if they have all been abbreviatedI try to decipher the names of these three characters before clicking on
to see the
address window of the person with all of the informationI'd like to be able to read the name first & last as before
Thanks in advance
Try dragging the column header to create the wider column
-
I followed the advice and imported IE Favorites, but only the first two files have met. How can I get all THE files across please?
Wow. I think I will like Firefox if the aid is so easily available, quick and as good as this. Fixed right away
Thank you very much
Kevod -
Problem with player search - only the First Instance is highlighted
I use WIN 8.1 with Adobe Acrobat Reader DC [15.10.200056.167417 'updated 12/18/15"indicated in the program properties] as my default PDF reader.
Until recently, I was able to do a search of words/texts of .pdfs using CTRL-F, who showed me every instance highlight of this word. I would simply hit 'find' several times. These days, only the first occurrence of the word is highlighted. Along the right margin are yellow "tics" that, in my opinion, indicate the existence of other occurrences.
If something has changed in the drive? Some can tell me how to regain the ability that I hope
mikec2222 wrote:
Bernd - Do I understand you though, when you search for "" this document, you can find a second occurrence of "the" highlighted by pressing 'find' or 'next' or 'enter' again? If this is true, my copy of AA CD player must be faulty. I can't wait to see your response.
It's true.
-
My Fire Fox download video in support not detected on you tube. It is always shows only the first video that i was downloaded.pls help
I don't think there is much you can do about it outside the use of workaround to reload the page until this problem is corrected.
There is this bug on this problem:
I don't know if other extensions download suffer from this issue, as well, so you can try a little more try the website of the add-on and if possible use a different format like WebM, if they are available.
Also note that not all videos are downloaded and registered correctly. Some may have a size of 0 bytes and fail to download, so, best is to check in downloads of the toolbar Manager in the drop-down list to make sure that the file size is correct (i.e. neither 0 bytes, but a more likely size).
YouTube streaming makes changes to the code and the way its web pages work, so extensions can fail at any time.
-
Why my printer has suddenly started printing only the first three quarters of a page...?
Hello
Thanks for posting the question in the Microsoft Community!
If I understand correctly, you are facing problem with the printer of. I understand that it must be frustrating, but don't worry, we are here to help solve the problem and guide you in the right direction.
We start with two questions:
1 have had any changes made on the computer before the show?
2. What is the brand and model of the printer?
I suggest for the link and try to run the troubleshooter and check if it helps.
If the problem is not resolved, please provide more information to help you best.
Thank you.
-
I have this QML who have a ListView with datasource to a full ArrayDataModel from the CPP file for creationcompleted, I loop in the table to add the hour together to appear as a label on the page, what works. However, when I want to view these items in the list, it will display only the first element of the QVariantMap within the table, no error on the log of the device. Also, triggered more does not work, but when I click it, it will have a blue border surrounding it, but the onTriggered does not fire.
Here is an excerpt of the CPP on the table fill
This-> eventsModel = new ArrayDataModel();
QVariantMap event;
event ['EventName'] = "Event1";
event ["EventHour"] = "00";
event ["EventMinute"] = "01";
event ["EventSecond"] = '02 ";
QML-> setContextProperty ("eventsModel", it-> eventsModel);
Here's the QML
{Of container
ID: eventListContainer
{To ListView
ID: eventList
dataModel: eventsModel
Use a ListItemComponent to customize the appearance of the list view
listItemComponents:]
{ListItemComponent}
type: 'point '.
{StandardListItem}
Title: 'Event' + ListItemData.EventName;
Description: "time:" + ListItemData.EventHour + ":" + ListItemData.EventMinute + ":" + ListItemData.EventSecond; "»
}
}
]
onTriggered: {}
var selectedEvent = dataModel.data (row);
var eventDetailPage = eventDetailDefinition.createObject ();
eventDetailPage.txtEventName.text = selectedEvent ['EventName'];
eventDetailPage.pickEventTime.value = picker.dateFromTime(selectedEvent["EventHour"]+":"+selectedEvent["EventMinute"]+":"+selectedEvent["EventSecond"]);
eventDetailPage.open ();
}
}
Any help would be appreciated.
Thank you.
ListView determines ItemType of the element by calling the function itemType of the dataModel. By default, an ArrayDataModel returns an empty string for this call (see https://developer.blackberry.com/cascades/reference/bb__cascades__arraydatamodel.html).
This leaves you with a few options:
(1) If you have no header and all the elements are the same, you can make
ListItemComponent { type: "" ...
(2) If you have headers or different elements, you can extend ArrayDataModel and implement your own function of itemType
(3) you can define a function of ItemType on your ListView in QML. Documentation:
ListView called DataModel::itemType() for each item in order to know the type. QML, this can be overridden by declaring the itemType function (data, row) on the ListView element. ListView then call this function instead of the function DataModel.
Here's how to create a list in QML which creates a header for all items on the high level and aStandardListItem for each item below the top level:
-
Mr President.
My worm jdev is 12.2.1
How to enter two rows at the same time with different default values that only the first line to use see?
Suppose I have a table with four fields as below
"DEBIT" VARCHAR2(7) , "DRNAME" VARCHAR2(50), "CREDIT" VARCHAR2(7) , "CRNAME" VARCHAR2(50),
Now I want that when I click on a button (create an insert) to create the first line with the default values below
So if I click on the button and then validate the second row with different values is also inserted on commit.
The value of the second row are like the picture below
But the second row should be invisible. It could be achieved by adding vc in the vo.
The difficult part in my question is therefore, to add the second row with the new default values.
Because I already added default values in the first row.
Now how to add second time default values.
Concerning
Mr President
I change the code given by expensive Sameh Nassar and get my results.
Thanks once again dear Sameh Nassar .
My code to get my goal is
First line of code is
protected void doDML(int operation, TransactionEvent e) { if(operation != DML_DELETE) { setAmount(getPurqty().multiply(getUnitpurprice())); } if (operation == DML_INSERT ) { System.out.println("I am in Insert with vid= " + getVid()); insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE", (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); } if(operation == DML_UPDATE) { System.out.println("I am in Update with vid= " + getVid()); updateSecondRowInDatabase(getVid(), (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); } super.doDML(operation, e); } private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5) { PreparedStatement stat = null; try { String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " + "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')"; stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } } private void updateSecondRowInDatabase(Object value1, Object value5) { PreparedStatement stat = null; try { String sql = "update vdet set AMOUNT='"+ value5+"' where VID='" + value1 + "'"; stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } }
Second line code is inside a bean method
public void addNewPurchaseVoucher(ActionEvent actionEvent) { // Add event code here... BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator"); RowSetIterator rsi = dciter.getRowSetIterator(); Row lastRow = rsi.last(); int lastRowIndex = rsi.getRangeIndexOf(lastRow); Row newRow = rsi.createRow(); newRow.setNewRowState(Row.STATUS_NEW); rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow); rsi.setCurrentRow(newRow); BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator"); RowSetIterator rsi1 = dciter1.getRowSetIterator(); Row lastRow1 = rsi1.last(); int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1); Row newRow1 = rsi1.createRow(); newRow1.setNewRowState(Row.STATUS_NEW); rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1); rsi1.setCurrentRow(newRow1); }
And final saveUpdate method is
public void saveUpdateButton(ActionEvent actionEvent) { // Add event code here... BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding commit = bindingsBC.getOperationBinding("Commit"); commit.execute(); OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit"); operationBinding.execute(); DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef. iter.getViewObject().executeQuery(); }
Thanks for all the cooperation to obtain the desired results.
Concerning
-
CreateInsert operation creates only the first record in a table
Hi experts,
I use Jdev 12.1.3 and Alta UI, and I have a table with a button that calls the CreateInsert operation:My problem is that only the first record is created. If the user presses the button twice or more, new records does not appear.
<af:panelCollection id="pc1" styleClass="AFStretchWidth" featuresOff="viewMenu detach"> <f:facet name="toolbar"> <af:toolbar id="t3"> <af:button actionListener="#{bindings.CreateInsertTonYear.execute}" text="Add New Record" id="b1"/> </af:toolbar> </f:facet> <af:table value="#{bindings.HbtProductTonsYear.collectionModel}" ... partialTriggers="::b1" > ... </af:table> </af:panelCollection>
Any ideas?
Kind regards
Jose.
Try to make the button refresh panelCollection (set panelCollection partialTriggers ID button)
-
Discover with function as datasource returns only the first line.
Hello
I created the following function to get the status of all the rules for the instances of SQL Server.
The data type of the function output has been configured as 'List of SQLInstanceRuleStatuss', where SQLInstanceRuleStatuss is the custom type, I created in the same module.
When I tested the function, it returns all instances of SQL Server with two other columns.
But when I try to create a view with the Rows property that is configured to use the feature, it returns only the first line:
sqlRules = new ArrayList();
queryStatement = server. QueryService.createStatement ("(DBSS_Instance)");
queryResult = server. QueryService.executeStatement (queryStatement);
for (it in queryResult.topologyObjects)
{
sqlRule is functionHelper.createDataObject ("westjet_mark_dev:SQLInstanceRuleStatus", "none", "test");.
sqlRule.instance = it;
sqlRule.ruleName = 'test rule name';
sqlRule.status = false;
sqlRules.add (sqlRule);
}
Return sqlRules;
Did I miss something?
Thank you
Mark
Mark,
I think I forgot something
sqlRule=functionHelper.createDataObject("westjet_mark_dev:SQLInstanceRuleStatus","none","test");
you create the test id
change your line of
sqlRule=functionHelper.createDataObject("westjet_mark_dev:SQLInstanceRuleStatus","none",null);
This should allow the creation of a single object in your loop for
-
Help! Only the first part of my production of exports.
Hello world. I must begin by saying that I am completely new to the first Pro CC 2015 have switched to Sony Vegas only a week ago.
I have a difficulty that doesn't seem wise for one big reason. The problem is that my production lasts 5 minutes and I can see it in the preview but very late. Waiting and waiting and waiting for its encode following export command that I find myself disappointed to see that the finished video contains only the first 35 seconds or so my production of all 5 minutes. The video works great, everything in these 35 seconds is how it should be, it is perfect, except the missing 4 minutes and 30 seconds. A fat that is not sensible is because the video, I'm trying to export is just the latest version. It was previously exported twice now. All I've done since then is add additional sounds and a few titles. I made sure that the Begin/End markers to cover the entire timeline on my screen of export
There was an error that arose on a previous export, which then had to be restarted. The error referred to in audio encoding and suggested I should switch to one pass instead of two during the encoding. I've only seen this error once and honestly do not know if it is related to this problem or not.
Intel Core i7
principal of 16 GB of Ram
2 GB of video Ram
Windows 8
Thanks indeed if you can shed some light.
Thanks for the reply of Bill.
Do you mean the main timeline? Forgive me, getting used to the Prime Minister. To answer your question, my best... There's no marker for the beginning or end up on the main screen. When you click export that I'm double-checking that the entire Sequence is selected as the Source and the start and end markers are in fact at the beginning and at the end. After four attempts, I had just finished with the first half minute of video rendering, however.
I found a fix for the problem now, but still did not work what caused (to my slight annoyance).
As an experiment, I deleted each sound track and the silent video exported now very well. To develop on this I have reinserted all the sounds, made all the sound tracks. Who has also exported very well which means that I have a video in its entirety. I fixed my own problem. I do not understand what may have caused it well.
-
replace only the first and the second comma by TAB in the apex using using jquery
All,
I'm generating models of string in the text box in my apex as page == > 23232,445454, «454545,7878,988978, 3r3e»
and I want to replace only the first and the second comma with TABS so I get like == > 23232 445454 «454545,7878,988978, 3r3e»
It should run with the jquery code when I click my button?
any help on this please?
Thank you.How does this update function:
function replaceUpToN(original, search, replaceWith, maxOccurence){ var NEW_LINE = '\n'; var lines = original.split(NEW_LINE); $.each(lines, function(index, value){ var idx = 0; lines[index] = value.replace(search, function(match, pos, original){ idx++; return idx <= maxOccurence ? replaceWith : match; }); }); return lines.join(NEW_LINE); }
Maybe you are looking for
-
700 - 300qe envy: downgraded to Win7 on Envy 700 - 330qe, need drivers
Hi all I tried of Win8 used to, but he wasn't going to happen so I cleaned the disk and installed Win7. Now miss me some drivers and I hope someone here can help you. I've scoured the web for them and managed to get a little supported, but there are
-
Tablet Iconia W700 128 GB &; ICONIA W5 Versions of Windows?
Hello Can someone tell me what the exact version of Windows is running on the two tablets below Iconia Tablet W700 128 GB & ICONIA W510 (both UK specifications) Is - this Windows 8 home or Pro? I called tech support and they were not sure Thank you v
-
Hi all I'm new to Foglight and I would take aid from communities below: While the scope of the rule, I followed the steps mentioned in the KB 40891 article that says "Amend the beginning of the line so that it contains the 'WHERE IN' statement.Due to
-
I installed translation software called SDL Trados 2011 SP2 with all its components, and that's when I noticed that a lot of my files (document libraries) have been converted into file formats of JScript Script and Cascading Style files. I had uninst
-
Cannot open jpeg images in my email. They are deformed with a grey block.
Cannot open jpeg images in my email. They are deformed with a grey block. I see only a tiny portion of the upper part of the image. Tried to save the image on my disk hard but could not be opened. For example: If the size of the image, I'm saving