Unexpected result from treenode.getPath() ???

Hi,
I am using Jtree in application.
The tree is as following
- Desktop
      -C:\
          - Folder1
          - File2
     - D:\I want to expend the node Folder1 as selected node. To do that I got the FileNode Folder1 and do
TreePath path=new TreeaPath( folder1node.getPath() );
int row=tree.getRowForPath(path);
jtreetable.expend(row);
But the problem is with the path returned. I must get the path [Desktop, C:\, Folder1] but I am getting path [Folder1].
What I am doing wrong. Is there any other way to expend a particular node programatically ?
Thanks

Andy,
You should contact support with regards to this issue. It is a known
problem, you can reference CR042529.
Cheers!
Adam
"Andy Kimbrough" <[email protected]> wrote in message
news:3ae8b1f7$[email protected]..
randomly I get the following error in my weblogic.log. The server stopsresponding and I get about a million of these entries, what is going on? I
am running on Linux 6.2....<Error> <Posix Performance Pack>
<mdw2.neomorphic.com> <myserver> <ExecuteThread: '49' for queue: 'default'>
<><><00000><Uncaught Throwable in processSockets>java.io.IOException:
unexpected result from poll: -1at weblogic.socket.PosixSocketMuxer.pool
(Native Method)at weblogic.socket.PosixSocketMuser.processSocktesat
weblogic.socket.SocketReaderRequest.executeat
weblogic.kernel.ExecuteThread.executeat weblogic.kernel.ExceuteThread.run

Similar Messages

  • Unexpected result from XMLELEMENT() - nothing but XMLTYPE()

    In testing XML DB thru SQL*PLUS under an Oracle 9.2 environment, I issued following query:
    <QueryStatement>
    SELECT XMLELEMENT("Name", p.name) as "Result" FROM PROD_PERIODS p
    </QueryStatement>
    But it returned nothing but following message that contain only "XMLTYPE()":
    <ReturnedMessage>
    Result()
    XMLTYPE()
    XMLTYPE()
    </ReturnedMessage>
    The table PROD_PERIODS does contain data for the test, which has been proved by removing the XMLELEMENT() function call.
    Is there any setting should have been done before hand?
    Any hints will be highly appreciated!
    Thanks!
    Spenser

    Hi Mark,
    Thanks for the hint and yes you're right the SQL*PLUS I was using, v8.1.7, is not XML aware.
    Regards,
    Spenser

  • Unexpected result from pstack

    Hi All, not sure if this is the right forum......
    I'm maintaining a large(ish) system written in C++ running on Solaris 10. One process occasionaly hangs. We suspect it's waiting on a mutex.
    So - I'd like to use pstack in the shell script that restarts this particular process when the system's monitor decides this process is hung or dead. I'm hoping to find evidence of a call to Mutex_lock(...).
    I have built a simple model. It just kicks off a thread, which immediately hangs ...
    #include <iostream>
    #include <thread.h>
    #include <unistd.h>
    using namespace std;
    mutex_t v_mutex;
    extern "C" void* workerthread(void* v)
       cout << "Worker thread applying for mutex.\n";
       mutex_lock(&v_mutex);
       cout << "Worker thread got mutex.\n";
       mutex_unlock(&v_mutex);
       return 0;
    int main(void)
       thr_create(NULL,
                  0,
                  workerthread,
                  0   ,
                  THR_DETACHED,
                  0);
       mutex_lock(&v_mutex);
       pause();
    }This makes the model process hang on the worker thread's request for the lock. However, in pstack, I don't see the call. (In several articles on the web, the suggestion is that I should be seeing it) This is what I get from pstack...
    10337:     ./a.out
    -----------------  lwp# 1 / thread# 1  --------------------
    ff041104 pause    ()
    00011028 main     (1, ffbff3b4, ffbff3bc, 21400, ff3a0700, ff3a0740) + 38
    00010b38 _start   (0, 0, 0, 0, 0, 0) + 108
    -----------------  lwp# 2 / thread# 2  --------------------
    ff040408 lwp_park (0, 0, 0)                                           <--- I'd expect to see the mutex_lock() here ?
    00010f94 workerthread (0, feefc000, 0, 0, 10f68, 1) + 2c
    ff040368 _lwp_start (0, 0, 0, 0, 0, 0)Just as a sanity check, a session with dbx shows what I was expecting, but this is no good for working from a script...
    Attached to process 10337 with 2 LWPs
    t@1 (l@1) stopped in _pause at 0xff041104
    0xff041104: _pause+0x0004:      ta       %icc,0x00000008
    Current function is main
       34      pause();
    (dbx) thread t@2
    Current function is workerthread
       16      mutex_lock(&v_mutex);                           <--- There it is !
    t@2 (l@2) stopped in __lwp_park at 0xff040408
    0xff040408: __lwp_park+0x0010:  ta       %icc,0x00000008
    (dbx) exitSo does anyone see why I'm not getting the expected result from pstack?
    Thanks very much
    Jeff Adams

    BTW, albeit I don't know your situation in full, I don't think using dbx in a script is impractical. It has -c "command" option and it can read commands from a stream:
    $ dbx - 1234 -c "where -l"
    $ dbx - 1234 < commands.txtFirst command should print stack trace of process with pid=1234 and the second will execute every command from file commands.txt on the same process.

  • Unexpected results from IF statement

    Can you please tell me why I am not dropping inside this IF statement as I would expect?
    Snippet from PL/SQL script...
    dbms_output.put_line('------------- TEMP DEBUG : About to enter for loop for existing licencees');
    -- DELETE EXISTING LICENSEES THAT SHOULDN'T BE THERE
    for r_existing_licensees in c_existing_licensees(r_licences.licenceid) loop
    dbms_output.put_line('------------- TEMP DEBUG : Inside for loop for existing licencees where r_existing_licensees.customerid = [' || r_existing_licensees.customerid || ']');
    dbms_output.put_line('------------- TEMP DEBUG : ................................r_licences.newcust1 = [' || r_licences.newcust1 || ']');
    dbms_output.put_line('------------- TEMP DEBUG : ................................r_licences.newcust2 = [' || r_licences.newcust2 || ']');
    dbms_output.put_line('------------- TEMP DEBUG : ................................r_licences.newcust3 = [' || r_licences.newcust3 || ']');
    dbms_output.put_line('------------- TEMP DEBUG : ................................r_licences.newcust4 = [' || r_licences.newcust4 || ']');
    dbms_output.put_line('------------- TEMP DEBUG : ................................r_licences.newcust5 = [' || r_licences.newcust5 || ']');
    if r_existing_licensees.customerid <> r_licences.newcust1
    and r_existing_licensees.customerid <> r_licences.newcust2
    and r_existing_licensees.customerid <> r_licences.newcust3
    and r_existing_licensees.customerid <> r_licences.newcust4
    and r_existing_licensees.customerid <> r_licences.newcust5
    then
    dbms_output.put_line('------------- TEMP DEBUG :');
    dbms_output.put_line('------------- TEMP DEBUG : .................................About to logically delete where r_existing_licensees.customerid = [' || r_existing_licensees.customerid || ']');
    Log from DBMS_OUTPUT...
    ------------- TEMP DEBUG : About to enter for loop for existing licencees
    ------------- TEMP DEBUG : Inside for loop for existing licencees where
    r_existing_licensees.customerid = [2805371]
    ------------- TEMP DEBUG : ................................r_licences.newcust1
    = [2806250]
    ------------- TEMP DEBUG : ................................r_licences.newcust2
    = []
    ------------- TEMP DEBUG : ................................r_licences.newcust3
    = []
    ------------- TEMP DEBUG : ................................r_licences.newcust4
    = []
    ------------- TEMP DEBUG : ................................r_licences.newcust5
    = []
    The bold, italic DBMS_OUTPUT lines never appear in the log, so I am NOT falling insided the IF statement even though the criteria are being met. What's the deal?
    Thx in advance.
    Guy

    if r_existing_licensees.customerid <> r_licences.newcust1 and
       r_existing_licensees.customerid <> r_licences.newcust2 and
       r_existing_licensees.customerid <> r_licences.newcust3 and
       r_existing_licensees.customerid <> r_licences.newcust4 and
       r_existing_licensees.customerid <> r_licences.newcust5
    thenit could be that some of your columns are nulls. try something like:
    if nvl(r_existing_licensees.customerid,0) <> nvl(r_licences.newcust1,0) and
       nvl(r_existing_licensees.customerid,0) <> nvl(r_licences.newcust2,0) and
       nvl(r_existing_licensees.customerid,0) <> nvl(r_licences.newcust3,0) and
       nvl(r_existing_licensees.customerid,0) <> nvl(r_licences.newcust4,0) and
       nvl(r_existing_licensees.customerid,0) <> nvl(r_licences.newcust5,0)
    then
    note: assuming that they are number of datatypes.

  • Method from Random class yields unexpected results

    Hi,
    I understand that the following code should generate a random integer within the range of 0 - 3, but the range is actually 0 - 4. Can someone tell me why it doesn't behave as expected? Could it be the version of Java I'm using?
    Random rand = new Random(47);
    int a = rand.nextInt(4);Thanks!

    gluedtothecomputer wrote:
    You're right! It seemed to be producing unexpected results because I had incorporated a switch statement without breaks (part of my assignment). So, .nextInt() works as expected.
    Thanks!Since you didn't post that code or even allude to it, it would have been hard for use to guess that's what you did, right?
    That's why the best way to ask for help is for you to write and post a SSCCE .
    Keep that in mind for your next post.

  • Network Model  - Arcs create unexpected results

    Hello Spatial Users,
    I have created a road network using the "Automatic" Network Definition, loaded all the nodes and links, and everything seems to be OK. It all validates, links and nodes have the correct values. It is an undirected network.
    I can create shortest paths, but the issue I'm having is arcs within the links are returning unexpected results. It is as though the start of the arc is used and then it follows the arc and jumps back to the end of the line - so the shortest path is not the shortest with all this jumping from start to finish of the arcs within the line string.
    Do I need to convert the arcs to lines or am I missing something else? I was hoping that because it was 'undirected' this would resolve this issue.
    We are using 11.1.0.6.0.
    Thanks for your help,
    Kerryne

    Hi, Kerryne,
    NDM doesn't support arcs in its spatial path representation. For arcs it will only use start and end pt of the arc. You need to approximate arcs as linear segments for link geometry to get a more accurate path geometry.
    Regards,
    Jack

  • I have installed apps Hungry Shark vobec but it does not show me the settings I like it or not even in the game center I have not updated results from it you can not help me thank you

    I have installed apps Hungry Shark vobec but it does not show me the settings I like it or not even in the game center I have not updated results from it you can not help me thank you

    Hi Marcel1no,
    Welcome to the Apple Support Communities! 
    I understand that it can be frustrating when an application downloaded from the App Store is not behaving as you would expect. In this situation, I would recommend using the attached article for information on troubleshooting apps downloaded from the App Store. 
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
    Cheers,
    Joe 

  • Unexpected Result with Application Process

    Hi Everyone,
    I have an application process which is producing unexpected results. The code is below. What does is, updates one table, then based on that update inserts some data into a different table. The process workes fine. However, when the table gets updated it updates by 2 when it should only update by 1. Does anyone see where i am going wrong?
    Its really anoying lol
    Thanks in Advance
    -N.S.N.O.
    Code*
    BEGIN
    update pzrckt01 set CLK_NEXT_NR = CLK_NEXT_NR+1 where CLK_PARTITION_ID='QWC';
    htp.p('Start debugging');
    htp.p('QWC_KEY_ID : ' ||wwv_flow.g_x02);
    htp.p('SYS_ID : ' ||wwv_flow.g_x03);
    htp.p('QWC_DELETE_CD: ' ||wwv_flow.g_x04);
    htp.p('QWC_CUS_ID : ' ||wwv_flow.g_x05);
    htp.p('COU_ID_QWC : ' ||wwv_flow.g_x06);
    insert into PZRCUT01 (QWC_MYTNT_ID,QWC_KEY_ID,SYS_ID,QWC_DELETE_CD,QWC_ADD_TD,QWC_ADD_USER_ID,QWC_UPDT_TD,QWC_UPDT_USER_ID,QWC_SOFTLOCK_TS,QWC_CUS_ID,COU_ID_QWC) values ((select clk_next_nr from pzrckt01 where CLK_PARTITION_ID ='QWC'),wwv_flow.g_x02,wwv_flow.g_x03,wwv_flow.g_x04,(select sysdate from dual),(select :APP_USER from dual),(select sysdate from dual),(select :APP_USER from dual),(select systimestamp from dual),wwv_flow.g_x05,wwv_flow.g_x06);
    EXCEPTION WHEN OTHERS THEN
    htp.p('Exception');
    htp.p(SQLERRM);
    END;

    Hey,
    There are no triggers on these tables im working with. A way to get around waht im tryin to do is have 2 application processes, one for the update and one for the insert. but to do this i would need them to be fired off using the same button.
    for example in my HTML Header having a function within a function.
    function pzrcut01Insert(){
    function pzrckt01Update(){
    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=update_pzrckt01',null);
    var ajaxRequest1 = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=PZRCUT01_INSERT',null);
    ajaxRequest1.addParam('x02', $v('P6_QWC_KEY_ID'));
    ajaxRequest1.addParam('x03', $v('P6_SYS_ID'));
    ajaxRequest1.addParam('x04', $v('P6_QWC_DELETE_CD'));
    ajaxRequest1.addParam('x05', $v('P6_QWC_CUS_ID'));
    ajaxRequest1.addParam('x06', $v('P6_COU_ID_QWC'));
    var Answer = confirm('Are you sure you want to update?');
    if (Answer) {
    gReturn=ajaxRequest1.get();
    if (gReturn) {
    alert(gReturn);
    ajaxRequest1.get();
    alert('Attempted Insert Processed');
    }else{
    alert('Attempted Insert Cancelled');
    would this be possible?
    -N.S.N.O.

  • How to get TreePath from TreeNode?

    I want to get treepath object of the jtree from one treenode of the jtree.
    But i do not find this method from api.
    If likes following :
    treeNode is the jTree's TreeNode object.
    then
    TreePath path=new TreePath(treeNode);
    Whether the "path" is the object of the jTree?(I think the "path" is not the object of the jTree's one treepath because the "new" .That will be a new object.)
    if not ,is there another method tosolve it?
    Thank's for help?

    just get the code from the DefaultMutableTreeNode object
          * Returns the path from the root, to get to this node.  The last
          * element in the path is this node.
          * @return an array of TreeNode objects giving the path, where the
          *         first element in the path is the root and the last
          *         element is this node.
        public TreeNode[] getPath() {
         return getPathToRoot(this, 0);
         * Builds the parents of node up to and including the root node,
         * where the original node is the last element in the returned array.
         * The length of the returned array gives the node's depth in the
         * tree.
         * @param aNode  the TreeNode to get the path for
         * @param depth  an int giving the number of steps already taken towards
         *        the root (on recursive calls), used to size the returned array
         * @return an array of TreeNodes giving the path from the root to the
         *         specified node
        protected TreeNode[] getPathToRoot(TreeNode aNode, int depth) {
         TreeNode[]              retNodes;
         /* Check for null, in case someone passed in a null node, or
            they passed in an element that isn't rooted at root. */
         if(aNode == null) {
             if(depth == 0)
              return null;
             else
              retNodes = new TreeNode[depth];
         else {
             depth++;
             retNodes = getPathToRoot(aNode.getParent(), depth);
             retNodes[retNodes.length - depth] = aNode;
         return retNodes;
        }

  • ADFS SSO and SharePoint 2013 on-premise Hybrid outbound search results from SharePoint Online - does it work?

    Hi, 
    I want to setup an outpund hybrid search for SharePoint 2013 on-premise to SharePoint Online.
    But I'm not shure if this works with ADFS SSO.
    Has somebody experience with this setup?
    Here's my guide which I'm going to use for this installation:
    Introduction
    In this post I'll show you how to get search results from your SharePoint Online in your SharePoint 2013 on-premise search center.
    Requirements
    User synchronisation ActiveDirectory to Office 365 with DirSync
    DirSync password sync or ADFS SSO
    SharePoint Online
    SharePoint 2013 on-premise
    Enterprise Search service
    SharePoint Online Management Shell
    Instructions
    All configuration will be done either in the Search Administration of the Central Administration or in the PowerShell console of your on-premise SharePoint 2013 server.
    Set up Sever to Server Trust
    Export certificates
    To create a server to server trust we need two certificates.
    [certificate name].pfx: In order to replace the STS certificate, the certificate is needed in Personal Information Exchange (PFX) format including the private key.
    [certificate name].cer: In order to set up a trust with Office 365 and Windows Azure ACS, the certificate is needed in CER Base64 format.
    First launch the Internet Information Services (IIS) Manager
    Select your SharePoint web server and double-click Server Certificates
    In the Actions pane, click Create Self-Signed Certificate
    Enter a name for the certificate and save it with OK
    To export the new certificate in the Pfx format select it and click Export in the Actions pane
    Fill the fields and click OK Export to: C:\[certificate
    name].pfx Password: [password]
    Also we need to export the certificate in the CER Base64 format. For that purpose make a right-click on the certificate select it and click on View...
    Click the Details tab and then click Copy to File
    On the Welcome to the Certificate Export Wizard page, click Next
    On the Export Private Key page, click Next
    On the Export File Format page, click Base-64 encoded X.509 (.CER), and then click Next.
    As file name enter C:\[certificate
    name].cer and then click Next
    Finish the export
    Import the new STS (SharePoint Token Service) certificate
    Let's update the certificate on the STS. Configure and run the PowerShell script below on your SharePoint server.
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # import it
    Set-SPSecurityTokenServiceConfig -ImportSigningCertificate $PfxCert
    Type Yes when prompted with the following message.
    You are about to change the signing certificate for the Security Token Service. Changing the certificate to an invalid, inaccessible or non-existent certificate will cause your SharePoint installation to stop functioning. Refer
    to the following article for instructions on how to change this certificate: http://go.microsoft.com/fwlink/?LinkID=178475. Are you
    sure, you want to continue?
    Restart IIS so STS picks up the new certificate.
    & iisreset
    & net stop SPTimerV4
    & net start SPTimerV4
    Now validate the certificate replacement by running several PowerShell commands and compare their outputs.
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    # get the encrypted pfx certificate object
    New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # compare the output above with this output
    (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate
    [/code]
    ## Establish the server to server trust
    [code lang="ps"]
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    Import-Module MSOnline
    Import-Module MSOnlineExtended
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # set the onpremise domain that you added to Office 365
    $SPCN = "sharepoint.domain.com"
    # your onpremise SharePoint site url
    $SPSite="http://sharepoint"
    # don't change this value
    $SPOAppID="00000003-0000-0ff1-ce00-000000000000"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # get the raw data
    $PfxCertBin = $PfxCert.GetRawCertData()
    # create a new certificate object
    $X64Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
    # import the base 64 encoded certificate
    $X64Cert.Import($X64CertPath)
    # get the raw data
    $X64CertBin = $X64Cert.GetRawCertData()
    # save base 64 string in variable
    $CredValue = [System.Convert]::ToBase64String($X64CertBin)
    # connect to office 3656
    Connect-MsolService
    # register the on-premise STS as service principal in Office 365
    # add a new service principal
    New-MsolServicePrincipalCredential -AppPrincipalId $SPOAppID -Type asymmetric -Usage Verify -Value $CredValue
    $MsolServicePrincipal = Get-MsolServicePrincipal -AppPrincipalId $SPOAppID
    $SPServicePrincipalNames = $MsolServicePrincipal.ServicePrincipalNames
    $SPServicePrincipalNames.Add("$SPOAppID/$SPCN")
    Set-MsolServicePrincipal -AppPrincipalId $SPOAppID -ServicePrincipalNames $SPServicePrincipalNames
    # get the online name identifier
    $MsolCompanyInformationID = (Get-MsolCompanyInformation).ObjectID
    $MsolServicePrincipalID = (Get-MsolServicePrincipal -ServicePrincipalName $SPOAppID).ObjectID
    $MsolNameIdentifier = "$MsolServicePrincipalID@$MsolCompanyInformationID"
    # establish the trust from on-premise with ACS (Azure Control Service)
    # add a new authenticatio realm
    $SPSite = Get-SPSite $SPSite
    $SPAppPrincipal = Register-SPAppPrincipal -site $SPSite.rootweb -nameIdentifier $MsolNameIdentifier -displayName "SharePoint Online"
    Set-SPAuthenticationRealm -realm $MsolServicePrincipalID
    # register the ACS application proxy and token issuer
    New-SPAzureAccessControlServiceApplicationProxy -Name "ACS" -MetadataServiceEndpointUri "https://accounts.accesscontrol.windows.net/metadata/json/1/" -DefaultProxyGroup
    New-SPTrustedSecurityTokenIssuer -MetadataEndpoint "https://accounts.accesscontrol.windows.net/metadata/json/1/" -IsTrustBroker -Name "ACS"
    Add a new result source
    To get search results from SharePoint Online we have to add a new result source. Run the following script in a PowerShell ISE session on your SharePoint 2013 on-premise server. Don't forget to update the settings region
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # region settings
    $RemoteSharePointUrl = "http://[example].sharepoint.com"
    $ResultSourceName = "SharePoint Online"
    $QueryTransform = "{searchTerms}"
    $Provier = "SharePoint-Remoteanbieter"
    # region settings end
    $SPEnterpriseSearchServiceApplication = Get-SPEnterpriseSearchServiceApplication
    $FederationManager = New-Object Microsoft.Office.Server.Search.Administration.Query.FederationManager($SPEnterpriseSearchServiceApplication)
    $SPEnterpriseSearchOwner = Get-SPEnterpriseSearchOwner -Level Ssa
    $ResultSource = $FederationManager.GetSourceByName($ResultSourceName, $SPEnterpriseSearchOwner)
    if(!$ResultSource){
    Write-Host "Result source does not exist. Creating..."
    $ResultSource = $FederationManager.CreateSource($SPEnterpriseSearchOwner)
    $ResultSource.Name = $ResultSourceName
    $ResultSource.ProviderId = $FederationManager.ListProviders()[$Provier].Id
    $ResultSource.ConnectionUrlTemplate = $RemoteSharePointUrl
    $ResultSource.CreateQueryTransform($QueryTransform)
    $ResultSource.Commit()
    Add a new query rule
    In the Search Administration click on Query Rules
    Select Local SharePoint as Result Source
    Click New Query Rule
    Enter a Rule name f.g. Search results from SharePoint Online
    Expand the Context section
    Under Query is performed on these sources click on Add Source
    Select your SharePoint Online result source
    In the Query Conditions section click on Remove Condition
    In the Actions section click on Add Result Block
    As title enter Results for "{subjectTerms}" from SharePoint Online
    In the Search this Source dropdown select your SharePoint Online result source
    Select 3 in the Items dropdown
    Expand the Settings section and select "More" link goes to the following URL
    In the box below enter this Url https://[example].sharepoint.com/search/pages/results.aspx?k={subjectTerms}
    Select This block is always shown above core results and click the OK button
    Save the new query rule

    Hi  Janik,
    According to your description, my understanding is that you want to display hybrid search results in SharePoint Server 2013.
    For achieving your demand, please have a look at the article:
    http://technet.microsoft.com/en-us/library/dn197173(v=office.15).aspx
    If you are using single sign-on (SSO) authentication, it is important to test hybrid Search functionality by using federated user accounts. Native Office 365 user accounts and Active Directory Domain Services
    (AD DS) accounts that are not federated are not recognized by both directory services. Therefore, they cannot authenticate using SSO, and cannot be granted permissions to resources in both deployments. For more information, see Accounts
    needed for hybrid configuration and testing.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to get save result from EXECUTE from a dynamic SQL query in another table?

    Hi everyone, 
    I have this query:
    declare @query varchar(max) = ''
    declare @par varchar(10)
    SELECT @par = col1 FROM Set
    declare @region varchar(50)
    SELECT @region = Region FROM Customer
    declare @key int
    SELECT @key = CustomerKey FROM Customer
    SET @query = 'SELECT CustomerKey FROM Customer where ' + @par + ' = '+ @key+ ' '
    EXECUTE (@query)
    With this query I want get col1 from SET and compare it to the column Region from Customer. I would like to get the matching CustomerKey for it.
    After execution it says commands are executed successfully. But I want to save the result from @query in another table. I looked it up and most people say to use sp_executesql. I tried a few constructions as sampled and I would always get this error: 
    Msg 214, Level 16, State 2, Procedure sp_executesql, Line 12
    Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.
    So the output should be a list of CustomerKeys in another table.
    How can I save the results from EXECUTE into a variable? Then I assume I can INSERT INTO - SELECT in another table. 
    Thanks

    CREATE TABLE Customer
    (CustomerKey INT , Name NVARCHAR(100));
    GO
    INSERT dbo.Customer
    VALUES ( 1, N'Sam' )
    GO
    DECLARE @query nvarchar(max) = ''
    declare @par varchar(10) = 'Name',
    @key varchar(10) = 'Sam'
    CREATE TABLE #temp ( CustomerKey INT );
    SET @query =
    insert #temp
    SELECT CustomerKey
    FROM Customer
    where ' + @par + ' = '''+ @key+ ''' '
    PRINT @query
    EXEC sp_executesql @query
    SELECT *
    FROM #temp
    DROP TABLE #temp;
    DROP TABLE dbo.Customer
    Cheers,
    Saeid Hasani
    Database Consultant
    Please feel free to contact me at [email protected] as well as on Twitter and Facebook.
    [My Writings on TechNet Wiki] [T-SQL Blog] [Curah!]
    [Twitter] [Facebook] [Email]

  • Populate report page based on results from stored procedure

    Is it possible to populate a report page in APEX based on the results from a stored procedure? If so, how do I do it? Do I write a stored procedure with a ref cursor as out parameter?

    I would use a stored procedure to return the values for a form but not for a report. For a
    report, I would use a pipelined function. See an example here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:146
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • OBIEE Report - filter based on the result from another analysis

    Hi,
    I am using OBIEE 11g,
    I am trying to use a filter which is based on the result from another analysis. I have an analysis A which is as table 1, and I want to filter the respective columns of analysis B (Table B) based on analysis A to remove the duplicates for march 01, 02, and 07 , but it is not working properly. I took a max of start and end time when I created analysis A. Please let me know if I did anything wrong. thanks.
    Table 1
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    xxxxxxx
    2015-02-26
    9:00
    13:00
    00:00:00
    00:00:00
    2015-02-27
    12:00
    18:00
    00:00:00
    00:00:00
    2015-02-28
    8:00
    14:00
    00:00:00
    00:00:00
    2015-03-01
    14:00
    20:00
    14:00:00
    20:00:00
    2015-03-02
    16:00
    20:00
    16:00:00
    20:00:00
    2015-03-07
    14:06
    20:02
    14:00:00
    20:00:00
    2015-03-11
    16:00
    20:00
    16:00:00
    20:00:00
    2015-03-14
    8:00
    14:00
    00:00:00
    00:00:00
    2015-03-25
    14:00
    20:00
    16:00:00
    20:00:00
    Table 2
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    Hours
    xxxxxxx
    2015-02-26
    9:00
    13:00
    00:00:00
    00:00:00
    -3
    2015-02-27
    12:00
    18:00
    00:00:00
    00:00:00
    6
    2015-02-28
    8:00
    14:00
    00:00:00
    00:00:00
    6
    2015-03-01
    14:00
    20:00
    00:00:00
    00:00:00
    6
    14:00:00
    20:00:00
    6
    2015-03-02
    16:00
    20:00
    00:00:00
    00:00:00
    4
    16:00:00
    20:00:00
    4
    2015-03-07
    14:06
    20:02
    00:00:00
    00:00:00
    6
    14:00:00
    20:00:00
    6
    2015-03-11
    16:00
    20:00
    16:00:00
    20:00:00
    4
    2015-03-14
    8:00
    14:00
    00:00:00
    00:00:00
    6
    2015-03-25
    14:00
    20:00
    16:00:00
    20:00:00
    4

    Why avg here?
    What columns you want to show in the report?
    for a employee for given date if he have 2 rows then you may sum up hours right?
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    Hours

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • Need HELP to pass results from procedure

    Hey Gurus,
    I need your help. I got a package (test) and inside the package two procedures (step1, step2). Now I want to pass the results from the procedure step1 (stat_rec.lev, stat_rec.chi_sq, stat_rec.chi_sig) to the other procedure step2 and make a select with where-clause. How can I manage this?? Got someone a idea??
    Here my package:
    CREATE OR REPLACE PACKAGE test1
    AS
    PROCEDURE step1(table_in IN VARCHAR2, column1 IN VARCHAR2,column2 IN VARCHAR2);
    TYPE stat_tab_rec IS RECORD(lev NUMBER, chi_sq NUMBER, chi_sig NUMBER, rank NUMBER);
    stat_rec stat_tab_rec;
    PROCEDURE step2(table_in IN VARCHAR2, column1 IN VARCHAR2,column2 IN VARCHAR2);
    END test1;
    Thanks for your help!!
    CREATE OR REPLACE PACKAGE BODY test1
    AS
    PROCEDURE step1(table_in IN VARCHAR2, column1 IN VARCHAR2,column2 IN VARCHAR2,column3 IN VARCHAR2,column4 IN VARCHAR2,column5 IN VARCHAR2)
    IS
    TYPE cur_crosstab IS REF CURSOR;
    cur_cross cur_crosstab;
    BEGIN
    OPEN cur_cross FOR 'WITH '
    ||'att_grp AS '
    ||'(SELECT '||column1||' as x1 , lev AS lev, '||column2||', '
    ||' CASE'
    ||' WHEN '||column2||' <= lev '
    ||' THEN 1 '
    ||' ELSE 2 '
    ||'END attribute_group '
    ||'FROM '||table_in||', '
    ||'(SELECT level AS lev '
    ||'FROM dual '
    ||'WHERE level >= (SELECT MIN('||column2||') FROM '||table_in||') CONNECT BY level <= (SELECT MAX('||column2||') FROM '||table_in||'))) '
    ||'SELECT lev, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS''),4) AS chi_square, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_SIG''),4) AS significance, '
    ||'dense_rank() over (order by ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS'' ),4) DESC) AS rank '
    ||'FROM att_grp '
    ||'GROUP BY lev '
    ||'ORDER BY lev';
    LOOP
    FETCH cur_cross INTO stat_rec;
    EXIT WHEN cur_cross%NOTFOUND;
    IF stat_rec.rank = 1 THEN
    DBMS_OUTPUT.put_line(column2);
    DBMS_OUTPUT.put_line(stat_rec.lev|| ' = ' || TO_CHAR(stat_rec.chi_sq,'99.99') || TO_CHAR(stat_rec.chi_sig,'99.99'));
    END IF;
    END LOOP;
    CLOSE cur_cross;
    END step1;
    PROCEDURE step2
    IS
    BEGIN
    END step2;
    END test1;

    Thank you Massimo. I tried your example but I recieve an error: PLS-00306: wrong number or types of arguments in call to "procedure1"
    Here my Codes:
    CREATE OR REPLACE TYPE stat_obj IS OBJECT(zeilen NUMBER,lev NUMBER, chi_sq NUMBER, chi_sig NUMBER);
    CREATE OR REPLACE TYPE stat_tab IS TABLE OF stat_obj;
    CREATE OR REPLACE PROCEDURE procedure1(table_in IN VARCHAR2,column1 IN VARCHAR2,column2 IN VARCHAR2, v OUT stat_tab)
    IS
    TYPE cur_crosstab IS REF CURSOR;
    cur_cross cur_crosstab;
    TYPE stat_tab_rec IS RECORD(lev NUMBER, chi_sq NUMBER, chi_sig NUMBER);
    stat_rec stat_tab_rec;
    BEGIN
    OPEN cur_cross FOR 'WITH '
    ||'att_grp AS '
    ||'(SELECT '||column1||' as x1 , lev AS lev, '||column2||', '
    ||' CASE'
    ||' WHEN '||column2||' <= lev '
    ||' THEN 1 '
    ||' ELSE 2 '
    ||'END attribute_group '
    ||'FROM '||table_in||', '
    ||'(SELECT level AS lev '
    ||'FROM dual '
    ||'WHERE level >= (SELECT MIN('||column2||') FROM '||table_in||') CONNECT BY level <= (SELECT MAX('||column2||') FROM '||table_in||'))) '
    ||'SELECT lev, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS''),4) AS chi_square, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_SIG''),4) AS significance, '
    ||'dense_rank() over (order by ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS'' ),4) DESC) AS ranking '
    ||'FROM att_grp '
    ||'GROUP BY lev '
    ||'ORDER BY lev';
    LOOP
    FETCH cur_cross INTO v;
    EXIT WHEN cur_cross%NOTFOUND;
    --IF v_stat_tab.rank = 1 THEN
    --DBMS_OUTPUT.put_line(v_stat_tab.lev || '=' || TO_CHAR(v_stat_tab.chi_sq,'99.99') || TO_CHAR (v_stat_tab.chi_sig,'99.99'));
    --END IF;
    END LOOP;
    CLOSE cur_cross;
    END;
    CREATE OR REPLACE PROCEDURE procedure2
    IS
    v_zeilen NUMBER;
    v_lev NUMBER;
    v_chi_sq NUMBER;
    v_chi_sig NUMBER;
    v stat_tab;
    BEGIN
    procedure1(v);
    SELECT zeilen,lev,chi_sq,chi_sig INTO v_zeilen,v_lev,v_chi_sq,v_chi_sig
    from table(v);
    DBMS_OUTPUT.put_line(v_zeilen||v_lev||v_chi_sq||v_chi_sig);
    END;
    Hope u can help me!!

Maybe you are looking for

  • For Dealar's Invoice MRP indicator is not appearing in J1IEX

    Dear All, We are trying to capture the the Dealar's Invoice through J1IEX, in po Rate is maintained as per Rs 100 and VAT 4% and then GR is made for the same without captuing any excise in MIGO. and then we are tring to capture and post this excise i

  • Getting SocketException: Error in poll for fd: 'nn', revents 'nn+n'

              I'm running WL 5.1 SP9 on a HP9000 HPUX 11.0 with JRE 1.2.2-06 and I get the following:           java.net.SocketException: Error in poll for fd: '21', revents: '25'                at weblogic.socket.PosixSocketMuxer.processSockets(PosixSoc

  • Depreciation for subsequent acquisitions not posted in following month.

    Hello Experts, I had a problem with subsequest acquisition - after posting depreciation was not distributed equally during follwing months. As Paul and Markus advised per note 92260, the period control method should has been set on "06"(start of year

  • Idoc packaging for Receiver Idoc adapter in 7.11

    We are using PI 7.11. And, I have a File to Idoc scenario. I am trying to find an Idoc packaging option for Receiver Idoc adapter. Any suggestions on how to do configure thi scenario? Thanks abhinaya4321 Edited by: abhinaya4321 on Dec 3, 2011 12:15 P

  • Trasformation SAP BW 7.0 system "Copy" Functionality NOT available

    Hi, i started to work with a new SAP BW 7.0 system and i noticed that the copy functionality for the trasformation is not available. In my previous project i worked on a system SAP BW 7.0 that had this functionality, i mean with right click of the mo