Replace the text values

Hello.

I have problem with replacement of values in text strings and I can't find a solution.

I have two or three channels filled with only 2 values: OK and NOK. How can I replace these values with for example 1 for OK and 0 for NOK?

This replacement is necessary for drawing a chart. I can't draw the chart because the tiara do not accept the values of text like a ladder with the current values.

Thanks in advance :-)

Hello Domin,

replaces a substring in a text with another text can be done with VBS 'Replace' function

The execution of a function on an entire channel can be made using ChnCalculate.

Combine the two and you get:

("ChnCalculate ("ch ()"" statistics text"" "") = Replace (ch ("' statistics text" "" '), '' value' ', "" LLL"") ")

It is a channel in the DIAdem example data set. The above command executes the command "Replace" for each value of the text string "text of statistics". He replaces each occurrence of 'value' by 'LLL '.

Hope this helps

Andreas

Tags: NI Software

Similar Questions

  • replace the text in the initial value of the attribute

    Hi Forum,

    How to replace the original value of an xml attribute in the world?  I have an indesign document that has the month name attribute and the value jan13issue01.

    See the example below of the existing xml attribute and value.

    month = jan13issue01

    I need to change the value to mar14issue01 above in the world (see below).

    month = mar14issue01.

    Thank you

    LUN

    Good, in condition add attribute name verification.

    If ((elm.xmlElements [i1].xmlAttributes.item (i2) .name == 'months') & (elm.xmlElements [i1].xmlAttributes.item (i2).value.match (RegExp('^jan13'))! = null)) {}

    Kind regards

    Bala

  • Replace the text

    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value
      '\\Computername\Path\comp_name\\domain\\location' 
    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    Replace
     \\domain\\ 
    with
     \domain\ 
    I tried with query below...
    SELECT REGEXP_REPLACE('\\Computername\Path\comp_name\\domain\\location' ,
           '(\\){2,}', '\')
           AS Expression
      FROM dual;
    I get the below result to top query.
      \Computername\Path\comp_name\domain\location 
    But I want the result as below...
     \\Computername\Path\comp_name\domain\location 
    I use Oracke vesion 11g.

    Please help me on this.

    Thanks a lot for your help.

    Hello

    sunitha2010 wrote:
    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value

      '\\Computername\Path\comp_name\\domain\\location' 
    

    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    I guess that the 1st appearance will not always be at the beginning of the string.

    Replace

     \\domain\\ 
    

    with

     \domain\ 
    

    I tried with query below...

    > SELECT REGEXP_REPLACE ('\\Computername\Path\comp_name\\domain\\location',

    '(\\){2,}', '\')
    AS Expression
    DOUBLE;

    REGEXP_REPLACE has an optional 3rd argument, which allows you to say what position in the string to begin the search, you can do something like this:

    SELECT  REGEXP_REPLACE ( str
                            , '\\\\'    -- 2 backslashes, escaped.  See note below
                     , '\'
                     , 2 + INSTR ( str
                                       , '\\'
                           )
                     )     AS expression
    FROM    table_x
    ;
    

    In the 2nd argument of REGEXP_REPLACE '-' has a special meaning. To say you want a literal character, you have to escape , by putting a '-' immdiately before the special character, which in this case is be '-' also.

  • Replace the text box with Image through breakpoints

    Hello

    I'm looking to replace the text boxes and icons with images and want to know if I can do this on several break points at the same time without having to go and manually change each breakpoint.

    My site is here: Movement of Boulder

    In the Services section of the wider breakpoint, you can see the images that I want, but if you minimize the browser window, you will see the images and the text that he was supposed to replace. Is it possible to replace all the text boxes with the images you want?

    Hello griffinb,

    If you delete a breakpoint text areas, they will be removed from all.

    After you have placed your image just right-click on it and select the option ' copy the style and position > to other breakpoints.

    Let me know if you have any problems getting there.

    Kind regards

    Ankush

  • Where is the tool replace the text since the update yesterday?

    I opened Adobe Reader DC today and thought that the toolbar was different. The text replacement tool has disappeared (the one with the crossed T and bubble comment next to it)!

    I think that Reader downloaded an update yesterday.

    If I want to replace the text (instead of simply delete or insert, I can always do it manually (by highlighting the text I want to change by typing my changes).) However, the changes appear in red and blue, which he has not done before (text was blue just before).

    I checked the tools available and there is no option for text replacement tool more.

    In addition, the highlight color has changed - it is now orange instead of yellow. Is it because of the update too? >

    This happen? I use a lot the text replacement tool. Please can have back?

    Hi janeh87695323,

    Please select the text and right-click on it.

    Then select the "Add a note to replace the text" option in the drop-down list.

    Kind regards

    Meenakshi

  • Replace the string value of table

    with cte as)

    Select val '123', 'abwec' double val1

    Union of all the

    Select "456" val, "mowerw" double val1

    Union of all the

    Select val '709', 'wkwere' double val1

    Union of all the

    Select val '078', 'awerwewerwreq' double val1

    )

    Select * from cte;

    -incoming string

    "asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..."

    need to replace like 'abwec' 123 and 456 as "mowerw" and 709 as wkwere and 078 as 'awerwewerwreq '.

    How to replace the string value of the string

    I'm going to the table which will have mapping information I need to see the incoming string and replace the appropriate value of the val to val1

    something like

    Of

    "asdasd123456werwer@asdwer709@ewrwerewrwqqwezxder078ewrwer@87w8eopiu @..."

    TO

    "asdasdabwecewrwer@87w8eopiumowerwwerwer@asdwerwkwere@ewrwerewrwqqwezxderawerwewerwreq@..."

    By using the TYPE clause.

    with cte as

    (

    Select val '123', 'abwec' double val1

    Union of all the

    Select "456" val, "mowerw" double val1

    Union of all the

    Select val '709', 'wkwere' double val1

    Union of all the

    Select val '078', 'awerwewerwreq' double val1

    ),

    input_tbl

    as

    (

    Select "asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..." input_str

    of the double

    )

    Select max (input_str) Dungeon (first order by desc NWR dense_rank) input_str

    de)

    Select rno, input_str

    de)

    Select rownum NWR

    val

    val1

    input_str

    count (*) over() cnt

    from cte

    Cross

    Join input_tbl

    )

    model

    dimension (NWR)

    measures (val, val1, cnt, CAST (input_str AS VARCHAR2 (4000)) input_str)

    (

    input_str [any] = replace (nvl (input_str [cv () - 1], input_str [cv ()]), val [cv ()], val1 [cv ()])

    )

    )

  • Replace the text with formatting

    I need to replace every occurrence of the word with impatience! with forward! in italics. I have not found a way to do... Any ideas?

    Thank you

    JackL

    Captivate 7 - Windows 7

    I have the answer for those who are interested. Captivate (7) lets you export captions and subtitles to Word. Once in Word, simply replace the text sought by the text in the layout you want, save, and then re-import the Captivate projects. Works perfectly, with a caveat. If you use bullets (standard or numbers), the hyphen and the bullet formatting to these legends may require some manual adjustments after importation.

    In any case, this process has saved me a lot, a lot, a lot of hours!

    Jack Loganbill

  • Add line replaces the text

    Hello

    I was creating a form and I have 2 lines that the user can add a new line. the first works fine however the second simply replaces the text below.

    Am I missing something obvious that would prevent this?

    I would have joined the form but I do not see how to add a pdf file

    G

    Hello

    Here is the link to the form that I have worked on https://acrobat.com/#d=KNwNaVZSykxgNoSkN * 2XIw

    But the problem is: I've changed the Page - 2 set to slur all fields have say arranged. Yo the need to align those.

    What I've done: changed the Page - 2 set to flowed.

    Wrapped last two subforms in a single form.

    Thank you.

    Sidonie.

  • How can I get the text value of an element XML in MXML?

    Hello


    I have the following XML loaded into a variable of XML type:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" > 5 < / entry >
    < Enter key = "rdc.proxy.host" > http://192.168.1.2:8080 < / Entry >

    /Properties >

    I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider my variable and the data in "@key" area  But I don't know how to get the text value in a second column...  Is it possible or do I have to change my XML to something like this:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" value = "5" > < / entry > "
    < Enter key = "rdc.proxy.host" value ="
    http://192.168.1.2:8080"""> < / entry > "

    /Properties >

    Thanks in advance.


    Marc

    Yes, you'd better change your XML structure to fit the internal mechanisms of the DataGrid.

    As model dataField require each element of the grid line to have a named property to display, otherwise you will be forced to overcome this model to the custom help labelFunction for the particular column that will implement your custom actions on how to extract the appropriate data for this column of the grid line item. It will be much more complicated that just reorganize your xml structure.

  • Can Financial Reporting get the text value of the Capex planning Module?

    Hi all


    I read in the documentation that financial information can display Annotation using the planning information as a data connection source. Now, EN 9.3.1 may display the text value of the Capex Module?
    I tried to get the value of text, but it shows #error...

    Thank you

    Hello
    try to use the adapter to details of Planning in Financial Reporting Studio.
    Kind regards

  • Search for the text value data store

    Hello, I have a PDO of data to store, and I would like to search for a text value in a quantity of measure.  In each of my test series, there is a quantity of measure with the name TCNAME and stores the cell name of test in the string format.  I would like to get all the TCNAMEs that contain "TC4" for example.  Currently, I have to load TCNAME in the portal and display it in an array of string.

    Any ideas how I can do this?

    I assume you are using a PUMA testbed that stores this kind of goods on a unique value chain chains.

    There is no direct search method, so I guess that a script is the only solution we can offer.

    Datafinder you can search for the minimum and maximum of a channel. That would be too much work in the store of ASAM.

    "PDO / cpp"
    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "name = TCNAME", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    MsgBox tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next

    ' AOP5 / Corba
    protected tcnameLCs: set tcnameLCs = store. GetElementList ("LocalColumn", "measurement_quantity.name = TCNAME", true)
    protected tcnameLC: for each tcnameLC in tcnameLCs
    MsgBox tcnameLC.Properties ("values"). Value
    Next

    I have added the example which should be the shortest path from my point of view. In AOP5, you can search LocalColumn and spend BA which is less overhead.

    It is perhaps a good idea to post-processing of the data base and crush the decription "Test name" by

    "The test cell name == NAME. You can search not post-processed by Searchin' for.

    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "description = name of the test cell", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    tcnameMQ.Properties ("description"). Value = "name of the test cell is" & tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next
    Store.Save

    Thereafter, you would be able to search for it.

    Greetings

    Andreas

  • replace the text in html

    We have a column of type CLOB data table. This CLOB column store html text.

    the example data:

    < p >

    Do the same for the footer:

    < /p >

    < p >

    < br / >

    < table border = "0" cellpadding = "0" cellspacing = "0" style = "" width: 672px "width ="840">"

    < tbody >

    < b >

    < td nowrap = "nowrap" style = "height: 31px;" Width: 152px ">"

    < p >

    [Number of lines in the body]; 1 < /p >

    < table >

    < /tr >

    < / tbody >

    < /table >

    < /p >

    How can we replace the string 'body' with 'dummy' in this example without replacing the tag "tbody"?

    We want to apply a find and replace function of html data, without touching the html tags.

    How can achieve us on db oracle 11.2?

    TX

    For complex examples, you can use the parser HTML for example (JSOUP) available on this site: jsoup Java HTML Parser, with the best of the DOM, CSS and jquery

    You can load the jar with loadjava file into database and do a stored procedure for analyzing and replace java html code...

    It's simple and powerful library...

    Defining the content of the text of the items: jsoup Java HTML parser

    Selector syntax is used to find items: jsoup Java HTML parser

    You simply load html in the parser... and then you iterate tags and search of the string, you need to replace...

    Replace this string and save html updated the db back or where you want...

  • Replace the text tool in the comments [Acrobat]

    Why the hell the text option replace are removed in the last update? All the time, and you have done Adobe Acrobat much less useful for editors. Please put it back! Thank you!

    This is an open forum with the participation of staff of 'some' Adobe

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for bug reports or feature requests

  • How to transfer the text value of the element with the character of new line between pages?

    Hello

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    Cardel wrote:

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    This is one of the many reasons why it is inappropriate pass strings of characters between the pages through the URL. Instead of using a redirect button, change the button to send the page, then use the conditional calculations to set the values on the landing page and finally access the page using a conditional on submit: before Validation: (after calculation and before Validation and treatment) branch. When you press button terms of use on the calculations and the direction.

  • Replace the text of another table

    I have 2 tables and table_a table_b

    Table_a has names in there while table_b has prefixes in there.

    create table table_a (name varchar2 (4000));

    insert into values table_a ("pepsi co ltd");

    insert into values table_a ('abc limited');

    insert into values table_a ("def corp");

    Insert the table_a values ('xyz');

    create table table_b (suffix varchar2 (4000));

    insert into table_b values ("co ltd");

    Insert into values table_b ('limited');

    Insert into values table_b ('corp');

    My reqirement, it's that I need to select then part of suffixes removed names

    Table so a willingness to return.

    "pepsi."

    'abc '.

    "def".

    "xyz".

    There is no condition of 2-table join.

    I tried something like that, but it gave me a error "subquery returned more than single-line a line."

    SELECT NAME, REPLACE (B.SID,

    (SELECT FROM table_b suffix, table_a WHERE NAME LIKE '%' | suffix |) » %' ),'') A

    FROM table_a A

    select A.name, replace( A.name, B.suffix, '') short_name
    from table_a A
      left outer join table_b B
        on (A.name like '%' || B.suffix);
    

    Make sure you save this short_name somewhere if you do not have to re - process data.

    MK

Maybe you are looking for

  • Service Control Manager: atapi PCIIde message occurs

    Hello I started having this problem now after changing the compatibility mode on AHCI (think it's like that lol) Ive reinstalled the thing from the site Web of Toshiba Intel Storage Manager, I even installed the one directly from the Intel Web site w

  • Satellite L650-0ED - ports external monitor and turn off WiFi

    Hey,. 1. I have a Satellite L650/0ED, I was wondering if the HDMI and the external monitor port start when starting and if they cause the start time of the laptop to be slower. If they do slow down the start how disable them you using Device Manager,

  • Garmin MapInstall

    I tried to install this software, my system is looking for a digital signature.  I know to get around this with the command run, but I can't find the command! Help

  • Catalyst Control Center does not (HP 2000-2d62SR)

    Hello and sorry for the bad English. I tried to switch between GPUS for instructions, I found this site, but CCC, I have no option (it was a the most recent drivers for the AMD site).  Then I tried to install the drivers from the HP site for my lapto

  • Im confused about the security of my computer and its compatibility with my software anti spyware... StopZilla...

    My computer came with Norton Security.  I didn't like it so when it expired, I stop Zilla.  can I go ahead and remove the Norton program?  and StopZilla is compatible with the Windows defender and other security provided with the operating system.  H