Dynamic channels

Hello

I need to extract string to variables as values below.

declare
str varchar2(100):='Acknowledgment=1234,Order Requester=5678,Site Contact=9999,Other Contact=1456,Pre=1234,23445,56767';
l_a varchar2(100);
l_or  varchar2(100);
l_s  varchar2(100);
l_ot  varchar2(100);
l_pre  varchar2(100);
Begin
l_a:='1234';
l_or:='5678';
l_s:='9999';
l_ot:='1456';
l_pre:='1234,23445,56767';
end;
/


But the challenge here is order of the change of alignment dynamically. ex as below.

str varchar2(100):='Order Requester=5678,Acknowledgment=1234,Site Contact=9999,Other Contact=1456,Pre=1234,23445,56767';
str varchar2(100):='Pre=1234,23445,56767,Order Requester=5678,Acknowledgment=1234,Site Contact=9999,Other Contact=1456';



So how to extract the acknowledgment to l_a, order the plaintiff to l_or...

Could you please help me on this scenario?

Thank you

Spengler

Post edited by: SenthilkumarS

Your data is basically in the form key = value and they are all separated by commas.

It is possible that your value can itself contain a comma ', '?

Tags: Database

Similar Questions

  • niHSDIO VI of dynamic channel assign

    It might be a silly question, but I am struggling to find the answer I'm looking for.  When using the niHSDIO assign dynamic channels VI with the PXI-6552, how to determine which channel is assigned to which pinout of the PXI?

    I call the VI as follows:

    I was able to stumble upon this article that shows the pinout diagram; However, it does not seem to correlate the VI channels to the PXI pins:

    Intuitively, I presume that the DIO pins corresponding channels and just go in ascending order, but I was wondering if someone could confirm this or point me in the right direction as to where I can identify this information.

    Of trial and error, I have deduced that my hypothesis is correct.

  • Dynamic channel selection

    Hi people,

    I use DIAdem 2011. I have a question on channel selection. I'm averaging channels using the function "Call ChnAverage("'temp1'-'temp3'","mean")" and the entry list varies which means "temp3" could be 'TMP4' or 'temp5. So I want to check the last entry with a variable as tempi. But in "" DIAdem doesn´t 'i' recognize as an integer, but a part of the string "tempi". Does anyone have ideas for dealing with this problem? Thank you very much!

    Andi

    Thank you, Walter. The ideas are great

  • Select the dynamic channel to fill in the legend

    Hello no,.

    I am the acquisition of 16 channels each channel has their own name, when I double click on the graph, the populous select.vi channel and it will list the name of the channel. If I select the first channel 5 or last name 5 channels or channel. the selected channel must be complete on behalf of legend.

    I am facing the problem, when I select the way to any list of channels his does not display does not name, the same method that I did with labview 7.1, which has been working well.

    Please find this attachment, my code

    Hello

    Find error or anything just a blank field name while doing this operation.

    A point I can see here is:

    1. the table "name out" which bears the names of channel should have clues covered by array index.  If the index covered by index out is not in the name of then an empty string will be returned.

    Please check if this condition is met.

  • Dynamically change the Ni HSDIO channels

    I am currently using a PXI-6552 module to generate and acquire I2C signals simultaneously.  I would like to know if it is possible (and how I would go to this topic) to dynamic change channels.  My goal is just to pass the two references of NOR-HSDIO (purple variables) to a new slot - VI that I create from a different set of 5 channels 5 channels.  For example:

    Pseudocode:

    PXI sessions initialize;

    for (i = 0; i< 10;="">

    {

    Set the channels 0-5;

    Generate and acquire;

    Stop the acquisition;

    Set channels to 6-10;

    Generate and acquire;

    Stop the acquisition;

    Set channels to 11-15;

    Generate and acquire;

    Stop the acquisition;

    }

    close the sessions of PXI;

    Basically, I need the fastest way for acquisition channels without having to initialize and close sessions each time.

    I am currently using the HWC downloaded the example .zip from here: http://www.ni.com/example/31200/en/. (I've also attached the two that are necessary for my problem).

    Init HWC Device.vi: (also attached)

    Performance Device.vi HWC: (also attached)

    I may need on the screws are Assign dynamic channels, Configure Idle State and initial configuration.  However, I don't know if those are the only ones.  If it's possible, can I close the original channels and then assign more?  Or re-call "Dynamic Assign Channels" automatically disables all channels not assigned?  Etc.

    The important things to note: I'll put 5 channels at once - for both acquisition AND generation.   I need to close the channels and proceed with 5 different channels - for both acquisition AND generation.  All channels must be on the State of the 'z' to high impedance permanently.

    If you need further information, please let me know!  Thanks in advance for any suggestions and assistance.

    By trial and error, I was able to find a way to do this:

  • compactRIO: selection channel dynamically

    Hello

    I would like to order multiple power supplies using compactRIO PCI modules, AI / AO. The problem is that I need a solution that fits good based on how many power supplies are controlled by a perticular cRIO system. There could be 5 on a single system and there could be 40 on the other so I won't have to change the program every time, I'd rather just a simple configuration for each source file. I thought that I could set up all parameters power supply and sense in a multidimensional array then have a loop to process each entry in the array. Speed can be a bit of a problem since you can not deal with this in parallel but the speed is not too big of a concern right now.

    My problem with this plan is that I do not know how to select a channel in the FPGA dynamically, without that it does not seem that my idea would work. One has a few suggestions on how to deal with this? Is there a way to select the channel you want to acquire the deactivation data? Or y at - it a better way to make a program like this that can cope with an indefinite number of power supplies? Help and feedback would be greatly appreciated.

    Pawel

    You can create a program by using the scan Mode which will assign dynamic channels based on which modules are present.

    White paper this gives an overview of this operation

    and this example goes into details

    Discovery by programming, Configuration and access of the system CompactRIO Scan Mode IO in LabVIEW

    -Hunter

  • How to control each channel of the signals emitted by the generator of digital waveforms?

    Generator has digital waveforms of 8 channels. I need to generate two different signals for HSDIO. How to change and control two different ways? In addition, how to translate pinout of the PXI-6541 to channels? I need pin 1,3,29 and 31 control signal individually.

    Thank you!!

    You need to combine your personal data in a table.  The digital waveforms is simply a numeric representation of the binary table.  It always boils down to bit 0 of each element of the array will channel 0 (or the first string that you specify in creating dynamic channels).  The next bit goes to the next channel.  My last post is very clear.  To display the table in binary, right-click on a table element, then select the display Format, then select binary.  You can also right click on the element, select Visible, then select Radix Show to display the small b before the number.  One last thing, in the display Format window, uncheck the box next to the minimum field width to use.  Then set the digital just below zone 8.  Then select Pad with zeros to the left in the box below.

    You should not use waveforms up to what learn you more about how the HSDIO operates on the input data.  It is not difficult to combine waveforms, but it is not as clear as it is using an array of U8, U16 or U32.

    Trying to explain further.  The first number to be written to the HSDIO will have this effect: Bit 0 (LSB) of the number is written to the first HSDIO string you specify.  Bit 7 is on channel 8, you specify.  If you specify no 8 channels, the bits download ignored.  If wiring in a certain number will produce only a single bit on each channel.  In other words, the number has already combines the bits of all channels that you specify.  Combine you do nothing yourself.  Return to my photo on my last post.  By wiring in a table, you cause a binary model must be generated.

    I hope that is more clear.

  • Dynamic processing of single quotes in SQL

    Version: 11.2.0.4

    I'm kinda a beginner when it comes to dynamic SQL.

    I had a condition in which I had to run the following command on all the data files in the DB.

    -Expected results

    change datafile resizing '< Filename >' database 10g;

    The name of file, which is generated dynamically must be in single quotes.

    -Sample data

    create table x (file_name varchar2 (90));

    Insert into x values ('/ u04/oradata/ORCL/system.dbf');

    Insert into x values ('/ u04/oradata/ORCL/sysaux.dbf');

    Insert into x values ('/ u04/oradata/ORCL/users01.dbf');

    I managed to do it using a similair below code. But I had to do several things of trial and error to get this working in reason to get the correct number of single quotes for the string generated for v_sql below. So, I want to rethink the basics.

    declare

    v_sql varchar2 (350);

    Start

    for rec in (select x file_name)

    loop

    v_sql: = "alter database datafile"'| " Rec.file_name | " 'resize 10g;

    -RUN IMMEDIATELY v_sql;

    dbms_output.put_line (v_sql);

    end loop;

    end;

    /

    ALTER database datafile ' / u04/oradata/ORCL/system.dbf' size 10g

    ALTER database datafile ' / u04/oradata/ORCL/sysaux.dbf' size 10g

    ALTER database datafile ' / u04/oradata/ORCL/users01.dbf' size 10g

    PL/SQL procedure successfully completed.

    I would like to know the role played by each single quote. I used 8 apostrophes in the V_SQL variable above, and I numbered each single quotation mark as shown below.

    1                        234                 567           8

    |                        |||                 |||           |

    v_sql: = "alter database datafile"'| " Rec.file_name | " 'resize 10g;

    Example of output from the generation of dynamic channels:

    alter database datafile '/u04/oradata/ORCL/users01.dbf' 10g resizing

    1 and 4-> start and end of the string alter database datafile '

    3 > literal single quote of string in red in the example output

    2 > escape 3 (single literal quote of string)

    5 and 8-> start and end of the string ' resize 10 g

    6-> escape 7 (single literal quote of string)

    7 > literal single quote of string in green in the example output

    My asssumptions are correct?

    I would like to write like this.

    declare
       v_sql    varchar2(350);
    begin
      for rec in (select file_name from x)
          loop
            v_sql := q'[alter database datafile '#FILENAME#' resize 10g]';
            v_sql := replace(v_sql, '#FILENAME#', rec.file_name);
            --- EXECUTE IMMEDIATE v_sql;
            dbms_output.put_line ( v_sql);
        end loop;
    end;
    /
    
  • Dynamically create headphones...

    Hello

    I have an external swf that I load into Flash and try to achieve communication between the swf file and the charger of the parent.

    In the external swf file, I have a series of events, they are preparing based on that frame the user is enabled, i.e.:

    dispatchEvent(new Event("1"));
    dispatchEvent(new Event("2"));
    dispatchEvent(new Event("3"));
    

    I am trying to create a generic listener function that will add several eventListeners to the scene based on an arbitrary number that will listen to turn for the events that they are preparing the external SWF, as follows:

     function ListenForNavFromExternalAsset(sectionLength:int):void
    {        
        for(var i:int = 0;i<sectionLength;i++)
        {
            var screenNum = '"' + i + '"';
            stage.addEventListener(screenNum, NavToScreenFromExternalAsset, false, 0, true);
            trace(screenNum);
        }
    }
    

    I can see followed by the screen, so I know that the service is running.

    However, clearly, the events are not added to the scene because I never see the traces below, even if the external swf is no doubt sending its events:

    function NavToScreenFromExternalAsset(e:Event):void
    {            
        trace("ADDED_TO_STAGE");
        if(e == Event("1"))
        {
            trace("NavToScreenFromExternalAsset: ONE");
        }
        else if(e == Event("2"))
        {
            trace("NavToScreenFromExternalAsset: TWO");
        }
    //etc..
    }
    

    There must be a better way to do what I'm not aware of, I had a lot of success in the past using dispatchEvent and capture the event, but I don't know how to dynamically create headphones and listen to a dynamic channel.

    If anyone can suggest a way forward, I would be much obliged.

    Thx for reading,

    ~ Chipleh

    Hi Ned,.

    Thank you very much for the reply and oooh, it looks nice, I'll put it in my Pocket Flash for future use.

    After a lot of writing and rewriting and realize (as usual) I was overloading the question, I came up with it, that solved my problem:

    In one of my functions running, I create the number in which I want to listen to

    Add it to the event listener

    for (var i: int = 0; i<>

    {

    var thisScreen:String = String (i + 1); ([/ /, false, false, 1]);

    addEventListener (thisScreen, NavToScreenFromExternalAsset, true);

    }

    Then in the event listener, I get the event type, apply it to my screenCount variable,

    my function call and I'm good to go

    function NavToScreenFromExternalAsset(e:Event):void

    {

    screenCount = int (e.type) - 1;

    DisplayLessonScreenContent();

    }

    However, that being said, the custom event class that you posted is much more elegant, where the solution is just a simple hack. Anyway, thanks for your message of Ned and a lot of satisfaction to you, my friend.

    ~ Chipleh

  • Can see router WLAN with Satellite A100 - PSAANE Vista

    Hello

    I have a satellite A100 PSAANE running Vista Ultimate that has trouble finding WIFI (atheros wlan card). The router is a Siemens gigaset transmitting the WPA2-PSK / WPA - PSK with dynamic channel assignment. In the past, I was able to get a wireless connection to my router with this laptop, but did find it difficult to detect the WIFI network sometimes.

    Location:
    Active wireless switch. Different WLAN of the A100 see whenever I update the list in Vista.
    Ever - at least most of the time that I do not see my own network.

    Other laptops running Windows XP however found my WLAN in these moments there.
    This implies a malfunction on the A100.
    Update (28/10) drivers for Atheros and Vista resulted in no w-network at all.

    Reset did not help. A reset of the router does not work nor the laptop next to the router of positioning.
    The failure of detection is a recurring event with this router.

    Currently the situation is that no WLAN is detected, then things got worse.

    Everyone has the same problems in a similar configuration?
    I feel that I might have a problem of material here.

    Thank you very much

    I had a similar situation with my two laptops Toshiba (new Satellite A200 and older Tecra M1). I was confused why the WIFI network is not visible the two notebooks. After a few reboots (laptop computers and router) I again was able to use the WLAN.

    I do not really understand what was wrong, but now it works again. Try the same thing. Stop the router for awhile and turn it back on.

  • IOS VPN L2L + C2L (cisco IPSEC client)

    Hello

    need to configure a C2L (client to the LAN) vpn on a cisco router where there is already an ipsec vpn.

    !!! already configured on the ROUTER

    !

    crypto ISAKMP policy 1

    md5 hash

    preshared authentication

    address of cisco key crypto isakmp 0.0.0.0 0.0.0.0

    !

    !

    Crypto ipsec transform-set esp - esp-md5-hmac Tunnel

    !

    crypto dynamic-map 10 Road-Tunnel

    game of transformation-Tunnel

    match address 115

    !

    !

    !

    !

    Crypto map 10 ipsec-isakmp Crypto-Tunnel Dynamic Channel-Tunnel

    !

    point-to-point interface ATM0/1/0.1

    card crypto Crypto-Tunnel

    !

    access-list 115 permit ip 10.0.0.0 0.0.0.255 192.168.168.0 0.0.0.255

    access-list 115 permit ip 10.0.0.0 0.0.0.255 10.2.0.0 0.0.0.255

    access-list 115 deny ip 10.0.0.0 0.0.0.255 any

    !

    !!! new configuration for cisco ipsec client

    !

    no address Cisco key crypto isakmp 0.0.0.0 0.0.0.0

    address of cisco key crypto isakmp 0.0.0.0 0.0.0.0 no.-xauth

    !

    AAA new-model

    !

    AAA authentication login AutClient local

    AAA authorization groupauthor LAN

    !

    !

    username 0 pippo pippo

    !

    crypto ISAKMP policy 10

    BA 3des

    preshared authentication

    Group 2

    !

    ISAKMP crypto client configuration group vpnclient

    key 0-pippo

    DNS 10.10.10.10

    WINS 10.10.10.20

    domain cisco.com

    pool ippoolvpnclient

    Save-password

    ACL 188

    !

    !

    card crypto Crypto-Tunnel client authentication list AutClient

    card crypto Crypto-Tunnel isakmp authorization list groupauthor

    card crypto Crypto-Tunnel client configuration address respond

    card crypto Crypto-ipsec-isakmp dynamic dynmap Tunnel 20

    !

    Crypto ipsec transform-set esp-3des esp-md5-hmac RIGHT

    !

    Crypto-map dynamic dynmap 10

    match address 188

    Set transform-set RIGHT

    !

    !

    !

    !

    IP local pool ippoolvpnclient 10.99.0.1 10.99.0.30

    !

    access-list 188 note #.

    access-list 188 note # split tunneling VPN C2L

    access-list 188 allow ip 10.99.0.0 0.0.0.31 10.0.0.0 0.0.0.255

    !

    can you tell me if the new configuration is OK?

    Thank you all

    NOT the ACL should be the opposite. Sound from the point of view of the router.

    access-list 188 allow ip 10.2.0.0 0.0.0.255 10.5.0.0 0.0.0.31

    Concerning

    Farrukh

  • run immediately without data

    I have a procedure I pass parameter number p_id

    has said

    Array TYPE IS TABLE OF NUMBER
    INDEX OF DIRECTORY;

    L_data table;


    in the start section, I wrote

    dynamic channels: ='
    Select distinct emp_id a.


    EXECUTE IMMEDIATE dynamic_string BULK COLLECT INTO l_data;

    I want to handle exception here if the data are not found then assign
    l_data: = p_id;

    A few changes in the script you posted in last reply:

    declare
         reccnt number
    begin
    
         EXECUTE IMMEDIATE 'select count (*) from ( ' || dynamic_string || ' ) ' into reccnt;
    
         if reccnt <> 0 then
              EXECUTE IMMEDIATE dynamic_string BULK COLLECT INTO l_data;
              ----- your business logic comes here.
         else
              raise no_data_found;
         end if;
    
    exception
         when no_data_found then
         l_data:=p_site_id;
    end;
    
  • How can you fill ListBox with channel group name dynamically?

    I built a GUI in the 'View' pane that acts as a large table of contents. At the top of the GUI, there is a list box I want to dynamically fill with Group channel names loaded in my data portal (internal data). I can't generate the necessary code to do this. Currently, I use a ListBox control. Can I use an EnumListBox instead?

    The purpose of the list box should allow fast loading data which must be analysed in several sheets (also in the part of 'View') for comparison side by side rather than drag and drop data into each individual record.

    Any help would be appreciated,

    Thank you

    ~ Nathan

    Attached is a screenshot of the GUI I hope it helps.

    Hey Nathan--

    Have we met yet?  Don't think that I will remember to see you post on the forums of tiara so far (or remember you I meet someone named Nathan in person recently).  Welcome to the forums of tiara!

    There are a few things that you need to change about your code snippet-

    1. The reason why you get the error "object required: ' [string: 'filename']' is because the Set command expects that the right side of an expression returns an object (you define your variable to)."  In your case, you return a string (the name of a group), not an object.  Simply remove the Set command.

    2. The ListBox.Items.Add () method requires two parameters - the first is the text of the item to insert in the list, and the second is a value to assign to this point (you can do single).

    As a result, to more directly match your code snippet to the labour code, follow these steps:

    Dim listNum, names
    We = 1 to GroupCount
    Name = GroupName (listNum)
    Call selectData.Items.Add (names, we)
    NEXT

    Note that you can also use object programming oriented with the data object that represents the data portal, it is easier for you to avoid remembering variables such as GroupCount and GroupName DIAdem (that's me):

    Dim listNum
    We = 1 to Data.Root.ChannelGroups.Count
    Dial selectData.Items.Add (Data.Root.ChannelGroups (listNum). Name, we)
    NEXT

    Your project is looking great - let us know how we can continue to help and keep us updated!

  • Dynamic data of several channels in table, then save in Excel

    Hello

    I am acquiring data from several channels (4-5) and I'd like to collect samples at low rates (10 Hz for 3 minutes max). For various reasons I use Dynamic Data type, although I know that it is not the best way (some say it is a wrong data type ). I also want to save data to a file (the best option would be data excel file).

    If I acquire data 10 times per second, it is quite slow to save in excel (this is the slowest option of all types of data). So I would like to fill a table or matrix of acquired data and then write Excel file (I use scripture to measure file). But I don't know how to do - if I convert DDT in DBL, build an array and connect it to change registry, it works but I lose the information in column names and I'm wasting time. If I connect to build the table a DDT and then shift record another, it returns the table 1 d of DDT. I would like to have 2D DDT, which collects all the information loop.  Is there a suggestion how to solve?

    I'm sure it would be easier solved my problem with the double data type but I also use select signals VI which is the VI I am not able to replace at this time.

    Good day

    Lefebvre

    I don't know if there is a question here, or what.  Doing what you say you want to make, acquire the data of 4-5 channels at low rates (10 Hz for 3 minutes) and save the data in an Excel file (I assume you mean really Excel, i.e. a file with the extension .xls or .xlsx) is really a very easy thing to do in LabVIEW, especially if you are not using :

    • DAQ Assistant
    • Dynamic Data
    • Write to the action file.

    Indeed, you seem to realize this, but I guess you want to 'do the hard', in any case.

    Good luck.

    Bob Schor

  • How cut the length of the string IE channel name here, if it exceeds 20 characters or letters. The channel name is dynamically analyzed the spreadsheet/xml file.

    How cut the length of the string IE channel name here, if it exceeds 20 characters or letters. The channel name is dynamically analyzed the spreadsheet/xml file.

    My Council of Europe in the .js file is

    function generateHTMLMarkup (i, channel) {}
    Alert ("this is lang" + str);
    var str ="";
    "Str += '.

    ";
    "Str += '.
    "+ ""+""+"
    ";
    Alert ("this is lang" + str);
    return str;

    }

    nerateHTMLMarkup: function (i, channel) {}
    Alert ("this is lang" + str);
    var str ="";
    "Str += '.

    ";
    str += "" +
    "" +
    "" + channel ['name'] + "" +.
    "" + "
    ";
    "Str += '.
    "+ "" + "
    ";
    Alert ("this is lang" + str);
    return str;

    etc.

    Give mthe rhythm and the exact code where Ihave tio get implemented.

    in the code, replace change

    channelName var = channel ['name'];

    TO

    channelName var = channel ['name'];

Maybe you are looking for

  • iCloud backup works do not (ios932)

    backup impossible air2/ios932. always interrupted after the calculation of backing up... » « off icloud backup remove the old backup restarted my ipad enough space on icloud anyone else having problem to backup ipad? tried several times and still the

  • Attempts to send photos by e-mail. Problems with opening under my Earthlink e-mail.

    original title: change of e-mail address I want to send pictures by email. After I click on the image window opens with my old address to earthlink server already in the line. I want to put my new email in there, but I don't know how. Any ideas?

  • deleat documents recent in excel 2007

    How to remove or change of recent documents in excellent 2007

  • HI - A57 overexposed with external Flash HVL-56

    I bought the HVL-56 AM flash when I bought my original Alpha 100 camera and it served me well when I needed an external flash higher power.  When I updated the camera to the A57 - HI, I thought that the HVL-56 would work well since it uses the same s

  • Insert date Wordpad in Windows 7

    When on Windows 7 Wordpad, I insert the date and save the file, I get "?" in front of numbers. How can I get rid of this?