Replace tab markers with xml

Hey,
I'm just trying to get an xml import to add content to tags.
I have the structure worked out and tags are importing but I want to import the tag once for each named tag. In other words, if I have a tag called 'Doc-title' I would like all text tagged with 'Doc-title' to be replaced in the import without having to repeat the instruction for every one.
Can I do this? How is it done?
Appreciate any ideas!

So, they're not tabs. Check the Paragraph settings for one of them -- I bet you find a First Line Indent of other than 0.
If Word behaved itself, and the document was imported nicely, you might find all indented paragraphs have the same paragraph style applied to them. If so, just change the value for the First Line Indent in that paragraph style, and you're done.
If not, you have something to do to-night! Unfortunately, although InDesign
i can
search for a specific indent value and replace it with another, it's impossibly hard to get the correct value to search for. That's due to rounding in the input boxes -- a value you see as "12.5pt" might be internally stored as "12.4999pt", so if you search for "12.5" it doesn't find anything. No point fiddling about; create a new paragraph style (this time with a good indent value), and apply it manually to the ones you want changed.
Incidentally, you can't specify measurements in InDesign in em units. For a 1 em indent I generally choose either the text point size, or the leading -- this tends to look better if the leading is way big. If neither looks okay, I make up something that
i does.

Similar Messages

  • Create Tab Folder with XML

    Hi,
    I have created a tab folder using XML; but the tab folder doesn't display...see xml code below.
    All the button and matrix display inside the tab folder; but I do not see my tab folder...???
    Thank you,
    Rune
    <item uid="tab_A" type="99" left="10" tab_order="0" width="950" top="318" height="270" visible="1" enabled="1" from_pane="1" to_pane="1" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                <AutoManagedAttribute/>
                                <specific caption="Car Registration" AffectsFormMode="1" val_on="Y" val_off="N" pane="1">
                                    <databind databound="1" table="" alias="FolderDS"/>
                                </specific>
                            </item>

    Hi Eddy,
    The problem is that I had only 1 tab; when I added 2 tab...it display by code.
    How do I add 2 tabs by xml? They have to be grouped...
    <item uid="tab_A1" type="99" left="10" tab_order="0" width="950" top="318" height="270" visible="1" enabled="1" from_pane="1" to_pane="1" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                <AutoManagedAttribute/>
                                <specific caption="Car Registration" AffectsFormMode="1" val_on="Y" val_off="N" pane="1">
                                    <databind databound="1" table="" alias="FolderDS"/>
                                </specific>
                            </item>
    <item uid="tab_A1" type="99" left="0" tab_order="0" width="0" top="0" height="0" visible="0" enabled="0" from_pane="2" to_pane="2" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                <AutoManagedAttribute/>
                                <specific caption="Hide by Visible 0" AffectsFormMode="1" val_on="Y" val_off="N" pane="1">
                                    <databind databound="1" table="" alias="FolderDS"/>
                                </specific>
                            </item>

  • Replace tab indents with em space indents?

    Hi all!
    I'm laying out a book whose chapters were all initially created in Word using Tab indents. I tried to do a find and replace within InDesign to change the tab indents to em spaces, but both Word and Indesign don't register the tab spaces as highlight-able, so the find and replace found nothing when I looked for "^t".
    Anyone know how to do this?
    Thank you!
    Alec

    So, they're not tabs. Check the Paragraph settings for one of them -- I bet you find a First Line Indent of other than 0.
    If Word behaved itself, and the document was imported nicely, you might find all indented paragraphs have the same paragraph style applied to them. If so, just change the value for the First Line Indent in that paragraph style, and you're done.
    If not, you have something to do to-night! Unfortunately, although InDesign
    i can
    search for a specific indent value and replace it with another, it's impossibly hard to get the correct value to search for. That's due to rounding in the input boxes -- a value you see as "12.5pt" might be internally stored as "12.4999pt", so if you search for "12.5" it doesn't find anything. No point fiddling about; create a new paragraph style (this time with a good indent value), and apply it manually to the ones you want changed.
    Incidentally, you can't specify measurements in InDesign in em units. For a 1 em indent I generally choose either the text point size, or the leading -- this tends to look better if the leading is way big. If neither looks okay, I make up something that
    i does.

  • Replace existing footage with new footage, while keeping chapter markers ?

    I have prepared my DVD with menus and chapter markers etc ready for burn.
    I just noticed that my edit is wrong. Is their a way to replace exiting edit with the new one ? while maintaining chapter markers ?
    Thanks in advance.

    Replacing content like that almost always results in problems trying to encode/multiplex the project. You need to start a new project and reinsert your chapter marks. Sorry.

  • Catproc.sql gives ORA-02303: cannot drop or replace a type with type or tab

    I am running catproc.sql and am seeing several of the following errors. Appreciate any insight into the problem. Thanks..
    CREATE OR REPLACE TYPE ODCIObject AS object
    ERROR at line 1:
    ORA-02303: cannot drop or replace a type with type or table dependents
    CREATE OR REPLACE TYPE ODCIObjectList AS VARRAY(32) of ODCIObject;
    ERROR at line 1:
    ORA-02303: cannot drop or replace a type with type or table dependents

    I am in the process of doing a test upgrade of Oracle E-business 11.0.3 with Oracle 8.0.6 to Oracle E-business 11.5.10.2 with Oracle 9.2.0.
    I am following the upgrade manual:
    Oracle Applications – Upgrading Oracle Applications
    Release 11i (11.5.10.2)
    Part No. B19297-01
    I have already upgraded the database from 8.0.6 to 9.2.0 using the Oracle database migration utility at the appropriate point in the instructions.
    After upgrading the database to 9.2.0 as stated in this manual, one of the of the next Oracle Application pre-upgrade tasks is to execute a script called addb920_nt.sql which in turn executes catalog.sql and catproc.sql. I am seeing these errors when catproc.sql is executed.
    I have logged an Oracle Support SR and am awaiting a response, but wanted to know if anyone had seen similar issues.
    Thanks,
    Alma

  • How can I update an already saved "bookmark all tabs" group with a current group of tabs? Or add only the changes??

    Example of problem:
    I have already saved a group of tabs using the "bookmark all tabs" feature.
    I open that group of tabs in a new browser window.
    Then I modify that group of tabs that I have open, adding new ones, removing old ones.
    How can I replace the existing tab group with the new tabs?
    Is there an option to just add the new ones that I have opened and keep all the others even if I have removed some of the old ones from the currently opened group?
    ...another issue: can I share bookmarks online? What are the options for this?

    You can't do that.<br />
    Each time you use "Bookmark All Tabs" a new folder is created, even if you give the folder the same name, so you will have to do any merging yourself in the Bookmarks Manager or just create a new group and discard (delete) the previous group.
    If you want to share bookmarks online then you need to use a web based service that offers such a feature like Delicious.
    *http://en.wikipedia.org/wiki/Social_bookmarking

  • Ever since Firefox 3, I have never been able to upgrade easily. I always get a message telling me I am replacing my version with an older version. How is that possible?

    When I download the newest version (this time it was 5, but I had the same problem with 4) and I drag the Firefox Logo to my Applications folder in Mac OSX (10.6.7) I get a message saying I am replacing my version with an OLDER VERSION. How can this be? When I check the Firefox "About" tab, it tells me I am still using 4, so how, if I just dragged 5 to my Applications folder, can I be replacing 4 with an "older" version? Truth be told, my Firefox has never functioned properly since 4, and now I have little "Firefox hard drive icons" all over my desktop. What happened?
    I am having trouble with Comcast's XFINITY and they told me to update and maximize my browser. I don't seem to be able to do that. I just downloaded Firefox 5.0, but my version still says 4.1.

    When I download the newest version (this time it was 5, but I had the same problem with 4) and I drag the Firefox Logo to my Applications folder in Mac OSX (10.6.7) I get a message saying I am replacing my version with an OLDER VERSION. How can this be? When I check the Firefox "About" tab, it tells me I am still using 4, so how, if I just dragged 5 to my Applications folder, can I be replacing 4 with an "older" version? Truth be told, my Firefox has never functioned properly since 4, and now I have little "Firefox hard drive icons" all over my desktop. What happened?
    I am having trouble with Comcast's XFINITY and they told me to update and maximize my browser. I don't seem to be able to do that. I just downloaded Firefox 5.0, but my version still says 4.1.

  • Find Replace from Textfile with regex

    Hello.
    I'm wondering if anyone knows about an existing script that does a find/replace by list like the script "FindChangeByList.jsx" that comes with every InDesign installation.
    This consists of tow parts, the script itself with the functionality and a simple textfile where you have simple one-liners capable of find/replace with regex.
    the Textfile:
    //FindChangeList.txt
    //A support file for the InDesign CS4 JavaScript FindChangeByList.jsx
    //This data file is tab-delimited, with carriage returns separating records.
    //The format of each record in the file is:
    //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    //Where:
    //<tab> is a tab character
    //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    //findProperties is a properties record (as text) of the find preferences.
    //changeProperties is a properties record (as text) of the change preferences.
    //findChangeOptions is a properties record (as text) of the find/change options.
    //description is a description of the find/change operation
    //Very simple example:
    //text          {findWhat:"--"}          {changeTo:"^_"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all double dashes and replace with an em dash.
    //More complex example:
    //text          {findWhat:"^9^9.^9^9"}          {appliedCharacterStyle:"price"}          {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}          Find $10.00 to $99.99 and apply the character style "price".
    //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
    //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
    //as shown in the example below:
    //{findWhat:"\\s+"}
    grep          {findWhat:"  +"}          {changeTo:" "}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all double spaces and replace with single spaces.
    grep          {findWhat:"\r "}          {changeTo:"\r"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all returns followed by a space And replace with single returns.
    grep          {findWhat:" \r"}          {changeTo:"\r"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all returns followed by a space and replace with single returns.
    grep          {findWhat:"\t\t+"}          {changeTo:"\t"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all double tab characters and replace with single tab characters.
    grep          {findWhat:"\r\t"}          {changeTo:"\r"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all returns followed by a tab character and replace with single returns.
    grep          {findWhat:"\t\r"}          {changeTo:"\r"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all returns followed by a tab character and replace with single returns.
    grep          {findWhat:"\r\r+"}          {changeTo:"\r"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all double returns and replace with single returns.
    text          {findWhat:" - "}          {changeTo:"^="}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all space-dash-space and replace with an en dash.
    text          {findWhat:"--"}          {changeTo:"^_"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all dash-dash and replace with an em dash.
    The script:
    //FindChangeByList.jsx
    //An InDesign CS5.5 JavaScript
    @@@BUILDINFO@@@ "FindChangeByList.jsx" 3.0.0 15 December 2009
    //Loads a series of tab-delimited strings from a text file, then performs a series
    //of find/change operations based on the strings read from the file.
    //The data file is tab-delimited, with carriage returns separating records.
    //The format of each record in the file is:
    //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    //Where:
    //<tab> is a tab character
    //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    //findProperties is a properties record (as text) of the find preferences.
    //changeProperties is a properties record (as text) of the change preferences.
    //findChangeOptions is a properties record (as text) of the find/change options.
    //description is a description of the find/change operation
    //Very simple example:
    //text          {findWhat:"--"}          {changeTo:"^_"}          {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}          Find all double dashes and replace with an em dash.
    //More complex example:
    //text          {findWhat:"^9^9.^9^9"}          {appliedCharacterStyle:"price"}          {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}          Find $10.00 to $99.99 and apply the character style "price".
    //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
    //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
    //as shown in the example below:
    //{findWhat:"\\s+"}
    //For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
    main();
    function main(){
              var myObject;
              //Make certain that user interaction (display of dialogs, etc.) is turned on.
              app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
              if(app.documents.length > 0){
                        if(app.selection.length > 0){
                                  switch(app.selection[0].constructor.name){
                                            case "InsertionPoint":
                                            case "Character":
                                            case "Word":
                                            case "TextStyleRange":
                                            case "Line":
                                            case "Paragraph":
                                            case "TextColumn":
                                            case "Text":
                                            case "Cell":
                                            case "Column":
                                            case "Row":
                                            case "Table":
                                                      myDisplayDialog();
                                                      break;
                                            default:
                                                      //Something was selected, but it wasn't a text object, so search the document.
                                                      myFindChangeByList(app.documents.item(0));
                        else{
                                  //Nothing was selected, so simply search the document.
                                  myFindChangeByList(app.documents.item(0));
              else{
                        alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
              var myObject;
              var myDialog = app.dialogs.add({name:"FindChangeByList"});
              with(myDialog.dialogColumns.add()){
                        with(dialogRows.add()){
                                  with(dialogColumns.add()){
                                            staticTexts.add({staticLabel:"Search Range:"});
                                  var myRangeButtons = radiobuttonGroups.add();
                                  with(myRangeButtons){
                                            radiobuttonControls.add({staticLabel:"Document", checkedState:true});
                                            radiobuttonControls.add({staticLabel:"Selected Story"});
                                            if(app.selection[0].contents != ""){
                                                      radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
              var myResult = myDialog.show();
              if(myResult == true){
                        switch(myRangeButtons.selectedButton){
                                  case 0:
                                            myObject = app.documents.item(0);
                                            break;
                                  case 1:
                                            myObject = app.selection[0].parentStory;
                                            break;
                                  case 2:
                                            myObject = app.selection[0];
                                            break;
                        myDialog.destroy();
                        myFindChangeByList(myObject);
              else{
                        myDialog.destroy();
    function myFindChangeByList(myObject){
              var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
              var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, myStory;
              var myStartCharacter, myEndCharacter;
              var myFindChangeFile = myFindFile("/FindChangeSupport/FindChangeList.txt")
              if(myFindChangeFile != null){
                        myFindChangeFile = File(myFindChangeFile);
                        var myResult = myFindChangeFile.open("r", undefined, undefined);
                        if(myResult == true){
                                  //Loop through the find/change operations.
                                  do{
                                            myLine = myFindChangeFile.readln();
                                            //Ignore comment lines and blank lines.
                                            if((myLine.substring(0,4)=="text")||(myLine.substring(0,4)=="grep")|| (myLine.substring(0,5)=="glyph")){
                                                      myFindChangeArray = myLine.split("\t");
                                                      //The first field in the line is the findType string.
                                                      myFindType = myFindChangeArray[0];
                                                      //The second field in the line is the FindPreferences string.
                                                      myFindPreferences = myFindChangeArray[1];
                                                      //The second field in the line is the ChangePreferences string.
                                                      myChangePreferences = myFindChangeArray[2];
                                                      //The fourth field is the range--used only by text find/change.
                                                      myFindChangeOptions = myFindChangeArray[3];
                                                      switch(myFindType){
                                                                case "text":
                                                                          myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
                                                                          break;
                                                                case "grep":
                                                                          myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
                                                                          break;
                                                                case "glyph":
                                                                          myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
                                                                          break;
                                  } while(myFindChangeFile.eof == false);
                                  myFindChangeFile.close();
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
              //Reset the find/change preferences before each search.
              app.changeTextPreferences = NothingEnum.nothing;
              app.findTextPreferences = NothingEnum.nothing;
              var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
              myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
              myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
              app.doScript(myString, ScriptLanguage.javascript);
              myFoundItems = myObject.changeText();
              //Reset the find/change preferences after each search.
              app.changeTextPreferences = NothingEnum.nothing;
              app.findTextPreferences = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
              //Reset the find/change grep preferences before each search.
              app.changeGrepPreferences = NothingEnum.nothing;
              app.findGrepPreferences = NothingEnum.nothing;
              var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
              myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
              myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
              app.doScript(myString, ScriptLanguage.javascript);
              var myFoundItems = myObject.changeGrep();
              //Reset the find/change grep preferences after each search.
              app.changeGrepPreferences = NothingEnum.nothing;
              app.findGrepPreferences = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
              //Reset the find/change glyph preferences before each search.
              app.changeGlyphPreferences = NothingEnum.nothing;
              app.findGlyphPreferences = NothingEnum.nothing;
              var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
              myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
              myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
              app.doScript(myString, ScriptLanguage.javascript);
              var myFoundItems = myObject.changeGlyph();
              //Reset the find/change glyph preferences after each search.
              app.changeGlyphPreferences = NothingEnum.nothing;
              app.findGlyphPreferences = NothingEnum.nothing;
    function myFindFile(myFilePath){
              var myScriptFile = myGetScriptPath();
              var myScriptFile = File(myScriptFile);
              var myScriptFolder = myScriptFile.path;
              myFilePath = myScriptFolder + myFilePath;
              if(File(myFilePath).exists == false){
                        //Display a dialog.
                        myFilePath = File.openDialog("Choose the file containing your find/change list");
              return myFilePath;
    function myGetScriptPath(){
              try{
                        myFile = app.activeScript;
              catch(myError){
                        myFile = myError.fileName;
              return myFile;
    This is a very useful and easy to maintain script which even people who cant write scripts (but know how to use regex) can do complex search replace mass replacements.
    Would love to find something like this for FrameMaker 12 (as i can't write scripts myself).
    regards
    daniel

    I have visited that site. The first item in the external link says: "You can also configure Firefox to automatically search for text when you type any characters outside of a text field. When typing in a text field these characters should show up in the text field and not trigger the Quick Find bar. "
    What I am looking for is the exact opposite. Once my first search is entered in the text box, and the info comes back, I want to start typing the next symbol, and have it automatically show up in the text box, not the Quick Find box. That is how it was working up until a couple of months ago.

  • Replacement Path Variable with Another Variable

    Hi,
    I am currently trying to create a report that would need me to have the same values for different characteristics (e.g. clearing date, posting date, net due date). I have seen that there is a way in the replacement path variable that would replace its value with another variable that is ready for input. I also looked into SAP help but I can't seem to figure out on how to do it specifically. Does anyone know a step-by-step process on how to do this? How does this work?
    Thank you in advance!

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • Creating a template in Financials for using with XML Publisher..

    to whom..
    I hope someone can help please. I'm trying this process for the first time so please bear with me..
    Ive got everything in place for producing PDF reports via XML Publisher through ORACLE Financials but I'm stuck on the last
    part.
    According to the notes (Publishing Concurrent Requests with XML Publisher - An Oracle White Paper Jan 2005) I've come
    across, I need to update the concurrent program definition with a default template (when you submit a request, its in the
    'upon completion' last section where theres an option to change or enter a template layout) yet this section is GREYED OUT.
    Now according to my notes, to create a template you..
    "Setting a Default Template....to select a default template in the Update Concurrent Program page available from the System Administration
    responsibility (Note that this field is available only from System Administration. It is not available from the System
    Administrator Forms interface)......."
    My query is, where is this 'Update Concurrent Program page'..?
    Thanks In Advance..
    Steven
    Edited by: user554089 on Sep 16, 2008 4:02 AM

    OK, so now I've found out how to 'default a template for EBS 11i' (System Administration > Concurrent > Programs - notice its Administration not Administrator)... but its unavailable.. in the the 'OnSite Setting' tab there was no box visible for me to enter a template filename. Does anybody know why this could be?
    thanks,
    Steven

  • Issue in developing cross tab report with wizard in 10.1.3.2.1

    Hi Gurus,
    We are trying to develope group above cross tab report with wizard in BI Publisher 10.1.3.2.1 .
    i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
    Output should look like this:
    Country1
    Region1 Region2 Region3 --(level1 column)
    d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
    Row1 10 20 30 70 80 90 40 70 90 --data
    Row2 21 24 54 65 23 64 64 76 87 --data
    Here Regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
    Haven't get any solution till now.
    Also unable to achieve under line and overline on data for total row.
    Need help urgently in this issue.
    Thanks,
    Mahesh
    Edited by: user13450806 on Jan 7, 2011 12:43 AM

    Hi Gurus,
    I am still waiting for some one to help me in this issue.
    It is very urgent for me to solve this. Did not get any help yet.
    --Mahesh                                                                                                                                                                                                                                                                                                       

  • Lessons learned replacing ThinkPad HDD with an SSD

    Installing a Samsung SSD on my 3 year old ThinkPad W510 was easy. Getting Windows 7 set up took me days.
    Here are some lessons learned so you can do it faster.
    Backup
    Lenovo Rescue & Recovery will back up files to a USB 3.0 disk but it took 10+ hours and it put several files and folders at the top level. Can it back up multiple disks (HDD and SSD)? Probably not.
    Backup
    Windows 7 Backup & Restore doesn’t have those problems backing up data files but when trying to save a disk image to an external drive that’s > 2 TB (with 4K blocks), it runs for a while then fails. The generic error message and event log are not helpful, costing hours of debugging.
    SSD “frozen”
    Some web sites say that an SSD will perform better if you fully erase it before installing the OS, but when I tried to do this, the Samsung Magician software said the SSD was “frozen.” Apparently this is a confusing way to say it’s locked from erasure. Magician’s workaround recommendations didn’t help. Magician’s PDF guide has alternate workaround recommendations (like turning of AHCI mode in BIOS) but I didn’t find them soon enough.
    Clone the HDD or install fresh?
    Restoring Lenovo’s factory disk image onto the SSD (instead of cloning the HDD) fixed accumulated problems but it took several days of work and problem solving. (The HDD’s hidden SYSTEM_DRV partition was full. Did that cause some of the problems?)
    How to over-provision the SSD
    “Over-provisioning” boosts an SSD’s sustained write performance by allocating temporary space. The Samsung Magician program will set this up -- but not on a drive with the Lenovo_Recovery “Q:” partition. Moving and resizing C: and Q: with GParted Live didn’t solve this. Instead it made me start all over restoring the factory disk image and the Windows Updates and Lenovo Updates. The solution (thanks, Samsung’s phone tech support!) is to use GParted or Windows Disk Management to shrink the C: partition. All it needs is some unallocated space between partitions anywhere on the SSD. (Samsung recommends 10%.) You don’t have to do anything to allocate that space to the purpose.
    Partition alignment
    For speed, you want the partitions aligned on a 4096 byte boundary. GParted will align them on a MiB boundary, which is more than adequate.
    Windows restore points
    The Windows installer is supposed to make system restore points but I found it started out with a broken configuration. So open System Properties, the System Protection tab, and check the “available drives” for any drives labelled “... (Missing)”. Turn off “system protection” (restore points) for the “missing” drives, then turn it on for the real C:.
    Faster updates
    After restoring Lenovo’s factory disk image, you must iterate installing Windows Updates and Lenovo Updates over and over until there aren’t any more to install. Fortunately this is faster on an SSD than an HDD. Save more time by having only one user account and no password so Windows reboot won’t stop for login. Also watch the taskbar for license dialogs that open up behind other windows but require your clicks to proceed.
    Watch for stuck updates
    Lenovo Update quietly gets stuck updating Intel WiFi & WiMax software. The fix is to download those installers from lenovo.com, run them, get an error message that it can’t install over the existing software, uninstall the WiFi & WiMax software, then run the installers again.
    Restore from backup, or not?
    At key points, I made system disk image backups of the SSD to the old HDD and tried restoring from a backup after the failed repartitioning experiment. But Windows Backup and Restore won’t restore a system image after booting from the destination drive’s recovery partition nor from the source drive’s recovery partition. Since my backup was on the HDD in the Ultradrive bay, I couldn’t boot from the Rescue & Recovery CD. The workaround was to make a bootable System Repair disk on a 512 MB USB key. Windows Backup and Restore then failed with another meaningless error, “The parameter is incorrect. Code: 0x80070057.” Apparently you have to remove the USB key right before starting the system restore operation but that yielded the error, "No disk that can be used for recovering the system disk can be found." I’m not sure if that’s a symptom of removing the USB key or yet another problem with Windows Backup and Restore. Maybe it can’t restore to resized partitions? Windows Backup and Restore failed and burned hours of my time.
    Fix the annoying request on bootup?
    After you install Windows, all its updates, and Samsung Magician, you can use Magician to adjust system settings for SSD performance. Then you’ll find that Magician needs permission to “make changes to this computer” on every boot. Samsung tech support explained that you can then remove Magician from the startup list via msconfig.
    Optimizations
    Recomputing the “Windows Experience Index” might make the OS recognize the boot drive as an SSD and disable defrag for it. This didn’t work for me, so be sure to unschedule defrag. Also use msconfig to remove Digital Line Detect from the startup list and turn on “No GUI boot” (no Windows splash screen). Also use power plans Advanced Settings to never turn off the “hard disk.”
    ThinkPad
    Thumbs up. Easy to replace the HDD with an SSD and move the HDD into an Ultradrive caddy. Sturdy. Easy to work on. Well documented. Hardware that I didn't want to replace.
    Microsoft Windows 7
    Thumbs down. Buggy, fragile, over complicated, inadequate error messages, painstaking to install, difficult and time consuming to administer, poorly documented, accumulates gunk over time that causes problems, failed backup software, even a fresh install has scary event log errors.
    Lenovo forums & support pages
    Very helpful. Sometimes it's good to use Use Google to search them e.g. https://www.google.com/search?q=site%3Alenovo.com+"over+provision"
    Samsung 840 EVO SSD
    Fine hardware. Some confusions around the Magician software. Great phone tech support. Web support doesn’t work.
    References and more info
    How To Geek, Lifehacker, Lifehacker, SSD Review, Newegg, Newegg, Anandtech, Storage Review.

    I may have confused you: Lenovo provides two tools, 1) one makes DVDs that restore the original out-of-the-box factory image of the entire disk (i.e. System partition, C: + Q: partitions) and 2) Backup and Restore, which is the Lenovo user backup tool that does conventional full disk backups, i.e. with all user customizations, added programs and files. Since my system-generation-to-SSD saga hadn't created the the Q: partition correctly, my only alternative was to create a full up-t-date disk backup with the second Backup and Restore tool that include all the Windows + Lenovo updates, but didn't include extra programs and my user files. This fitted on 5 DVDs, which I will use if ever I reinstall the entire operating system.
    Once you get above 100-150 GB of backup volume (I'm at 450 GB right now), the Lenovo Backup and Restore is very slow, so I use the much quicker Windows built-in Backup and Restore program to backup incrementally a system image and all files.

  • Need help with XML transformation

    I am not sure this is the right place for this. But i will try it here. I am very troubled with my XSLT. Trying to transform a text Coupon which has the following html for it. So,
    _1. INPUT is:_
    <html>
    <head>
    </head>
    <body>
    <p>
    This coupon is for a good guy whose first name is :
    </p>
    <p>
    </p>
    <p align="center">
    Sadd
    </p>
    <p align="center">
    </p>
    <p align="right">
    <b>also</b> whose <var>full_name</var> is Sadd Hossain
    </p>
    <p align="left">
    </p>
    <p align="left">
    He is a <font size="3">software </font><font size="4">engineer for</font><font size="5">
    S&H</font>
    </p>
    </body>
    </html>
    *2. output needed  is:*
    <?xml version="1.0" encoding="UTF-8"?>
    <POSMESSAGE>
    <TextMSG >
    This coupon is for a good guy whose first name is :
    </TextMSG>
    <TextMSG >
    </TextMSG>
    <TextMSG align="center">
    <emph>SADD</emph>
    </TextMSG>
    <TextMSG >
    </TextMSG>
    <TextMSG align="right" >
    also whose full_name is Sadd Hossain
    </TextMSG>
    <TextMSG>
    </TextMSG>
    <TextMSG align="left" >
    He is a software engineer
    for S&H
    </TextMSG>
    </POSMESSAGE>
    *3. XSLT for this*
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml"/>
    <xsl:template match="body">
    <POSMESSAGE>
    <xsl:for-each select="p">
    <TextMSG>
    <!--xsl:if test="not[@align='']"-->
    <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute>
    <!--/xsl:if-->
    <xsl:attribute name="font"><xsl:value-of select="@size"/></xsl:attribute>
    <xsl:value-of select="."/>
    </TextMSG>
    <xsl:for-each select="b">
    <emph>
    <xsl:value-of select="."/>
    </emph>
    </xsl:for-each>
    </xsl:for-each>
    </POSMESSAGE>
    </xsl:template>
    </xsl:stylesheet>
    *4: the above xslt generating this output*
    <?xml version="1.0" encoding="UTF-8"?>
    <POSMESSAGE><TextMSG align="" font="">
    This coupon is for a good guy whose first name is :
    </TextMSG><TextMSG align="" font="">
    </TextMSG><TextMSG align="center" font="">
    SADD
    </TextMSG><TextMSG align="center" font="">
    </TextMSG><TextMSG align="right" font="">
    also whose full_name is Sadd Hossain
    </TextMSG><TextMSG align="left" font="">
    </TextMSG><TextMSG align="left" font="">
    He is a software engineer
    for S&H
    </
    *5: Need help with this. what should my xslt look like to get the desired output???????????????*
    any help or direction will be very much appreciated. Thank you_

    I have below suggestions:
    1. Please use code option given in message editor toolbar for posting any formatted content like XML, Java code snippet etc.
    2. replace & in your source XML with _& a m p ;_ (Without spaces, I have put spaces to make it visible here).
    3. I have modified your XSLT according output XML you have given. I am not sure what you want to do with some elements like <b>, <font>, <var> etc. change below XSLT as you require for these elements.
    Modified XSLT:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
            <xsl:output method="xml"/>
         <xsl:template match="body">
              <POSMESSAGE>
                   <xsl:for-each select="p">
                        <TextMSG>
                             <xsl:if test=". != ''">
                                  <xsl:for-each select="@align">
                                       <xsl:attribute name="align">
                                            <xsl:value-of select="."></xsl:value-of>
                                       </xsl:attribute>
                                  </xsl:for-each>
                                  <xsl:value-of select="."/>
                             </xsl:if>
                        </TextMSG>
                   </xsl:for-each>
              </POSMESSAGE>
         </xsl:template>
    </xsl:stylesheet>
    OUTPUT:
    <?xml version="1.0"?>
    <POSMESSAGE>
         <TextMSG>This coupon is for a good guy whose first name is :</TextMSG>
         <TextMSG/>
         <TextMSG align="center">Sadd</TextMSG>
         <TextMSG/>
         <TextMSG align="right">alsowhose full_name is Sadd Hossain</TextMSG>
         <TextMSG/>
         <TextMSG align="left">He is a softwareengineer forS&H</TextMSG>
    </POSMESSAGE>

  • How to replace the '&' character with '&' in xi

    Hi,
    i need to replace the '&' character with ' &amp;'.but i f i am converting it is displaying as '&' because internally '&amp;' = '&'.
    beacuse of this it is not converting.
    is there any possiblity to change the  standard conversion in xi.

    Graphical mapping does not support special character like & , <,> to be mapped.
    You can encode & as and in UTF-8 only.
    if you want the special character to be used, Opt XSLT mapping with ISO-8859-1 encoding
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="ISO-8859-1"/>
    <xsl:template match="/">
    <xsl:copy-of select="*" />
    </xsl:template>
    </xsl:stylesheet>
    How to Work with Character Encodings in Process Integration (NW7.0)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • Need help with XML response to refresh document with context and prompts

    I've been working with the Restful api for a few weeks now and have been able to figure out most of what I need to automate testing of our reports. However, one task that I have not been able to figure out is how to refresh a document that contains both a context and two prompts for dates.
    Here is what I have tried, and what the API responds with.
    1) I queried the API for this document's parameters using the following call after logging in -
    headers = {:accept=>'application/xml', :content_type=>'application/xml', :x_sap_logontoken=>@token}
    url = "http://our.url.net:6405/biprws/raylight/v1/documents/12345/parameters"
    RestClient.get(url, headers)
    The response from the API is:
    <parameters>
        <parameter dpId="DP0" type="context" optional="false">
            <id>0</id>
            <technicalName>cQuery 1</technicalName>
            <name>Select a context</name>
            <answer type="Text" constrained="true">
                <info cardinality="Single">
                    <lov partial="false">
                        <values>
                            <value id="CTX_1">LOAN</value>
                            <value id="CTX_9">LOAN_APPLICATION</value>
                        </values>
                    </lov>
                    <values>
                        <value id="CTX_1">LOAN</value>
                        <value id="CTX_9">LOAN_APPLICATION</value>
                    </values>
                    <previous>
                        <value id="CTX_9">LOAN_APPLICATION</value>
                    </previous>
                </info>
                <values>
                    <value id="CTX_9">LOAN_APPLICATION</value>
                </values>
            </answer>
        </parameter>
    </parameters>
    2) This tells me I need to supply a context, so I then replace my RestClient.get call with a RestClient.put call with the following payload:
    <parameters>
         <parameter>
                <id>0</id>
                <answer>
                      <values>
                            <value id=\"CTX_9\"/>
                      </values>
                </answer>
          </parameter>
    </parameters>
    3) This satisfies the context portion of the refresh. The API replies with the following response, telling me I need to answer two prompts -
    <parameters>
         <parameter dpId=\"DP0\" type=\"prompt\" optional=\"false\">
              <id>1</id>
              <technicalName>psEnter value(s) for Start Date of Application Received Date</technicalName>
              <name>Enter value(s) for Start Date of Application Received Date</name>
               <answer type=\"DateTime\" constrained=\"false\">\
                    <info cardinality=\"Single\"/>
               </answer>
         </parameter>
         <parameter dpId=\"DP0\" type=\"prompt\" optional=\"false\">
                <id>2</id>
                <technicalName>psEnter value for End Date of Application Received Date</technicalName>
                <name>Enter value for End Date of Application Received Date</name>\
                <answer type=\"DateTime\" constrained=\"false\">
                    <info cardinality=\"Single\"/>
                </answer>
          </parameter>
    </parameters>
    4) Here is where I am having problems. I have tried all kinds of permutations of the below payload/response body. All I ever get from the API is a 400 - BadResponse error.
    <parameters>
         <parameter>
              <id>0</id>
              <answer>
                   <values>
                        <value id=\"CTX_9\"/>
                   </values>
              </answer>
         </parameter>
    </parameters>
    <parameters>
         <parameter type=\"prompt\">
              <id > 1 </ id>
              <answer type=\"DateTime\">
                   <values>
                        <value>2012-06-11T09:50:54.000-04:00</value>
                   </values>
               </answer>
         </parameter>
         <parameter type=\"prompt\">
               <id > 2 </ id>
               <answer type=\"DateTime\">
                    <values>
                         <value>2014-07-11T09:50:54.967-04:00</value>
                    </values>
               </answer>
         </parameter>
    </parameters>
    I am not very good with XML and the terminology around it, and I haven't received much training around using the Restful API other than the SDK documentation. I have a feeling there is something very basic that Im missing here. What is the correct XML needed in the response body to properly refresh the document?

    If you are more confortable with JSON, Raylight supports it as well.
    Best regards,
    Anthony

Maybe you are looking for

  • Cash Discount in pricing Sales Order SKTV

    Hi gurus, I need help to understand condition SKTV (Cash discount) in sales order. Requeriment is a cash discount for customer. Where do I put value to this condition for every customer? There isn't access sequence. I will reward points to anybody he

  • Difference balance in G/L (FS10N)

    Hi All, One of our G/L is showing balace in "Cumulative Balance" in Group Currency. Our client want clear-off this value. How, we can solve this issue.. Please treat as Urgent.. Thanks in Advance..

  • Itunes installation error "Installation package could not be opened"

    SOMEONE PLEASEEEE HELP ME I HAVE BEEN AT THIS FOR ALMOST 6 HOURS NOW I AM ON THE VERGE OF HAVING A MENTAL BREAKDOWN My iphone 4 was stolen 4 weeks ago... Ive been waiting this long for my insurance to send me a new one.. I finaly received this today.

  • Seeing Friends wish list so I can buy their wishes as gift.

    Hi all; I know how to add items to my wish list and reaching them when I need . Do you know if there is any way I can see my friends wish lists so I can buy them as present ?      or Is there any way I can let them to see mine so they can make gifts

  • My charger broke off in my computer....!!!

    So, my MacBook Pro charger broke off and now the magnetic end is stuck in my computer.  I have tried just about everything to pull, pry, you name it but I cannot get it out.  Does anyone have any suggestions or experience here?