Chain problem

Hi all

I need to run a query prepared in the module of the application. However I can't initialize the string sql with more than 100 characters. I also tried with StringBuffer, but it also goes up to 99 index.
            sqlBuffer.append("SELECT PBD.LINE_ID FROM PO_BC_DISTRIBUTIONS PBD, ");
            sqlBuffer.append("(SELECT SOURCE_DISTRIBUTION_ID_NUM_1, EVENT_ID, ");
            sqlBuffer.append("MAX(STATUS_CODE) STATUS_CODE ");
            sqlBuffer.append("FROM GL_BC_PACKETS WHERE (SOURCE_DISTRIBUTION_ID_NUM_1,PACKET_ID) IN (");
            sqlBuffer.append("SELECT SOURCE_DISTRIBUTION_ID_NUM_1 , MAX(PACKET_ID) FROM GL_BC_PACKETS GBP ");
            sqlBuffer.append("WHERE SOURCE_DISTRIBUTION_TYPE = 'PO_REQ_DISTRIBUTIONS_ALL' GROUP BY SOURCE_DISTRIBUTION_ID_NUM_1) ");
            sqlBuffer.append("GROUP BY SOURCE_DISTRIBUTION_ID_NUM_1 , EVENT_ID ) GBP ");
            sqlBuffer.append("WHERE PBD.APPLIED_TO_DIST_LINK_TYPE = 'PO_REQ_DISTRIBUTIONS_ALL' ");
            sqlBuffer.append("AND GBP.SOURCE_DISTRIBUTION_ID_NUM_1 = PBD.DISTRIBUTION_ID ");
            sqlBuffer.append("AND PBD.AE_EVENT_ID = GBP.EVENT_ID ");
            sqlBuffer.append("AND GBP.STATUS_CODE = 'F' ");
            sqlBuffer.append("AND PBD.REFERENCE2 = " + poReqHeaderId + ";");
This sql is the first MAX. Any idea?

Need urgent help.
Thank you.
Anil

Hi Anil,

I don't think you need to add a semicolon in the chain when you perform a prepared statement. Try to remove that.

Change this line:
sqlBuffer.append ("AND PBD. REFERENCE2 = "+ poReqHeaderId +";");"

TO:
sqlBuffer.append ("AND PBD. REFERENCE2 = "+ poReqHeaderId);

And try using StringBuffer.

I hope this helps.

Kristofer Cruz

Tags: Oracle Applications

Similar Questions

  • Delay between VISA W/W and chain problem

    Hello

    I'm working on the documentation for the other VI. I had a question about the time between VISA W/W. I was wondering why we cannot put all the strings in an entry VISA and what is the purpose of having two writing here and the wait time of 0.1 s is critical?

    I had the problem of the chain where you can find it with three question marks of labelling in the .png file, I want to see what CHANNEL I get here, but when I add

    Here, an indicator of what I've got is a number instead, why?

    BTW, what is the meaning of integer 70, I knew is the number of bytes of data to read, but I got the exactly 70?

    Thank you

    The delay does absolutely nothing. I suspect that the original programmer intended to give time for the instrument to the installation before taking a reading. Demand of the measure and the delay come however in parallel.

    The number of bytes requested is a somewhat random number. You just want something big enough to get all the data in the buffer. It might as well be 1000 or 10000. Playback will be automatically terminated with EOI is affirmed by the instrument.

    The indicator displays a string, but the string is obviously digital before being converted into a DBL.

  • Chain problem: not being able to escape a bracket for a possible regular expression

    So, I have barely any idea of how to use regular expressions except a little knowledge of it in PHP.

    What I'm trying to do is to separate the first part of a string of qualifier, so I need a regular expression since ideally I wish I could. The problem I have is that my attempt of separation does not work. I tried to do what I think the model or class Matcher, I tried to use String.split, and I tried using the regular String.replace method. What I'm trying to do is illustrated (I hope) in the following NBS:
    public class SSCCE
    {
        public static void main(final String args[])
        {
            final String testString = "I want to keep this sentence. (I wish to "+
                "discard this sentence and the space in between the sentences.)";
            final String testExtract = testString.replace(" \(.+\)","");
            System.out.println(testExtract);
        }
    }
    From my understanding, the parentheses are supposed to be a wild card of sorts, so they would need to be escaped in order to be taken as a literal, which means that line 7 is supposed to correspond to any of the characters inside the brackets where the opening is preceded by a space and then delete them. The problem I have is that escaping brackets generates an error and does not escape their product the original string. So I don't know how to tell Java I use actually literal parentheses.

    I tried to configure my preferences of error to ignore everything, but it does not work.

    I don't know if it's important, but I use Java 1.6 and Eclipse for PHP 1.3.2.20110218 - 0812.

    rp0428 wrote:
    Shouldn't be using replaceAll if you use a regular expression?

    http://docs.Oracle.com/javase/6/docs/API/Java/lang/string.html

    and, on the assumption that you actually use a replaceAll(), you need to escape to the '-' characters as they are themselves i.e. Java escape characters

    " \\(.+\\)"
    

    In addition, the use of ".". +"can lead lead to important feedback. In this simple example you probably won't notice it, but in general, you'd better avoid the return back by using the reluctant modifier or by replacing the '.' by a character set that does not include the character terminal.

  • Digital JavaScript & amp; chain problem

    Hello world
    I have a form that takes two fields as numerical values, and with the function javascript the sum of these two values should appear after that any changes. but instead of the SUM she CONCATENATE these two values. How can I tell Javascript function that these are digital, not string?
    Thank you for your help in advance.
    (I know this is a section of CF, but I think that people in the CF use js as well)

    var a = 1;
    var b = 2;

    $ var = parseInt (a) + parseInt (b);

    (there also a parseFloat() If you do not deal exclusively with the ints)

  • string not found in language resource files

    I run my sequence and at the end of the test, I've got the popup next instead of failure message (see StringNotFound.jpg)

    I checked my TestStand 2013\Components\Language\English folder and it seems that I have all the files (EngineString.ini...)

    The PC I use has been installed with an installation program that I made. My Installer installs editor TestStand, Labview DURATION and module and my sequences with their libraries. I had a problem with my sequence, as a path of the module was bad after I installed it. So, in my Installer, I put the option "Include without transformation point or dependencies" only for its sequence. This solved my problem with the path, but perhaps it causes this not found chain problem?

    Does anyone have an idea?

    Concerning

    Laurent

    I stumbled upon this same question and ModelStrings.ini was not packed in my deployment (although all other files in... \English were.)  To resolve this, you can either copy ModelStrings.ini directly to the location on your computer that is deployed or if you use the deployment utility select the... \English folder and its contents by having them in your workspace referenced.

  • Problem with strtok and a chain with '-' home ' end

    I faced a problem with 'strtok' that I programmed a function that has checked a directory (String) on the existence and if it does not exist it would create this directory. This problem only occurred in the case of this "strtok" - broken chain is a '-' end of the string.

    Example: Directory string is "E:\\xyz\\uvw\\abc\\qwertz\\bnm\\".

    The function tests if "E:\\xyz" exists and if not it creates.

    The function tests if "E:\\xyz\\uvw" exists and if not it creates.

    ... and so on...

    The function tests if "E:\\xyz\\uvw\\abc\\qwertz\\bnm" exists and if not it creates.

    After using this function with a 'E:\\xyz\\uvw\\abc\\qwertz\\bnm\\' directory string, I use another function with the 'E:\\xyz\\uvw\\abc\\qwertz\\bnm\\' directory string as parameter (creating a file inside - a text log file!). But now, in this second function (in debug mode!) the directory-string 'E:\\xyz\\uvw\\abc\\qwertz\\bnm\\' is just 'E' - nothing more! The rest is missing!

    BUT if I use the directory string 'E:\\xyz\\uvw\\abc\\qwertz\\bnm' instead, the directory-string 'E:\\xyz\\uvw\\abc\\qwertz\\bnm\\' into the next function is "E:\\xyz\\uvw\\abc\\qwertz\\bnm\\"!

    He is as 'strtok' gives an error in the compiler that influences the following chain of office setting.

    Perhaps it affects the following string in general, but that does not test.

    My solution is:

    I have check the string in the first function on '-' is there end. If there is '------' I cut it away--as long as there is a '-' and the string is greater than 1.

    Thank you for your message "Johannes_T".

    In my case, simply check the chain on '------' has is fine and is it y a '------', I cut it and continue with that of 'cut', as it is a '-' to an end and the string is longer than 1.

    Best regards

    F.

  • IP in chain - timing problem with Windows 10

    Hello

    I was working on a project and noticed something that I wanted to highlight to others and to see if I could get a reasoning as to why this is happening.

    I started this about four months ago and recently updated my computer to Windows 10 up-to-date project. I am under Labview 2014 V14.0f1 (32 bit) and had not seen any problems with labview until I activated an error logging code which reports data to a syslogger.

    We started noticing that the recorder took much longer than usual to deal with errors and in turn slowed down the whole program.

    When we dug in the question, we found the slow down was the INVESTIGATION period to the block of the string that is used to extract the host name. It took about 4.5 seconds to complete. I have run the same code on a windows 7 VM and it run under a 1 ms...

    No idea why IP chain is taken almost 4 500 x times more time in Windows 10 vs Windows 7? We have worked around the issue by making a control that can be set from a file configuration of the value, but I wanted others to know and hopefully get an answer to why this is the case.

    Thank you

    Chris

    LabVIEW 2014 is not technically compatible with Windows 10.

    Compatibility of the versions of Windows with LabVIEW.

    Maybe the search time is affected by something that has changed to win 10.

  • Problems with conversion of number chain

    I try to display a receipt, after that some items have been added.

    The application works well for an article, but when I add more than one, it displays a different value of what should be.

    I also have problems in the display of the element of the second and third.

    Can someone help me solve this vi?

    Thanks in advance!

    I found the error. The mistake was made in the conversion of a string to a number. I just used Fract/Exp chain to the number, and it fixed the problem I had.

  • Analysis of chain to get the Timestamp, LV 2012 problem

    I have a VI I wrote in 2013 LV where it works very well.  But with the same VI in LV 2012SP1, analysis of string to get a Timestamp does not work.  Attached is the VI recorded in LV2012 SP1.

    Background:

    I work with an FPGA where I am synchronizing pulses using the clock of 40 MHz.  I connect these impulses in a file on my host PXI. To correlate the clock on the FPGA with a log file and real life someday, I named the file with a timestamp, and the meter 64-bit encoded hexadecimal string.  Now, I have a pretty good correlation between when the 64-bit against him and the time of day to facilitate the search of the data file.

    Now, I try to analyse the file name, so in my analysis of code I can reassociate the value 64 bits with the time of day using the string functions to separate the file name.  With a few regexes (which I've never used in real life before), I've broken down the chain and got the base time as a timestamp, and the counter value as a 64-bit integer.  The VI works very well in 2013 LV.

    But when I saved it to the LV 2012, analysis of string to get the timestamp fails.  No error, but the timestamp shows 19:00 12/31/1599 (I am GMT - 5).  I have no idea why.  A bug in the parsing of the string that was set in 2013 LV?

    Please run the attached VI in LV 2012.  Confirm if it fails for you.  Then open it in 2013 LV and see if it works for you.

    I am trying to make it work in LV 2012 because this project is locked in this version of LV for now.  I can probably do something to reorganize the time string to get something that will scan a digital time stamp if I have to.

    Hi Bill,

    Sorry to be a bit late on this point, I just came across this thread after the hunt for the CAR for a separate issue. The fix for 300375 CAR is what causes the difference in behavior between versions of LabVIEW. It appears on the list of known issues of LabVIEW 2013, although the description focuses more on the fixed number than other possible differences between the versions.

    The thoughts in this thread died on what happened in the difficulty. LabVIEW 2013 now pick up the string of year 2 or 4-digit number when you use the %y or %Y tags, respectively. Previously, the behavior was more forgiving in the year format, leading to incorrect behavior that you have observed strings of 4 digits in the year the %y tag. The original problem, you pointed out (2012 incorrectly string manipulation of tagged %y (2 digits) 2-digit year is precisely what has been fixed in the CAR.

    Regarding your strange result over the years with the tag %Y-2 digit, this is a limitation of the type of data Time Stamp itself. The year will always be converted to between 1600 and 3000. So no time extreme travel journaling. Yet.

    See you soon,.

  • Microsoft It - fix diagnose and repair Windows and problems would not install on my computer. He said the chain was not in the right format. Clues?

    I installed Microsoft Fix It on my computer (MSXP). The diagnosis and repair of the Windows files and problems would not install on my computer. He said the chain was not in the right format.  Clues?

    Hi Kathryn1713,

    ·         You are not able to run the Microsoft Fixit tool?

    If so, you can post your query on the Forums of Microsoft Fixit. Please see the following link for the same.

    Microsoft Fix Center - NO support general questions Forum

  • Resolution of U2414H DisplayPort Daisy Chain/STD problem

    Hello

    I have what seems to be a common problem with no solution on these pages; with DisplayPort STD.

    I had two of these Dell monitors over the weekend and spent about 3 hours trying to get STD to work with them. I arrived later, and they have worked fine for about 36 hours.

    In this time my computer restarted two times without any problem. However, this morning I had upward, turned and suddenly the second (end of my STD string) string is not recognized as an instructor. It shows my desktop, but only at 640 x 480. AMD Catalyst can see it, but refers to it as 'No Display connected.

    My setup is a Gigabyte Radeon HD 7950 feeding these two Dells (on a single string of DP STD), a Compaq Q2022a on HDMI and a DVI. The first dell also has a USB Bluetooth stick and WiFi USB dongles plugged, and the second dell USB tire this is the capacity of the first. Both worked absolutely fine when I went to bed, and this morning, the second in the chain was not.

    I am looking to buy up to four more of them for a tri-moniteur stacked configuration, but I need them to be more reliable before I can justify spending that much! I love the thin bezel and STD is a must for the configuration I want, but reliability is essential too, I don't want to spend an hour a day fixing everything...

    Thank you

    For anyone interested, my workaround is the following:

    -Unplug the monitor two monitor one

    -Disable STD on monitor 1

    -STD re - activate the monitor 1

    -Reconnect the monitor 2 in 1

    -Hold the power for about 8 seconds on Monitor 2

    Seems to work after having done this, not.
    Of course, a better solution would be for Dell to realize they sold a product of poor quality, do a recall and get fixed them correctly. This is currently my only product of Dell and if this is how their quality control, I certainly won't be getting more.

  • Is there a better method chained and associated problem?

    I used chained for awhile now.  I searched and reviewed the cross fader help on the forum without finding far more than information or a solution.

    My method:

    -Razor point be dissolved

    -Drag the chained until the razor

    -Click on the dissolution to select the required length

    -Razor each end of the length of dissolve

    -Right-click on each section razored with a ripple delete

    -Reapply the cross fader and reselect the length

    I find it works for me, but could be more simple.  I ripple delete sections razored because if I don't, the cross dissolves overlaps previous front sections and after the clips selected in the entirety of the video sequence such that the effect seems not work.  Ripple deleting ensures that the previous sections are in the selected clips.  There must be a quicker way.

    My problem:

    This happens after several successful cross dissolves into a project I ran off qualifying times, it can be used.  When I try to ripple delete sections razored, ripple deleting does not have little matter what I do.

    What I can do better or properly to cross dissolve them and how I take care of deletions ripple premature failure?

    http://help.Adobe.com/en_US/PremierePro/CS/using/WSE2A9B838-1422-4d8a-9A03-CFDF4332533B.ht ml

  • Problem of composite key chain BigDecimal, pair

    JDeveloper 12.1.3

    I have OS based on a table that has the following PK

    Task_Id NUMBER

    Id_ressource Varchar2 (6)

    Using the EO above, I have a VO to view data in the user interface. I get the problem in the bean to support (test code below)

                DCBindingContainer dcbindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
                DCIteratorBinding iterator = dcbindings.findIteratorBinding("TaskCalendarIterator");
                System.out.println(activity.getProvider().getId());
                //Key key = new Key(new Object[] { activity.getId(),activity.getProvider().getId() });
                java.math.BigDecimal key1= new BigDecimal(140080);
                String key2="ds1";
                Key key = new Key(new Object[] { key1,key2 });
                System.out.println(activity.getId());
                System.out.println(key);
                RowSetIterator rsi = iterator.getRowSetIterator();
                Row row = rsi.findByKey(key, 1)[0]; //!!!!!!!!!!!!!!!!!!!!!!!!!!!! Here is where exception is thrown
                rsi.setCurrentRow(row);
    

    Caused by: oracle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: java.math.BigDecimal type: java.lang.String with value: ds1

    Recording with the key 140080, ds1 exists in the iterator.

    I thought that the key can be anything, including channels?

    OK, I got the problem solved. The order of the key attributes must be identical to the order of these attributes in the original Version, NOT in OT

    The order was therefore, in my case in OT, TaskId, ResourceId

    Vo to ResourceId, TaskId

    That's why in the bean to support code, it must be:

    java.math.BigDecimal key1= new BigDecimal(140080);  //This is TaskId
    String key2="ds1";  //This is ResourceId
    Key key = new Key(new Object[] { key2,key1 });
    
  • problem with the chain (from database) to the php variable

    This will probably be an easy question for some of you, but I'm having a problem to assign a string to a php variable. I have several RSS feeds stored in a database. the stored information includes the RSS feed name, link to the actual site, link for just the RSS feeds for the site, etc...

    I'm running a / loop to generate the RSS feed. the result is simply the title of the site and the last 8 articles of the site. everything came out fine, with regard to the actual display and the title of the rss feeds showing upward, but I can't plug the RSS feed link without getting an error. This is the code I'm using (is all the code, but it's the only part that gives me bad):

    <? PHP include('RSS/rss_fetch.inc');

    $rss = fetch_rss ('RSS feed link goes here');
    table shows 8 results
    $items = array_slice ($rss-> points, 0, 8);
    Scroll through each element and echo
    foreach ($items as $item)


    {? >}

    the bold line is the only place where I am running into a problem. I have the correct rss feed link stored in the database. I would reference him in my code

    <? PHP echo $row_resourceFeed_rs ['rssLink'];? >

    However, if I replace the current link (the one in bold above) by the php in the database call, I get an error. can someone tell me please how to extract the link RSS feeds on the line in bold?

    mathruD wrote:

    $rss = fetch_rss ("");

    You cannot nest tags PHP inside a block of PHP code.

    The following should be all you need:

    $rss = fetch_rss($row_resourceFeed_rs['resource_rssLink']);
    
  • Chained combobox 3.5 Flex problem

    Hi people,

    I have 3 comboboxes that are interconnected. When you first select one that it meets the other and then the third. The problem is that, once you make a selection to another manufacturer and then switch back to the original manufacturer, the second and third comboboxes get out of sync. They always show the data of the first amendment that you have done, not the new selection of data. The problem started when I updated to 3.5 SDK. Works very well with the help of 3.4.

    Here is an example of the XML file that I use:

    < equip_manufacturer_id manufacturer = "2" Nom_Constructeur = "John Deere" / >
    < equip_manufacturer_id manufacturer = "15" Nom_Constructeur = "Komatsu" >
    < type_equipement equip_type_id = "11" equip_manufacturer_id = "15" str_name = "Farm tractor" >
    < equipment_model equip_model_id = equip_type_id '919' = "11" model_name = 'model 1' / >
    < equipment_model equip_model_id = equip_type_id '918' = "11" model_name = "model 2" / >
    < equipment_model equip_model_id = equip_type_id '921' = "11" model_name = 'type 3' / >
    < / type_equipement >
    < type_equipement equip_type_id = "12" equip_manufacturer_id = "15" str_name = "Frontend Loader" >
    < equipment_model equip_model_id = equip_type_id '920' = '12' model_name = "model 1.1" / >
    < / type_equipement >
    < / Manufacturer >

    And here is the MXML for the drop-down list boxes. equipTypes is the variable of the XML code from above.

    < mx:FormItem label = "equip MFG:" >
    < mx:ComboBox id = "equip_mfg_id".
    dataProvider = "{equipTypes.elements ('manufacturer')}" "
    labelField="@manufacturer_name" width = "250" / >
    < / mx:FormItem >
    < mx:FormItem label = "equip Type:" >
    < mx:ComboBox id = "equip_type_id".
    dataProvider = "{equip_mfg_id.selectedItem.elements ('equipment_type')}" "
    labelField="@str_name" width = "250" / >
    < / mx:FormItem >
    < mx:FormItem label = "model:" >
    < mx:ComboBox id = "model_id.
    dataProvider = "{equip_type_id.selectedItem.elements ('equipment_model')}" "
    labelField="@model_name" width = "250" / >
    < / mx:FormItem >

    I tried the data refresh on the "changes" for each combobox and no help. Again, this works very well in version 3.4, but I need the advanceddatagrid, so I've updated to 3.5.

    Any ideas would be greatly appreciated,

    Rick

    If you experience the issue in the other thread, it is now set to

    my copies of the SDK (4.0 and 3.6).  You will need to use one of these

    versions.

Maybe you are looking for