How to use ssis to replace cursor

Hi,
We have a requirement where I need to take each record in a table and compare with other records  based on a transaction id, set few variables and insert these values in to another table. For performance improvement, we need to do the same in SSIS.
Can any one tel me how this can be done in SSIS as I am new to it?
Thanks,
Preetha

SAMPLE DATA:
Source table A
TranId
FlightNumber
DepartureDate
DepartureTime
DeparturePort
ArrivalPort
Rego
Config
AircraftType
Processed
2
xxxx
6/08/2014
11:25
SYD       
CBR       
XXXOJ
tt
XT1
0
3
yyyy
6/08/2014
6:06
CBR       
SYD       
YYYOE
tt
XT1
0
4
zzzzz
6/08/2014
7:40
SYD       
CBR       
YYYOE
tt
XT1
0
5
ttttt
6/08/2014
7:54
CBR       
SYD       
ZZZOC
tt
XT1
0
6
sssss
6/08/2014
7:13
CBR       
SYD       
TTTOH
tt
XT1
0
This is the destination table created :
CREATE TABLE [dbo].[OGS_Cat](
    [TranId] [int] IDENTITY(1,1) NOT NULL,
    [FlightNumber] [varchar](20) NULL,
    [DepartureDate] [date] NULL,
    [DepartureTime] [varchar](20) NULL,
    [DeparturePort] [char](10) NULL,
    [ArrivalPort] [char](10) NULL,
    [Rego] [varchar](20) NULL,
    [Config] [varchar](20) NULL,
    [AircraftType] [varchar](20) NULL,
    [CanxStatus] [varchar](10) NULL,
    [FlightType] [varchar](3) NULL,
    [RecordCreationTimestamp] [datetime] NULL,
    [RecordUpdatedTimestamp] [datetime] NULL,
    [CatDepatureDate] [date] NULL,
    [CatDepartureTime] [varchar](20) NULL,
    [LinkFlight] [int] NULL,
    [TurnAround] [bit] NULL,
    [Originator] [bit] NULL,
    [Overnighter] [bit] NULL,
    [Processed] [bit] NULL,
    [Comments] [nvarchar](100) NULL
) ON [PRIMARY]
I need to compare each flight based on rego in the source table and update it has originator/overnighter based on the port and rego condition, then finally insert them in the destination table.
Output required: Is insert the data from soure to destination with their originator/overnighter status.
Hope this clarifies your query.

Similar Messages

  • How to use Open/Create/Replace File.vi

    How to change Open/Create/Replace File.vi to Open File?

    Use the routine Write Characters to File.vi found under the File IO palette. It has a boolean control on the front panel. If this is set true, data is appended to the end of an existing file, or a new one is created if the file doesn't exist. If the control is set to false, the file is always created new--overwriting any existing file with the same name.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to use replaceALL to replace "/" to "\"

    i tried to use replaceAll("/","\\") to replace "/" in string "d:/test/test/ ". It doesn't work. anyone can tell me why?

    str = str.replaceAll("/", "\\\\");\ is special in String literal in Java source code, so if you have a "String literal like this one" to contain a literal \, you have to use two \\s in the String literal.
    \ is also special in regex, so if you want a literal \ in a regex you need to give that regex two of them, that is, \\.
    Combining those two yields \\\\ to get a single \ in a regex that is specified by a string literal.

  • How to use bulk in multiple cursors !!

    Hello All,
    I am having a following program that perfectly runs but its taking very huge time to complete it.
    Can any one suggest how i can improve the performace of this code ..
    thanks in advance - appreciate your help .
    Here's the program.
    ==============
    procedure Proc_Fmly_VehicleTA_Cnt is
    CURSOR c_cur_fmly IS SELECT FAMID, NUM_AUTO, NUM_TVAN, VEHQ, VEHQL FROM FMLY;
    CURSOR c_cur_eovb_auto IS SELECT FAMID, VEHICIB ,VEHICYB FROM EOVB WHERE VEHICYB = gv_eovb_vehicyb_automobiles ;
    CURSOR c_cur_eovb_trucks IS SELECT FAMID, VEHICIB ,VEHICYB FROM EOVB WHERE VEHICYB = gv_eovb_vehicyb_trucks ;
    v_total_automobiles number := 0 ;
    v_total_trucks number := 0 ;
    v_procedure errorlog.procedure_name%TYPE default 'Proc_Fmly_VehicleTA_Cnt';
    v_location errorlog.location%TYPE;
    BEGIN
    v_location := 4 ;
    -- global variables gv_eovb_vehicyb_automobiles = 100 gv_eovb_vehicyb_trucks = 110
    -- <<Computing the owned vehicles - automobiles >>
    -- INNER BLOCK
    BEGIN
    FOR i IN c_cur_fmly LOOP
    FOR j IN c_cur_eovb_auto LOOP
    IF ( i.FAMID = j.FAMID ) THEN
    v_total_automobiles := v_total_automobiles + chk_notnull_blank( j.vehicib);
    END IF;
    END LOOP ;
    UPDATE FMLY SET NUM_AUTO = v_total_automobiles WHERE famid = i.famid ;
    v_total_automobiles := 0;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    v_err_code := SQLCODE;
    v_err_msg := substr(SQLERRM, 1, 200);
    INSERT INTO audit_table (error_number, error_message) VALUES (v_err_code, v_err_msg);
    error_logging(p_error_code => substr(sqlerrm,1,9), p_error_message => substr(sqlerrm,12), p_package => 'PKG_FCI_APP',p_procedure => 'Proc_Fmly_VehicleTA_Cnt' , p_location => v_location);
    END;
    -- <<Computing the owned vehicles - trucks >>
    -- INNER BLOCK
    BEGIN
    FOR i IN c_cur_fmly LOOP
    FOR j IN c_cur_eovb_trucks LOOP
    IF ( i.FAMID = j.FAMID ) THEN
    v_total_trucks := v_total_trucks + chk_notnull_blank( j.vehicib);
    END IF;
    END LOOP ;
    UPDATE FMLY SET NUM_TVAN = v_total_trucks WHERE famid = i.famid ;
    v_total_trucks := 0;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    v_err_code := SQLCODE;
    v_err_msg := substr(SQLERRM, 1, 200);
    INSERT INTO audit_table (error_number, error_message) VALUES (v_err_code, v_err_msg);
    error_logging(p_error_code => substr(sqlerrm,1,9), p_error_message => substr(sqlerrm,12), p_package => 'PKG_FCI_APP',p_procedure => 'Proc_Fmly_Vehicle_Cnt' , p_location => v_location);
    END;
    -- END OUTER BLOCK
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    v_err_code := SQLCODE;
    v_err_msg := substr(SQLERRM, 1, 200);
    INSERT INTO audit_table (error_number, error_message) VALUES (v_err_code, v_err_msg);
    error_logging(p_error_code => substr(sqlerrm,1,9), p_error_message => substr(sqlerrm,12), p_package => 'PKG_FCI_APP',p_procedure => 'Proc_Fmly_VehicleTA_Cnt ', p_location => v_location);
    END Proc_Fmly_VehicleTA_Cnt;
    -- ignore error_logging procedure ; its a part of package.
    thanks/kumar
    Edited by: kumar73 on Sep 17, 2010 9:36 AM
    Edited by: kumar73 on Sep 17, 2010 9:37 AM

    btw your exception handler has a couple of problems (I've formatted it for you):
    EXCEPTION
       WHEN OTHERS THEN
          RAISE_APPLICATION_ERROR
          ( -20001, 'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM );
          v_err_code := SQLCODE;
          v_err_msg  := SUBSTR(SQLERRM, 1, 200);
          INSERT INTO audit_table (error_number, error_message) VALUES (v_err_code, v_err_msg);
          error_logging
          ( p_error_code => substr(sqlerrm,1,9)
          , p_error_message => substr(sqlerrm,12)
          , p_package => 'PKG_FCI_APP'
          , p_procedure => 'Proc_Fmly_VehicleTA_Cnt'
          , p_location => v_location ); When RAISE_APPLICATION_ERROR raises the exception, the procedure will terminate and the error logging steps below it won't get called.
    Also if you just want to re-raise an exception without adding any information or your own message etc, then you should use RAISE, not RAISE_APPLICATION_ERROR. If you're going to use RAISE_APPLICATION_ERROR it should be something like:
    RAISE_APPLICATION_ERROR
    ( -20001
    , 'Could not set automobile count to ' || v_total_automobiles || ' for family ' || i.famid
    , TRUE );Notice the last parameter, TRUE, which tells it to keep the existing error stack (i.e. whatever Oracle error made it fail), which will then appear underneath your custom error message. You should never concatenate SQLERRM into a RAISE_APPLICATION_ERROR message. (And SQLCODE is just the error number that is already part of SQLERRM so there is no point including that anyway.)
    Those changes give you something like:
    EXCEPTION
       WHEN OTHERS THEN
          INSERT INTO audit_table (error_number, error_message)
          VALUES (SQLCODE, SUBSTR(SQLERRM,1,200));  -- btw why SUBSTR? Why not log the entire message?
          error_logging
          ( p_error_code => substr(sqlerrm,1,9)
          , p_error_message => substr(sqlerrm,12)
          , p_package => 'PKG_FCI_APP'
          , p_procedure => 'Proc_Fmly_VehicleTA_Cnt'
          , p_location => v_location );
          RAISE_APPLICATION_ERROR
          ( -20001
          , 'Could not set automobile count to ' || v_total_automobiles || ' for family ' || i.famid
          , TRUE );

  • How to use Find and Replace for CR or TAB

    How can I use PAGES 'Find and Replace' function to eliminate unwanted carriage returns or Tabs?
    I tried to copy the backwards P and paste into Pages find window, but that doesn't work.
    eMac   Mac OS X (10.4.4)   1 G RAM

    Copying & pasting should work, but it isn't necessary. In the Find & Replace fields hold down the Option key & hit the return or tab key.
    Peggy

  • How to used REGEXP_REPLACE  for replace part of string ?

    hi
    How can i replace part of string as following , i want to replace space in date by "-"
    SELECT
    REGEXP_REPLACE(upper('Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012'),
    '[0-9]{1,2}[^0-9](JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC)[^0-9][0-9]{4}',
    ' ','-') "REGEXP_REPLACE"
    FROM DUAL;
    the output will be like this
    Daivd bought stuff by 2000 USD on 12-Sep-2012 from KL and left kl on 20-Sep-2012
    regards

    I thought the questions is answered.
    Your code will not work, because the alternate expression applies only to the four digit year and the month.
    If you want to recognize both date formats with one expressions, you have to group the complete expressions.
    The disadvantage of this would be, that the backreferences would not work in the same way because you would have more groups.
    I advice to use two separate regular expressions for this task.
    Take a look at the following example if you simply want to fill the gaps with -:
    with yourtable as
      select 'Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012' text from dual union all
      select 'Daivd bought stuff by 2000 USD on Sep, 20 2012 from KL and left kl on Sep, 20 2012' text from dual 
    SELECT
    REGEXP_REPLACE(
    REGEXP_REPLACE(text,
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})','\1-\2-\3',1,0,'i'),
    '(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC), ([0-9]{1,2}) ([0-9]{4})','\1-\2-\3',1,0,'i') regexp_replace
    FROM yourtable;If you want same output-format for both date formats you could use this:
    with yourtable as
      select 'Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012' text from dual union all
      select 'Daivd bought stuff by 2000 USD on Sep, 20 2012 from KL and left kl on Sep, 20 2012' text from dual 
    SELECT
    REGEXP_REPLACE(
    REGEXP_REPLACE(text,
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})','\1-\2-\3',1,0,'i'),
    '(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC), ([0-9]{1,2}) ([0-9]{4})','\2-\1-\3',1,0,'i') regexp_replace
    FROM yourtable;Edited by: hm on 25.09.2012 22:00

  • How to use SSIS 2014 to read from Sharepoint List ?

    Hi there,
    I have designed a simple entry form for users using List in Sharepoint 2013.
    I need to use the information to merge into my datawarehouse.
    Question :
    1. How can I setup SSIS (SQL 2014) to get the source from List in Sharepoint?
    I have tried to download the script as suggested in codeplex but it seems not working with SQL 2014 as there is no SSIS toolbar displayed.
    Any help is much appreciated
    Thank you and Best Regards

    Hi SylviaO,
    The current
    SharePoint List Adapter that extracting and loading SharePoint Data in SQL Server Integration Services supports x86/x64 systems using SQL 2005 / SQL 2008 / SQL 2008 R2/ SQL 2012. It doesn’t support SQL 2014. Maybe we need wating the update.
    Besides, the
    OData Source component can also be used to read from SharePoint lists. So we can download and install the 64 bit ODataSourceForSQLServer2014-amd64.msi or 32 bit ODataSourceForSQLServer2014-x86.msi from the
    Microsoft® SQL Server® 2014 Feature Pack.
    The following blog about using the SSIS OData Source Connector to read data from SharePoint lists is for your reference:
    http://whitepages.unlimitedviz.com/2014/03/using-the-odata-source-connector-with-sharepoint-online-authentication/
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to use javac to replace deprecated wsgen or apt in JDK 7?

    I am using jax-ws RI for web service and generating web service artifacts using wsgen.
    When I use wsgen or apt to generate web service artifacts in JDK 7 with following command.
    wsgen -s src -cp CLASS_PATH -d OUTPUT_DIRECTORY  com.sun.WebServiceSEI
    displays following warning message
    The apt tool and its associated API contained in the package com.sun.mirror have been deprecated since JDK 7 and are planned to be removed in the next major JDK release. Use the options available in the javac tool and the APIs contained in the packages javax.annotation.processing and javax.lang.model to process annotations.
    How can I generate web service artifacts using javac instead of wsgen or apt ?
    Edited by: user11128702 on Feb 6, 2012 1:54 AM
    Edited by: user11128702 on Feb 6, 2012 1:57 AM

    Hi Frank
    >After correcting one error in the given source (could never run that way), I get the JCO marked as deprecated as well. So this source code there seems to be a left over from NW 2004?
    Not exactly. The deprecation means that the JCo API version is 2.X while JCo 3.0 is already available. However, this does not mean that you cannot use the "com.sap.mw.jco.JCO". I know lots of projects running even on 7.11 and 7.20 that still use the JCo 2.X.
    >Is the destination service itself also depricated?
    No, no, no.
    >So I found out JCO is now depricated and I should use SAP Java Resource Adapter instead. Can I combine it with destination service or is there something similar as in web dynpro? For Ehp 1 I found this adaptive RFC package, but seems not to be available in 7.10?
    Java Resource Adapter is just a new JEE container for JCo API. Still it's also has some problems. So I'd not recommend you to use it.
    >What I clearly want to avoid is to give any user, password or system parameters in the source code as I'm used from Web Dynpro. Can I use the web dynpro mechanism maybe somehow?
    Use JCo 2.X + Destination Service. Ignore the API deprecation.
    BR, Siarhei

  • How to use case to replace the & in select statement

    Oracle version : 11.1.0.6.0
    RHEL
    Hi,
    I want to get a list of all expired and locked users but want to replace the "&" with and here is my code but it isn't working.
    Please some guidance, thanks.
    SQL> select username,
    2 case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    3 ELS 'no locked users'
    4 end) account_status
    5 from dba_users
    6 where account_status like 'EXPI%';
    case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    ERROR at line 2:
    ORA-00907: missing right parenthesis

    798188 wrote:
    thanks for the comments I corrected the ELSE and 'EPX%' but still same error :
    EOH> select username,
    2 case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    3 ELSE 'no locked users'
    4 end) account_status
    5 from dba_users
    6 where account_status like 'EXP%';
    case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    ERROR at line 2:
    ORA-00907: missing right parenthesisFirst of all, you do not need a CASE statement.
    Did you see the where clause of your query??
    6 where account_status like 'EXP%';do you realise that your query will always return those records for which value of account_status column starts with 'EXP'?
    Why use CASE when it could be simply written like this :
    SELECT username,
           'EXPIRED AND LOCKED'
    FROM   dba_users
    WHERE  account_status LIKE 'EXP%'

  • How to use regular expression replace for this special characters?

    hi,
    I need to replace the below string, but i couldnt able to do if we use the special charaters '+', '$' . can anyone suggest a way to do this?
    select REGEXP_REPLACE('jan + feb 2008','jan + feb 2008', 'feb',1,0,'i') from dual
    anwers should be :- feb

    you should use escape character \.
    the regular expression will look like as follows:
    select REGEXP_REPLACE('jan + feb 2008','jan \+ feb 2008', 'feb',1,0,'i') from dual
    hope this is what you needed.
    cheers,
    Davide

  • How to use blank space replace NULL on discoverer viewer

    Hi,
    There is a report that has a varchar field should show text values, and if NULL, I need it show blank space, and does in disco desktop, but on viewer, the same worksheet shows NULL.
    Even I changed in the Tools - Options - Format menu(desktop), it still show NULL on viewer.
    why?
    please help! thanks!
    sammy

    Hi Sammy,
    Unfortunately ‘some’ of the settings set in Desktop do not carry over to Viewer. These options need to be defined for Viewer itself.
    A temporary way to set the Viewer settings is to click on ‘Options’ when logged in Viewer itself. You’ll have to open a responsibility or report before this option becomes available to select. Within here you’ll be able to change the way NULL values are seen. However this method only makes the change for the User you logged in with.
    To make the change for all users, it’s best to edit the PREF.TXT file on the Discoverer Server. Please view the documentation below for more information on how to configure Viewer. For windows platform click here : http://download-uk.oracle.com/docs/html/A90287_01/toc.htm,
    For Unix platform click here : http://download-uk.oracle.com/docs/html/A90288_01/toc.htm. Once you’ve run the applypreference script, these settings will be forced down to all users of Discoverer.
    Hopefully this will help ;-)
    Lance

  • How to use file system replacing optical archive?

    We do not have IXOS (OT) yet.
    However I have configured everything for printlist archiving and early archiving for IXOS (on the R3 side ONLY!)
    May I modify the procedure a bit so that the archive will be stored in the file system instead of the
    optical device since we do not have IXOS yet.
    Please help. Thanks!

    hi,
    Create Queues
    In this customizing activity you create queues and specify the queue administrator. This process should become part of the installation routine of the storage system, because not activating a queue can lead to irreparable errors (and may mean having to repeat print list creation and storage).
    Example
    CARA Queue: Queue in which the spool writes the storage requests.
    Activities
    You can create queues for the following functions:
    Asynchronous storage (CARA-Queue)
    Error in asynchronous storage (CARA_E-Queue)
    Storage confirmation (CFBC-Queue)
    Error in storage confirmation (CFBC_E-Queue)
    Asynchronous retrieval (CFBA-Queue)
    Error in asynchronous retrieval (CFBA_E-Queue)
    You can also define a queue administrator.
    Also u can check in archivelinking.
    Edit Links
    In this customizing activity, you link a document type to an object type, a content repository, and a link table. This has the following effect on documents of this document type:
    The documents can only be linked to instances of the specified business object type.
    The link entry is entered in the specified link table.
    The documents are always stored in the specified content repository.
    Activities
    Enter the following data:
    Object type:
    Business object type that exists in the business object repository (transaction SWO3).
    One object type can be used with more than one document type.
    Document type
    Name of a document type specified in the customizing activity Document types .
    Status
    X: The storage system is active.
    Empty: The storage system is not active.
    Content repository ID
    Two-digit identification number that you have entered in the customizing activity Maintain Content Repositories .
    Link table
    Name of the table, in which ArchiveLink enters the link entries between stored documents and the corresponding application documents.
    SAP supplies the following link tables:
    TOA01, TOA02, TOA03 (general link tables),
    TOAHR (only for documents from the SAP HR application component),
    and
    TOADL (only for print lists).
    Alternatively, you can define your own link tables. To do this, enter the customizing activity Maintain available link tables. Here you can also find a description of the link tables supplied by SAP.
    Retention period
    Number of months the entry for the stored document remains in the link table before it is deleted.
    Benakaraja

  • How to use cursor in php?

    for example:
    CURSOR CUR_ORDER IS
    select distinct a.sales_branch segment2,a.order_number,
    a.delivery_id,
    a.sold_to_customer_id customer_id,
    a.bill_to_customer_id,
    a.ship_to_customer_id,
    a.purchase_order,to_char(a.ordered_date,'yyyy-mm-dd') order_date
    from vv_ar_temp_tl a;
    how to use it in php program?

    Hi,
    I do not know what exactly is Your question about. I'll try to give an overview:
    1. "CURSOR CUR_ORDER IS" is PL/SQL syntax, not PHP
    2. result of oci_parse call is in fact a CURSOR, so I think You already know how to use it.
    3. if Your question is on how to pass cursor between PL/SQL and PHP, I use:
    a) PL/SQL procedure:
    CREATE OR REPLACE
    PROCEDURE TEST_P (PO_REF_CURSOR OUT SYS_REFCURSOR) AS
    BEGIN
    OPEN PO_REF_CURSOR FOR -- Opens ref cursor for query
    SELECT OBJECT_NAME, OBJECT_TYPE FROM USER_OBJECTS WHERE ROWNUM <= 5;
    END;
    b) in PHP:
    $conn = ocinlogon($database_user, $database_passwd, $database); // connect database
    $outrefc = ocinewcursor($conn); //Declare cursor variable
    $mycursor = ociparse ($conn, 'begin test_p(:curs); end;'); // prepare procedure call
    ocibindbyname($mycursor, ':curs', $outrefc, -1, OCI_B_CURSOR); // bind procedure parameters
    $ret = ociexecute($mycursor); // Execute function
    $ret = ociexecute($outrefc); // Execute cursor
    $nrows = ocifetchstatement($outrefc, $data); // fetch data from cursor
    ocifreestatement($mycursor); // close procedure call
    ocifreestatement($outrefc); // close cursor
    ocilogoff($conn); // close database connection
    var_dump($data); // show content fo $data variable
    Now $data contains arrays of columns with arrays of rows from query.
    Hope it helps You,
    Regards,
    Pawel

  • How can I use phonetic fonts for cursors name

    Hi all!
    I need to use phonetic characters in cursors names. Does somebody know wich font I have to use for this ?
    One other problem is that I need to use Vietnamese characters at the same time. Is it possible to change the font of the cursors names run-time (in the diagram)?
    Last quetion: Does LabVIEW support unicode? If yes,how can I use it?
    Thank you for your help!
    Nico

    > Effectively, dual-byte encodind is allright to support Vietnamese and
    > Western languages. But how did I get the phonetics characters? With
    > shortcut key ?
    > As I need the user to change the cursor name run-time without using
    > the frontpannel cursor legend, I'm using property node and a subVI
    > asking for this name. (The user will enter the name in a string
    > control).
    > Moreover I would like the user to have the possibility to choose a
    > character in a pannel (something similar to the menu 'insert symbol'
    > in MS Word). Is it possible to do this ? With Active X maybe, but I
    > don't know which activeX objet I can use....(I am not very familiar
    > with ActiveX).
    Unfortunately, I don't know what the phonetic characters look like, so I
    can't
    tell you what to type to enter them. If you find them in Word,
    you should be able to copy them to the clipboard, they will be in
    Unicode, and paste them into LV -- where they will be converted to dual
    byte. If it doesn't work, try to find out if they are exist in the
    locale of your machine, or more importantly, the target machine.
    If you can display them, you can build a simple ring with short strings
    containing the phonetic characters. When the user picks something from
    the ring, use the strings property and value to index out the string and
    replace/append to the string the user is editing. You will want to pay
    attention to the string's selection if this is supposed to act like a
    character palette and either do an insert or replace.
    If you want a more compact grid menu, you will need to convert the
    strings to images and paste them in a pict menu. That value can be used
    to index a constant array that matches the order in the pict ring.
    Greg McKaskle

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all!
    I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
    <span class="B01-K-ITAL">random text</span>
    To something like this:
    <em>random text</em>
    I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
    Anyone able to lend a hand?

    Here is my latest regular expression with Perl.   I think it matches the spirit of the request in the original post.
    Note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
    perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
    input text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
    output text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>

Maybe you are looking for

  • Jpegs on websites are coming up with a yellow cast. Anyone else?

    [https://picasaweb.google.com/113120418431036860907/January252012?authkey=Gv1sRgCNHp6eKIod_1Zw#5701590386477063250 Example at Picasa]

  • Scheduling Workflow

    Hi, I have created a process workflow module and asigned a schedule to that module. Now every time I go to enterprise manager to run this, I get and error message "ORA-20001: ORA-20001: Begin. initialize complete. l_job_audit_execution_id= 997. ORA-2

  • Abnormal Shut-Down Sequence After Power Supply Replacement ???

    Before the repair, there was a spinning wheel on the blue screen before the shut-down. But now the machine just cuts the power completely the moment the blue screen appears. Do you guys think that there is something to do with the new power supply ?

  • Exclamation point pops up when viewing photos??

    I just imported a set of photos from a new camera that I haven't imported from before. I can see all the pictures when scrolling through the album, but when I double click one to open it larger I get this big exclamation point image. iPhoto also fail

  • BAPI for cost centre create/change

    Hi, Is there a BAPI for Cost centre create and change? Thanks in advance. Regards, Arun Mohan