Datasource return nothing

Hi experts!
If a datasource return no record how I can check this ?? using if condition
And display an error message

Hi.
Try this. It works for me.
Use a counter to see how many records the datasource have.
example.
<jbo:DataSource id="dsClients" appid="LoginModule" viewobject="RctClientesView1" />
<jbo:SetWhereClauseParam index="0" value="<%=strTip%>" datasource="dsClients" />
<!--use this LINE BELOW if you have the data source after a post operation. VERY IMPORTANT-->
<jbo:RefreshDataSource datasource="dsClients" />
<jbo:RowsetNavigate datasource="dsClients" action="first" />
<% int i;
i=0;
%>
<jbo:RowsetIterate datasource="dsClients" >
     <%i+=1;%>
</jbo:RowsetIterate>
<%
if (i>=1){%>
     <!-- when hare more than one record, put your code here.-->
     <!-- You can change the if statement to what ever you like-->
<%}else{%>
     <!-- when the datasource has no records, put your code here.-->
<%}%>

Similar Messages

  • SQL LIKE Operator return nothing

    I am working on an intranet application and use Access as the
    database.
    There is a query that I have
    <CFQUERY DATASOURCE="#DSN#" NAME="GET_SEARCH_RESULT">
    SELECT * FROM WL_TREES
    WHERE TREENAME LIKE '3*'
    </CFQUERY>
    It returns nothing in ColdFusion, if I copy just the SQL and
    run it in Access, it returns with the expected result.
    Any idea why ColdFusion query didn't work?
    Thanks,
    tofuTnT

    replace the * with a % and you should be good to go.
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • User Profile -Purchasing -returns nothing

    I created a User Profile in Oracle Applications under -Application Developer
    Application :Purchasing
    User Profile Name: PO: SBM CHANGE
    Hierarchy type: Security
    SQL validation:
    SQL="select decode(meaning,
                   'Yes','Full',
                   'No','None') \"Access Level\",
              lookup_code
         into :visible_option_value, :profile_option_value
         from fnd_lookups
         where lookup_type = 'YES_NO'
    Now I am trying to run this query which returns Nothing. Is that because i have application level *Purchasing*
    {code}
    select apps.fnd_profile.value('PO: SBM CHANGE') from dual;
    {code}
    Thanks

    Hi,
    First you need to give values for that profile option (resp. System Administrator > Profile > System).
    Also, when using fnd_profile.value, you need to specify the internal profile option name, and not the user profile option name (maybe they are identical in your case?).
    And also, typically you need to specify your context before calling fnd_profile. You can use fnd_global.apps_initialize for that.
    Hope it helps.

  • Web Services deployment error "Server returned nothing (no headers, no data)" and more

    I'm developing a large-scale VI with an associated web service VI in 2010 SP1. The "auxiliary VI" is responsible for data capture and analysis as well as communications and data storage. It is fairly large and communicates with the web method VI via network-shared variables [and I'm using the DSC module to allow event handling on the shared variables].
    I can build and deploy the web method VI just fine and it runs great. However, I need to communicate between the auxiliary and web method VI's, and it looks like I can't do that without including the auxiliary vi in the RESTful web service build [by the way, is there any way to do this with web service builds?]. When I added the auxiliary vi to the build, it built fine, but then during the deployment I got:
    "Server returned nothing (no headers, no data)"
    The next time I tried to deploy, I got a spurious NI Auth dialog per this KnowledgeBase article. Following the instructions for case 1 ["Application Web Server failure since last start"], I ran Services.msc and found that NI Application Web Service was indeed not running. I tried to restart the service but got this error:
    "The NI Application Web Server service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service."
    The KnowledgeBase article suggests restarting at this point and I did, but I still see the same behavior. So I really have a few questions:
    1. Is there any way to deploy a network-shared variable library across a deployed web service and local VI?
    2. What causes "Server returned nothing (no headers, no data)" upon deployment? A google search returned very little.
    3. What does this mean: "The NI Application Web Server service on Local Computer
    started and then stopped..." and what do I need to do to get my Application Web Server back up?
    [to heap on the pile... I tried to re-enable the Application Web Server from localhost:3580 and got an error. Then localhost:3580 went off-line also.]
    thanks!
    Solved!
    Go to Solution.

    Update.
    I noticed that the Application Web Server was trying to deploy the broken web service and was choking on it. There seemed to be no way to erase the .lvws originally created by the build. I could delete the deployment folder at $(WebServicesRoot)\UserServices\deployed\<Service Name>-<Globally Unique Identifier (GUID)> but it was recreated from the .lvws every time I attempted to restart the service.
    So I called NI and they pointed me to this directory [in XP]:
    C:\Documents and Settings\LocalService\My Documents\LabVIEW Data\WebServices\Standalone
    The .lvws was in this folder. I deleted it and now I can run the ApplicationWebService. Apparently this undocumented hidden file is a "not-quite-bug" that is recognized as needing a fix in upcoming releases.

  • Running 'netstatt' On An Interface Alias Returns Nothing.

    Hi all,
    can some one please shed some light on this behavior. We defined some network interface aliases on a SunOS machine. Running a 'netstat' on the alias returns nothing, while running it on the actuall device name returns the expected stats.
    Is this behavior by design?
    How can you get stats running this cmd on an alias interface name?
    Thank you

    It did not solve the issue. But I found it.
    I sketch what I've done .. maybe others can use that info too.
    Reason: For traditional reasons, we use Apache Configs for Aliases ... no mapping within CF itself because up to CF9 those mappings are global. Howerver, for UNC mappings, this seems to be the bad way.
    Up to today, I had no idea how Apache and CF talk to each other on paths. Obvioulsy, CF ask Apache for a path resolution, but Apache as a System Service, was not able to verify the accessibility of the UNC path. Therefore, it or CF figured that they use the webroot of this vhost.
    When I ran Apache as Administrator, it could access the UNC and therefore Apache and/or CF returned the correctly expanded path. Of course, we don't run Apache with more rights than the System Service. Resetting Apache to that also returned the wrong UNC expansion.
    So, we now go with Mappings in CF itself. Since CF 10 allows for Per App Mappings, this is no longer a problem.
    Martin

  • Hsodbc returns nothing :::Plz Help me :)

    Hi to all,
    I try to connect Oracle DB to Mysql database. I did these steps :
    1- Testing MySQL ODBC Driver using isql => Works fine
    2- Configuring the HSODBC process , my listner.ora file contains these entries :
    # listener.ora Network Configuration File: /u01/app/oracle/oracle/product/10.2.0/devxen03/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/oracle/product/10.2.0/devxen03)
    (PROGRAM = extproc)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ORACLE_HOME = /u01/app/oracle/oracle/product/10.2.0/devxen03)
    (SID_NAME =my_client)
    (ENVS = "LD_LIBRARY_PATH=/u01/app/oracle/oracle/product/10.2.0/devxen03/lib32:/usr/lib:/u01/app/oracle/oracle/product/10.2.0/devxen03/hs/lib32")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = devxen03.es.el.lan)(PORT = 1521))
    when I tried; hsodbc in command line : nothing comes back from this command
    Any idea please? I(m working on Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on linux redhat server.
    Thanks a lot,
    Edited by: OracleJavaLinux on Dec 1, 2009 3:20 PM

    Thanks ora-dba;
    it means returns nothing without errors;
    But strange I got erros when I execute the command below, any idea? :
    *[root@devxen03 ~]# strace /u01/app/oracle/oracle/product/10.2.0/devxen03/bin/hsodbc*
    *execve("/u01/app/oracle/oracle/product/10.2.0/devxen03/bin/hsodbc", ["/u01/app/oracle/oracle/product/1"...], [* 26 vars */]) = -1 ENOEXEC (Exec format error)*
    dup(2)                                  = 3
    fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
    *fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0*
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
    lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
    write(3, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
    *) = 32*
    close(3)                                = 0
    munmap(0x2a95557000, 4096)              = 0
    exit_group(1)                           = ?
    *[root@devxen03 ~]# echo $?*
    *0*

  • Putting variable in regexp_substr pattern returns nothing

    I'm trying to create a function to simply extract positioned text from a string, ie I want the text in position two from string X with a pattern of ' - '. I want to create a function so it is simpler for the developers but regexp_substr doesn't seem to like it.
    So I want a function like below to be executed, select text_extractor('ABC - DEF - HIJ',' - ',2) from dual; which would return DEF;
    But regexp_substr doesn't like matching on ' - '. If I tell it to give me position 2, I get '-', and if I tell it position 3, I get DEF. It seems to work fine if the '-' is substritued with a ':'
    ie
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,2) from dual;
    results
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,3) from dual;
    results
    DEF
    select regexp_substr('ABC : DEF : HIJ','[^ : ]+',1,2) from dual;
    results
    DEF
    I would further like to make a function to wrap it in but it didn't work at all.
    The following examples return nothing.
    create or replace function text_extractor (p_text varchar2, p_delimiter varchar2, p_position number)
    return varchar2
    is
    begin
    return (regexp_substr(p_text,'^p_delimiter]+', 1,p_position));
    end;
    I've also tried
    create or replace function text_extractor (p_text varchar2, p_delimiter varchar2, p_position number)
    return varchar2
    is
    v_search_expression varchar2(2000);
    begin
    v_search_expression := '''[^'||p_delimiter||']+''';
    return (regexp_substr(p_text,v_search_expression),1,p_position);
    end;
    But I get nothing. Any ideas?

    When you do this:
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,2) from dual;
    results
    -Your search string is a set of characters, so you are saying anything that is NOT a space or dash (or space again, but that's redundant). So the first match is ABC, the second match is "-" as that's the second non-space match, so that's why you get that. Probably what you want is to ignore the spaces and use the "-" as your delimiter, then just trim the spaces off after...
    SQL> ed
    Wrote file afiedt.buf
      1* select trim(regexp_substr('ABC - DEF - HIJ','[^-]+',1,2)) from dual
    SQL> /
    TRI
    DEF
    SQL>

  • CRM search, request return nothing

    Hi,
    When I try to make research in our b2b applications (CRM 5, TREX 7 update26) if I use the character "*" it return all items, but any other character, (join, union) returns nothing for any requests.
    I have the following error : "An exception has occurred: Invalid attribute "TEXT_0001" in the filter printout  Invalid attribute "TEXT_0001" in the filter printout.
    com.sap.isa.catalog.impl.CatalogBuildFailedException: Invalid"
    (SRM0, RFC connections works fine, catalog is well replicated)
    The Quick Search Attributes from the WEB-INF/cfg/catalog-site-config.xml was not be modified.
    Any Help will be reward.
    Regards,
    Thomas

    This reply is way too late, but might help someone.
    There are two options in your case:
    1. Attribute "TEXT_0001" is not replicated in TREX catalog
    2. "TEXT_0001" is in P-Index, and you are doing search over the S-index (or vice-verse).
    There are 2 types of Queries in ISA.
    Catalog search which is done over the P-indexes (when you create your Quesry throug the ICatalog object).
    Category specific search which is done over the S-indexes (when you get your Query from a ICategory).
    Best regards,
    Marian

  • How to print - when query returns nothing

    Hi All
    I have query...
    select sum((sum(nvl(ac.amtsourcedr,0))-sum(nvl(ac.amtsourcecr,0)))) as balance
    from fact_acct ac
    where ad_client_id=1000000
    and dateacct < '1/04/2010'
    and ac.account_id=1000432
    group by  ac.account_id
    I want to print zero when query returns nothing
    how to do that ..???
    thanking you in advance
    Regards
    gaurav

    use NVL
    select nvl(sum((sum(nvl(ac.amtsourcedr,0))-sum(nvl(ac.amtsourcecr,0)))),0) as balance
    from fact_acct ac
    where ad_client_id=1000000
    and dateacct < '
    and ac.account_id=1000432
    group by ac.account_idAnd yes you need to remove the Group By as stated by Toon, forgot to mention it
    Edited by: Karthick_Arp on May 27, 2010 4:04 AM

  • Finder searches return nothing

    when i search for a file under spotlight, results appear, but when I click "show all in finder", nothing appears in the finder. similarly, searches in the finder directly return nothing. thoughts?

    Certain things are not included in "All my Files", I think some of these things include apps, internet history, etc. I would suggest you just use spotlight, it includes more.

  • ProductTextSearch return nothing

    ProductTextSearch doesn't return anything, below are the configuration i did
    <dsp:importbean bean="/atg/commerce/catalog/ProductTextSearch"/>
    <dsp:input id="search-q" bean="ProductTextSearch.searchInput" type="text" placeholder="I'm looking for..." class="se-input"/>
    <dsp:input bean="ProductTextSearch.search" type="hidden" value="Search"/>
    <dsp:input type="submit" bean="ProductTextSearch.search" class="btn btn-sml btn-alt" name="search-q" value="Go"/>
    i executed the generated query on the database and it returns nothing
    SELECT DISTINCT t1.product_id,t1.product_type
       FROM dcs_product t1, dcs_prd_catalogs t2, dcs_product_sites t3
      WHERE t2.product_id=t1.product_id
        AND t3.product_id=t1.product_id
        AND (((CONTAINS(t1.description,'desire',0) > 1
        OR CONTAINS(t1.display_name,'desire',1) > 1)
        AND t2.catalog_id = 'catalog10003')
        AND t3.site_id = 'mySiteId')

    Hi Amr,
    Have you configure the catalog to properly handle full text searching as mentioned in below link-
    http://docs.oracle.com/cd/E24152_01/Platform.10-1/ATGCommProgGuide/html/s0204configuringacatalogfororaclefull01.html
    For debugging enable the loggingDebug of that component and see if there is any error in log.
    Try with above configuration and let us know if problem is solved or not.
    Regards,
    Prateek Gupta

  • View return nothing

    dear gurus i am facing one probelem.
    VIEW 1:
    create or replace view v_emp as SELECT
    a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
    select empno from emp where
    hiredate='17-DEC-80'
    ) a1,
    select empno from emp where
    hiredate='20-FEB-81'
    ) a2;
    select * from v_emp;
    E1     7369
    E2     7499
    VIEW 2:
    create or replace view v_emp as SELECT
    a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
    select empno from emp where
    hiredate='17-DEC-80'
    ) a1,
    select empno from emp where
    hiredate='27-FEB-81'
    ) a2;
    select * from v_emp;
    return nothing because of date not in table.
    i want data from VIEW 2 like
    E1     7369
    E2     
    i want view return nothing or zera for only unavailable date and
    return value for date available in table.

    901915 wrote:
    dear gurus i am facing one probelem.
    VIEW 1:
    create or replace view v_emp as SELECT
    a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
    select empno from emp where
    hiredate='17-DEC-80'
    ) a1,
    select empno from emp where
    hiredate='20-FEB-81'
    ) a2;
    select * from v_emp;
    E1     7369
    E2     7499
    VIEW 2:
    create or replace view v_emp as SELECT
    a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
    select empno from emp where
    hiredate='17-DEC-80'
    ) a1,
    select empno from emp where
    hiredate='27-FEB-81'
    ) a2;
    select * from v_emp;
    return nothing because of date not in table.
    i want data from VIEW 2 like
    E1     7369
    E2     
    i want view return nothing or zera for only unavailable date and
    return value for date available in table.your view is a cartesian join between those two select statements. you need to have an outer join or a union all in there somewhere.

  • LOV return nothing

    Hi
    I have very strange problem: every lov in only one page return nothing!!! I have already regenerate this page .. all pages, create lov manually, copy same lov from another branch, BUT problem still exist! When i change lov to choice - it works.
    All this experiments I did on a test application because regeneration of my native project is impossible (I can regenerate just current page)!
    Can anybody help me?? (It would be suitable for me to do all changes manually!)

    Please ignore my last post - its not a lov problem .. I started a new thread for this problem!

  • Man -k always returns "nothing appropriate"

    I'm running 10.5.3 on a Macbook Pro. It is a new MacBook that originally had 10.5.2, and I upgraded from that.
    In Terminal, "man xxxx" works fine, but "man -k xxxx" always returns "nothing appropriate."
    This problem also existed when it was running 10.5.2.
    Anybody know how I can fix this?

    Welcome to Apple Discussions!!
    stugotsxxxx wrote:
    In Terminal, "man xxxx" works fine, but "man -k xxxx" always returns "nothing appropriate."
    This problem also existed when it was running 10.5.2.
    Always?
    What about choosing something that obviously should return something, like man -k error ? And try apropos error and whatis error. The first two should return the same, while the last will return a smaller selection (it only matches whole words). So you should get something like:
    macbook:~ michaelc$ apropos error | wc
    87 1037 9843
    macbook:~ michaelc$ man -k error | wc
    87 1037 9843
    macbook:~ michaelc$ whatis error |wc
    63 655 5738
    If you are getting zero output from all these, try
    sudo periodic weeklySupply your password when prompted (it is not echoed) and give it a few minutes to run. Then try those three commands again. Post back to let us know what you see.

  • Search in calendar returns nothing

    Spotlight in Finder is working fine, but ...
    · Search in Calendar is not working: Nothing returned.
    · Search in Mail is not working: Nothing returned.
    This might be the same error - what to do ?
    / FL

    System Preferences->Spotlight->Privacy tab->Drag the boot volume icon into the window and then select it and hit the minus button. That should force reindexing.

Maybe you are looking for

  • Not able to see the objects in DSO Display but available in object list

    Hi All, I am facing a weird  issue in DSO. When I am right clicking DSO and selecting the Object list I am able to see all the (30) objects,  But when I am right clicking the same DSO and selecting Display I am able to see only some objects (20) obje

  • 6500 slide code problem

    the key safety code is not 12345 .I have tried everything !what do I do?

  • Does OVM 3 support network I/O management and storage I/O prioritization

    Does OVM 3 support any QoS setting for networking and/or storage? If so how are they set? I have been looking and can't seem to locate these settings. In OVM 2.2 network I/O traffic management and storage I/O prioritization could be set as described

  • I cant connect to any VPN connection

    i cant connect to any VPN connection . How i can fix this problem .

  • Wanted Po to payments??

    Hi, I need to form a query from purchase order to payments can this be done with mandatory columns.I have written the query but may be i missed some tables or the joins dint match in some cases. So anyone please build me purchase order-->receipts-->i