Rewrites

I am having trouble with the Boolmarks channel and the rewrite function.
When I click on a link http://www.url.com it turns into
https://portalurl.com/redirect/http://www.url.com.
These pages never load with the latter url. How do I get portal to not
rewrite these and just open the new window with http://www.url.com? Also,
what is the point in redirecting the url?
Thanks,
Matt

Make sure "Rewrite all URL's enabled" is not checked under Gateway Management
-> Manage Gateway Profile on the Admin console.
The redirection means url's will be encrypted via the gateway. Obviously this
is crucial if you are browsing a corporate Intranet from the Internet.
Graeme.
Matthew Shull wrote:
I am having trouble with the Boolmarks channel and the rewrite function.
When I click on a link http://www.url.com it turns into
https://portalurl.com/redirect/http://www.url.com.
These pages never load with the latter url. How do I get portal to not
rewrite these and just open the new window with http://www.url.com? Also,
what is the point in redirecting the url?
Thanks,
Matt

Similar Messages

  • IIS 7.5 URL Rewrite: Hit specific page of a web application but should be redirected to another application's page

    I have deployed 2 different web application on IIS 7.5 running on Windows Server 2008 R2 but on different port numbers i.e. one application deployed on port no. 1776 and another on 8091. I want to rewrite URL in such a way that if i hit any page of first
    application such as default.aspx then it will be redirected to particular page of another application along with some changes in url.
    Example: if i access any page from first application like:
    http://g2wv126rbsc:1776/sites/main/commercial/commercial-solutions/financing/default1.aspx
    then it should redirect to specific page of another application along with some changes in url:
    http://g2wv126rbsc:8091/main/commercial/commercial-solutions/financing/default2.aspx
    Note: In above mentioned url, also removed "sites".
    I tried to create a inbound rule through URL Rewrite module (installed on IIS 7.5) by selecting Action as "Rewrite" but didn't find any success.
    I need some examples if anyone has come across same kind of issue.
    Thanks in advance.

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

  • Rewrite value in BKPF when FI document posting

    Hello!
    I need your advice. I have task - Сlear field XREF2_HD in table BKPF when FI document is posting  (FB01, for excemple).
    I`m using BTE 1120 "Substitute header and items", belong you can see FM code which i use:
    FUNCTION ZSAMPLE_PROCESS_00001120.
    ""Локальный интерфейс:
    *"  IMPORTING
    *"     VALUE(I_BKDF) TYPE  BKDF OPTIONAL
    *"  TABLES
    *"      T_BKPF STRUCTURE  BKPF
    *"      T_BSEG STRUCTURE  BSEG
    *"      T_BKPFSUB STRUCTURE  BKPF_SUBST
    *"      T_BSEGSUB STRUCTURE  BSEG_SUBST
    *"      T_BSEC STRUCTURE  BSEC OPTIONAL
    *"  CHANGING
    *"     REFERENCE(I_BKDFSUB) TYPE  BKDF_SUBST OPTIONAL
    BREAK-POINT.
    LOOP AT T_BKPF.
    T_BKPF-XREF2_HD = '!!!!'.
    MODIFY T_BKPF INDEX SY-TABIX.
    ENDLOOP.
    ENDFUNCTION.
    But after execute this FM, all changes in T_BKPF are rollbacked (it`s OK, becouse after execute T_BKPF is rewrited from local table L_BKPF).
    I think, i should i change data in T_BKPFSUB table, but field XREF2_HD is`t included into BKPF_SUBST structure. So, i have two questons:
    1. How i can add field XREF2_HD into BKPF_SUBST?
    2. What can i do?
    The best regreades, DrAlex

    You are right, using a where-used option on OPEN_FI_PERFORM_00001120_P, display a MOVE-CORRESPONDING from BKPF_SUBST to XBKPF internal table.
    It does not seem to exist any point to enhance this structure in standard, you may append fields to this structure that should update BKPF (creating append ZABKPF_SUBST) but that may cause inconsistencies in other database tables, you could try to use a substitution rule (OBBH) and not the BTE to fulfil your requirement.
    Regards,
    Raymond

  • Use CONTEXT index on mview or use mview's rewrite directly

    Please let me explain what I mean in Subject. I have 9 tables. Each of these tables has about 40,000 rows and one table has 2 million rows. Using first approach, I can build a join-only materialized view on top of nine table's mview log. then query on these nine tables directly. Advantage for doing that is use rewrite.
    <p>
    for second approach, I build a CONETXT index on several columns on the mview, and then query through CONTEXT index on mview directly. This is pretty much like Barbara did on CREATE INDEX book_idx ON book_search
    [http]Indexing multiple columns of multiple tables using CTXCAT
    but she used CTXCAT instead of CONTEXT index.
    <p>
    My question is will second approach better than first one and why. Unlike basic join several tables which gives you predictable performance, I often feel that CONTEXT index performance is unpredictable when tables have more than several thousands rows (maybe I did something wrong, but still looking for document regarding performance) .
    <p>
    I will appreciate someone could show hints on the issue.
    <p>
    Message was edited by:
    qwe15933
    Message was edited by:
    qwe15933
    Message was edited by:
    qwe15933
    Message was edited by:
    qwe15933

    The best method to find out what is best for any individual situation is to test and compare. In general, Oracle Text is best at searching unstructured data, such as large documents and has a lot of features that enable you to do different kinds of searches. If you only have structured data, with each column only containing one short thing and you only need simple searches, then you probably don't need Text. There are also a few things that can be done to indexes and/or queries to optimize performance. It would help to have an idea what your typical data is like and what sorts of searches you anticipate needing.

  • ColdFusion with IIS URL Rewrite - Page never finishes loading

    I am running CF10 on IIS 7.5 with URL Rewrite module installed.
    All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value in Application.cfc like this:
    <cfcomponent>
    <cffunction name="onRequestEnd">
    <cfheader name="Content-Length" value="#getPageContext().getCFOutput().getBuffer().size()#" />
    </cffunction>
    </cfcomponent>
    Without this code the browser does not display the page. However, even though it is now displaying the page, it is not doing it correctly. The page never finishes loading fully and not all of the HTML content seems to be on the page.
    I have tried to add a <cfflush> tag after setting the 'content-length' but it makes no difference. I don't understand why this is happening but I know that it has happened to someone else who was using htaccess: http://forums.devshed.com/coldfusion-development-84/page-not-finishing-loading-coldfusion- and-htaccess-bug-575906.html
    Can anyone please help?

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • IIS Reverse Proxy with URL rewrite.

    Hi all, hoping to leverage the wealth of knowledge contained here.
    Any assistance would be very welcome.
    I'm having an issue getting a reverse proxy and URL rewrite working in IIS 7.0.
    I need to redirect all requests with a specific virtual directory suffix only.
    ie; https://domain.test.com/outbound/Content/query_etc
    With /Outbound/ being the trigger.
    This should be redirected to http://10.10.10.10/inbound/Content/query_etc
    While at the same time, requests without the /outbound/ suffix should be handled locally.
    I have configured the reverse proxy as described in a few articles, and have had no luck.
    Here's a snippet from my (sanitized) web.config at the site level.
    <rewrite>
    <outboundRules>
    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
    <match filterByTags="A" pattern="^http(s)?://10.10.10.10/inbound/(.*)" />
    <action type="Rewrite" value="https://domain.test.com/outbound/{R:2}" />
    </rule>
    <preConditions>
    <preCondition name="ResponseIsHtml1">
    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
    </preCondition>
    </preConditions>
    </outboundRules>
    <rules>
    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
    <match url="^outbound/(.*)" />
    <action type="Rewrite" url="http://10.10.10.10/inbound/{R:1}" appendQueryString="true" logRewrittenUrl="false" />
    </rule>
    </rules>
    </rewrite>
    To me, this looks correct, yet it doesn't work.
    With this, I get the normal 404 - Error Code 0x80070002, with the text indicating the local directory doesn't exist, so.... not being picked up by the filter for redirection.

    Hi Andrew,
    Looking at your requirements it appears you need Reverse Proxy To Another Site/Server.
    By using URL Rewrite Module together with
    Application Request Routing module you can have IIS 7 act as a
    reverse proxy.
    It seems like URL Rewrite can't re-route the request somewhere else out of the server.
    Even when you rewrite the url the actual connection remains with the server. Hence if your original server doesn't have /inbound/Content/query_etc  it will fail with 404.
    Hosting multiple domain names under a single account using URL Rewrite.
    It’s a common desire to have a single IIS website that handles multiple sites with different domain names.
    References:
    How to create a url alias using IIS URL Rewrite:
    http://blogs.technet.com/b/mspfe/archive/2013/11/27/how-to-create-a-url-alias-using-iis-url-rewrite.aspx
    Reverse Proxy with URL Rewrite v2 and Application Request Routing:
    http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
    Regards,
    Satyajit
    Please“Vote As Helpful”
    if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • URL Rewrite Rule: HTTP to HTTPS Not Working

    Here is my problem. I cannot get HTTP to HTTPS redirect to work using the URL Rewrite module. I am using version 2, by the way, which I understand is the latest version. I've also enabled the "Proxy Server" and Application Request Routing"
    features.
    I've trolled through the Internet for 2 days now for solutions to my problem, including the ones provided by the TechNet forums and by MVP Scott Forsyth. I've tried over 30 solutions, and none have resolved my issue. Granted some of the solutions I've tried
    may have been repeats of others. After trying so many, I have had a hard time discerning the differences. Does it really matter, for instance if the pattern match for the {HTTPS} input is specified as
    "^off$" or just "off"? I see this discrepancy (among others) everywhere. It seems like there are so many variations out there. It is quite confusing for the uninitiated and the newbies like myself to the
    URL Rewrite technology. I have enabled and consulted my "Failed Request Tracing Rules" logs but cannot make any sense of the cryptic information it is providing.
    I just cannot get my reverse proxy server to redirect http requests from the Internet to https to my internal web server. When a user specifies "https://server1.xxxxx.com". he is able to access the internal server via the reverse proxy (IIS) server.
    But when he specifies "http://server1.xxxxx.com" he receives "Server Error 500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed."
    At this point I am at my wits end, and am even considering configuring the protocol translation on our firewall. But this not my preference as it presents another layer of complexity, and device to troubleshoot later on. Below I've pasted my entire web.config
    file with my most current version of the rule in question (in bold) for your review. I started to paste just the specific rule, but thought you might need to see the entire file in case something else may be conflicting with the rule.
    Thank you in advance for your help.
    Dave Robinson
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                  <rules>
                    <clear />
    <rule name="HTTP to HTTPS Redirect" enabled="true" stopProcessing="true">
                    <match url="(.*)" />
                   <conditions>
                      <add input="{HTTPS}" pattern="off" />
                    </conditions>
                      <action type="Redirect" url="https://{HTTP_HOST}/{REQUEST_URI}" redirectType="Found" />
                    </rule>
    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{CACHE_URL}" pattern="^(https?)://" />
                        </conditions>
                        <serverVariables>
                            <set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />
                            <set name="HTTP_ACCEPT_ENCODING" value="" />
                    </serverVariables>
                        <action type="Rewrite" url="{C:1}://server1.xxxxx.com/{R:1}" />
                    </rule>
                </rules>
                <outboundRules>
                    <rule name="RestoreAcceptEncoding" preCondition="NeedsRestoringAcceptEncoding">
                    <match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.*)" />
                    <action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" />
                    </rule>
                    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                        <match filterByTags="A, Form, Img" pattern="^http(s)?://server1.xxxxx.com/(.*)" />
                        <action type="Rewrite" value="http{R:1}://server1.xxxxx.local/{R:2}" />
                    </rule>
                    <preConditions>
                        <preCondition name="ResponseIsHtml1">
                            <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                        </preCondition>
                        <preCondition name="NeedsRestoringAcceptEncoding">
                            <add input="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" pattern=".+" />
                        </preCondition>
                    </preConditions>
                </outboundRules>
            </rewrite>
            <tracing>
                <traceFailedRequests>
                    <add path="*">
                        <traceAreas>
                            <add provider="ASP" verbosity="Verbose" />
                            <add provider="ISAPI Extension" verbosity="Verbose" />
                            <add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,WebSocket"
    verbosity="Verbose" />
                        </traceAreas>
    <failureDefinitions timeTaken="00:00:00" statusCodes="404" />
                    </add>
                </traceFailedRequests>
            </tracing>
            <httpErrors errorMode="Custom" />
            <httpRedirect enabled="false" destination="" exactDestination="false" childOnly="false" httpResponseStatus="Permanent" />
        </system.webServer>
    </configuration>

    On Wed, 28 Jan 2015 17:53:41 +0000, dwrobins2000 wrote:
    Here is my problem. I cannot get HTTP to HTTPS redirect to work using the URL Rewrite module. I am using version 2, by the way, which I understand is the latest version. I've also enabled the "Proxy Server" and Application Request Routing"
    features.
    Web/IIS related issues are better posted where the IIS experts are:
    http://forums.iis.net
    Paul Adare - FIM CM MVP
    "The equivalent of treating dandruff by decapitation"
    -- Frank Zappa on the Parents Music Resource Center' censorship plans

  • How to rewrite /guid/123 to /irj/servlet/.../com.sap.km.cm.docs/guid/123

    Hi,
    in KM it is possible to use short guids to point to resources. Unfortunately, to use guids in Links, one has to prepend the full path to the component com.sap.km.cm.docs, i.e. to point to guid "/guid/123" one has to write "http://server:port/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/guid/123".
    How can I afford to use the much shorter URL "http://server:port/guid/123"?
    Thanks in advance
    Uwe

    Hi Boris,
    thanks for your reply. This helps me further, but I would even more like to use only URLs that have the form http://server:port/guid/123 or http://server/guid/123.
    With Apache Web Server I would have known that this could be achieved via URL rewriting but I could not find anything equal to URL rewriting in Netweaver Portal, not even in Web Dispatcher, which we are using, too.
    Cheers,
    Uwe

  • Rewrite query

    hi
    i have a standard oracle report query which i ve taken from the data model
    is it possible to rewrite this query without the bind variable , also the data given as output should be same when rewritten
    wht does &C_vendor_dynamic_SQL stand for
    SELECT /*+ ORDERED_PREDICATES */  DISTINCT (v.vendor_id)           C_vendor_id,
                       v.vendor_name                               C_vendor_name,
         DECODE(:SORT_BY_ALTERNATE, 'Y', UPPER(v.vendor_name_alt),
                       UPPER(v.vendor_name))      C_sort_vendor_name,
         v.segment1          C_vendor_num
    FROM    ap_invoices i, po_vendors v
    WHERE  0 < (SELECT SUM(nvl(prepay_amount_remaining,amount))
                     FROM  ap_invoice_distributions aid
                     WHERE aid.invoice_id = i.invoice_id
                     AND   aid.line_type_lookup_code IN ('ITEM','TAX')
                     AND   nvl(aid.reversal_flag,'N') <> 'Y')
    AND v.vendor_id = i.vendor_id  
    AND i.invoice_type_lookup_code =  'PREPAYMENT'
    AND       i.cancelled_date IS NULL
    &C_vendor_dynamic_SQL
    ORDER BY DECODE(:SORT_BY_ALTERNATE, 'Y', UPPER(v.vendor_name_alt), UPPER(v.vendor_name))thanking in advance
    Edited by: makdutakdu on Jun 21, 2010 10:54 AM

    hi
    thank u for the speedy response
    there is after report and before report trigger and i dont see C_vendor_dynamic_SQL in both of them from the data model i see its a placeholder type column with no pl/sql formula specified
    this is the code for before report trigger
    function BeforeReport return boolean is
    begin
    /* This is the before report trigger for Oracle Payables Release 10 reports  */
    DECLARE
      init_failure    EXCEPTION; 
    BEGIN
      /* Start tracking report run time */
      :C_REPORT_START_DATE := sysdate;
      /* Init AOL - only necessary if AOL user exits are called           */
      /* If this is deleted, also delete SRWEXIT in After Report Trigger! */
      SRW.USER_EXIT('FND SRWINIT');
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('1','After SRWINIT');
      END IF;
       /* get the set of books id and charge account id for this org */
      SELECT   ap.set_of_books_id, gl.chart_of_accounts_id
        INTO   :P_set_of_books_id, :P_chart_of_accounts_id
        FROM   ap_system_parameters ap, gl_sets_of_books gl
        WHERE  ap.set_of_books_id = gl.set_of_books_id;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('2','After initialize parameter p_set_of_books_id and p_charge_of_accounts_id');
      END IF;
      /* Get the organization name and SYSDATE from GL_SETS_OF_BOOKS */
      IF (get_company_name != TRUE) THEN  -- Call report level PL/SQL function
         RAISE init_failure;
      END IF;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('3','After Get_Company_Name');
      END IF;
      /* Get NLS strings for "All","Yes","No", and "No data exists..."  */
      IF (GET_NLS_STRINGS != TRUE) THEN -- Call report level PL/SQL function
         RAISE init_failure;
      END IF;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('4','After Get_NLS_Strings');
      END IF;
      /* Get code, precision, min.accountable unit,and descr. for base currency */
      IF (get_base_curr_data != TRUE) THEN   -- Call report level PL/SQL function
         RAISE init_failure;
      END IF;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('5','After Get_Base_Curr_Data');
      END IF;
      /* If you need to print cover page values, add the code to the existing */
      /* get_cover_page_values function and uncomment the call below.         */
      /* IF (get_cover_page_values != TRUE) THEN  */
      /*    RAISE init_failure;                   */
      /* END IF;                                  */
      /* IF (:p_debug_switch in ('y','Y')) THEN   */
      /*    SRW.MESSAGE('6','After Get_Cover_Page_Values'); */
      /* END IF;                                  */
      /* If this is a flex report, uncomment the following lines */
      /* IF (get_flexdata != TRUE) THEN             */
      /*    RAISE init_failure;                     */
      /* END IF;                                    */
      /* IF (:p_debug_switch in ('y','Y')) THEN     */
      /*    SRW.MESSAGE ('7', 'After Get_Flexdata');*/
      /* END IF;                                    */
      /* Add any custom code to the existing custom_init PL/SQL function and */
      /* uncomment the call to it below */
      IF(custom_init != TRUE) THEN             
        RAISE init_failure;                    
      END IF;                                   
      IF (:p_debug_switch in ('y','Y')) THEN   
        SRW.MESSAGE('7','After Custom_Init');  
      END IF;                                  
      /* If the debug switch is turned on, do an SRW.BREAK to show current */
      /* parameter and column assignments.                                 */
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.BREAK;
      END IF;
      /* If there have been no exceptions so far, RETURN(TRUE) */
      RETURN (TRUE);
    /* Exception Handler Section.  If there is an exception, abort program */
    EXCEPTION
      WHEN   OTHERS  THEN
        RAISE SRW.PROGRAM_ABORT;
    END;
      return (TRUE);
    end;this is for after report trigger
    function AfterReport return boolean is
    begin
    BEGIN
       SRW.USER_EXIT('FND SRWEXIT');
       IF (:P_DEBUG_SWITCH = 'Y') THEN
          SRW.MESSAGE('20','After SRWEXIT');
       END IF;
    EXCEPTION
    WHEN OTHERS THEN
       RAISE SRW.PROGRAM_ABORT;
    END;  return (TRUE);
    end;kindly help
    Edited by: makdutakdu on Jun 21, 2010 11:22 AM

  • Materialzed view rewrite

    Hi
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28313/qradv.htm#CHDFIAGB
    In the following section
    Materialized View Delta Joins
    A materialized view delta join is a join that appears in the materialized view but not the query. All delta joins in a materialized view are required to be lossless with respect to the result of common joins. A lossless join guarantees that the result of common joins is not restricted. A lossless join is one where, if two tables called A and B are joined together, rows in table A will always match with rows in table B and no data will be lost, hence the term lossless join. For example, every row with the foreign key matches a row with a primary key provided no nulls are allowed in the foreign key. Therefore, to guarantee a lossless join, it is necessary to have FOREIGN KEY, PRIMARY KEY, and NOT NULL constraints on appropriate join keys. Alternatively, if the join between tables A and B is an outer join (A being the outer table), it is lossless as it preserves all rows of table A.
    why we need lossless joins?
    why we need non duplicating joins?
    does we need both to perform query rewrite or anyone of them
    thanks
    Nick

    Assume you have a query that ends up looking like:
    select * from A where ...and there is a materialized view looking like:
    select A.*, B.* from A, B where ...If the join from A to B causes rows from A to appear multiple times (imagine A is "orders" and B is "order_lines" then the materialized will give you the wrong result. This answers the bit about duplicates.
    If the join from A to B causes rows from A to disappear (imagine A is the order_lines and B is the orders this time, but there is a predicate on B in the materialized view that restricts the views to 'completed' orders) then you get the wrong result. This answers the bit about lossless joins.
    You might also want to read the following blog item from Oracle's optimizer group about "join elimination" as the sample principle applies.
    http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "The greatest enemy of knowledge is not ignorance,
    it is the illusion of knowledge." (Stephen Hawking)

  • Query rewrite

    Hi,
    I have a large query, with a 'union' clause, and the differences between the two selects are just one condition, so it's similar to the following:
    select table1.col1
    from table1
    join.....
    join.....
    join...
    where ...
    and table1.col2 is not null and table1.col3 is not null
    UNION
    select table1.col1
    from table1
    join.....
    join.....
    join...
    where ...
    and table1.col4 is not null and table1.col5 is not null
    The other conditions, joins are similar.
    Is it any way to rewrite this SQL statement without UNION (so into a single select)?
    Thanks

    Roger25 wrote:
    With or, there are not returned all the rows, which have col2, col3, col4, col5 as not null. Only those rows which have col2, col3 OR col4, col5. So if col2 and col3 are not null, rows with col4 and col5 not null are not returned. It's the OR condition..
    Did you test it? OR condition works well for me
    SQL> set null null
    SQL>
    SQL> select * from t;
            C2         C3         C4         C5
    null       null       null       null
             1          1 null       null
    null       null                2          2
             3          3          3          3
             4 null                4 null
    null                5 null                5
             6 null       null                6
    null                7          7 null
    8 rows selected.
    SQL> select *
      2    from t
      3   where c2 is not null and c3 is not null
      4   union
      5  select *
      6    from t
      7   where c4 is not null and c5 is not null;
            C2         C3         C4         C5
             1          1 null       null
             3          3          3          3
    null       null                2          2
    SQL> select *
      2    from t
      3   where (c2 is not null and c3 is not null)
      4      or (c4 is not null and c5 is not null);
            C2         C3         C4         C5
             1          1 null       null
    null       null                2          2
             3          3          3          3
    SQL>

  • How to handle RH8's HTML rewrites?

    Hello all,
    From this forum, I've leaned some of the "unique" characteristics of the RH8 WYSIWYG editor and how it can rewrite HTML when jumping back and forth between Design and HTML views.
    In many topics, I've added "Top" links so readers can jump to the mini-TOC at the top. I enter
    <a href="#" class="top">Top</a>
    in the HTML editor and style it w/ CSS.
    Of course RH8 rewites this to
    <a href="#" class="top" style="color: #0000ff; text-decoration: underline; ">Top</a>
    and the CSS I need to use is overridden by the inline style. Bummer.
    So I need a sanity check on the best way to maintian clean HTML and retain control with CSS - at least until the project is generated. Here's what I'm doing thus far.
    1. Add my "Top" links to all my topics in HTML view: <a href="#" class="top">Top</a>.
    2. Complete EVERYTHING else I need to do in RH8, except generate the project.
    3. Do a Find a Replace on all the topics in the project to swap out
    <a href="#" class="top" style="color: #0000ff; text-decoration: underline; ">Top</a>
    for
    <a href="#" class="top">Top</a>
    4. NEVER open those topics in the WYSIWYG editor again.
    5. Generate the project.
    Alternatively, I guess I could use a 3rd party Find and Replace tool to swap the HTML code for the "Top" link AFTER the project was generated.
    Naturally, this only works until those topics need to be worked on in RH8's WYSIWYG editor. Once that happens, the above steps need to be repeated.
    Is there a better way to do this? Am I doing too much work for something that should be simple?
    Thanks for any wisdom you can share.
    Patrick

    Hi there
    From what you posted I'm guessing you inserted a bookmark at the top of the page that is labeled #top? If so, that's not really needed. You can remove the bookmark and just link to just # and the page reloads.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • After upgrading to Lion I cannot rewrite CD-RW with my Superdrive. I'm on an iMac24 10.7.1s

    After upgrading to Lion I cannot rewrite CD-RW with my Superdrive. I'm on an iMac24 10.7.1

    Might be corrupted audio preferences ..
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following;
    /Library/Preferences/Audio
    Click Go then move both .plist files from the Audio folder to the Trash.
    com.apple.audioDeviceSettings.pllist
    com.apple.audio.SystemSettings.plist
    Restart your Mac. See if that made a difference ...

  • Exchange 2013 mail domain rewrite

    Hi
    In exchange 2013 there is no Edge role. So how i can rewrite domain in email message. Exmaple.
    User primary smtp is [email protected] when he is sendin mail to out side of organisation email address should be [email protected]
    Thanks

    Hello,
    1. add your domain to accepted domains (mailflow > accepted domains)
    2. create new e-mail address policy and add the suffix you want (mailflow > emailaddreepolicies). Do not forget to apply!
    3. Done! Send an e-mail to your external address: hotmail, gmail, etc
    Good Luck!

  • How to handle a phrase like a single word in a query rewrite template?

    Hi there,
    i would like to handle a case like this:
    "hewlett packard" printer
    I have a custom thesaurus where {hewlett packard} is a synonym of {hp}, and viceversa of course.
    Now, i can successfully find records like "hp printer" or "printer model hp 2575 "by issuing the following query:
    select * from sale_items
    where contains(item_name,
    'SYN(hewlett packard,cust_thes) AND printer')>0
    or its equivalent form containing curly braces:
    select * from sale_items
    where contains(item_name,
    'SYN({hewlett packard},cust_thes) AND printer')>0
    My problem is that i can't find a way of successfully passing the phrase "hewlett packard" as a single word in a query rewrite template like this one:
    select * from sale_items
    where contains(item_name,
    '<query>
    <textquery grammar="CONTEXT">{hewlett packard} printer
    <progression>
    <seq><rewrite>transform((TOKENS, "SYN(", ",cust_thes)", " AND "))</rewrite></seq>
    </progression>
    </textquery>
    <score datatype="INTEGER" algorithm="COUNT"/>
    </query>')>0
    When i run this query i get no rows.
    The same happens if i substitute curly braces with double quotes.
    So, how to get phrases to be recognized in the query rewrite template?
    Bye,
    Flavio

    I am unable to find out a way to search on the particular phrase like I have a document containing the text
    “Oracle Text is a good searching tool.” Now if searches for the phrase “searching tool”, it doesn’t return any rows but if I search for “searching” and “tool” in 2 separate queries, it gives the document.
    If any one has done it before, please tell me the solution.
    I have used the following queries to create index on BLOB column:-
    CREATE INDEX doc_ indx ON doctest(document)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS('lexer doc_lexer sync (on commit) ');
    select * from doc_test where contains(document, 'searching tool') > 0;
    select * from doc_test where contains(document,'searching') > 0;
    select * from doc_test where contains(document,'tool') > 0;
    Should I specify something while creating the indexes ?
    Regards
    Inderjeet

  • Rewrite rules: mod_rewrite vs. SJWS 7

    Hi,
    I migrate some application which uses mod_rewrite. And I have a serious problems with write correct rules in obj.conf.
    I need to implement two task (below):
    1. some like below
    RewriteRule ^/$ http://test1.domain.com/index.dhtml [R=301,L]
    RewriteRule !\.(html|php|jpg|png|css|png|xls|xdoc|xsl|xlsx|pdf|dhtml) http://test2.domain.com%{REQUEST_URI}? [R,L]2. some simple redirect from
    http://test1.domain.com/name.surname
    to
    http://test1.domain.com/employees.dhtml?where=all&search=name+surname
    I try to write some rules but I still have errors. I hope there are some people who know SJSW and can help.
    thanks
    Irek

    References
    [http://blogs.sun.com/elving/entry/regular_expression_redirects_in_7]
    [http://blogs.sun.com/dzm/entry/web_server_7_0_gallery2]
    [http://blogs.sun.com/dzm/entry/playing_with_pattern_matching]
    [http://docs.sun.com/app/docs/doc/819-2614/6n4t239c4?a=view]
    [http://docs.sun.com/app/docs/doc/820-4848/gduun?a=view]
    [http://forums.sun.com/thread.jspa?threadID=5312149]
    [http://forums.sun.com/thread.jspa?threadID=5343970]
    I do not know much details about mod_rewrite but let me try to guess. I have not tested it.
    For
    RewriteRule ^/$ http://test1.domain.com/index.dhtml [R=301,L]you can try
    <If not $internal and  $uri =~ "^/$>
    NameTrans fn="redirect" $url="http://test1.domain.com/index.dhtml"
    </If>
    {code}
    For
    {code}RewriteRule !\.(html|php|jpg|png|css|png|xls|xdoc|xsl|xlsx|pdf|dhtml) http://test2.domain.com%{REQUEST_URI}? [R,L]{code}
    (note that you have png twice)
    you can try
    {code}
    <If not ($type =~ "html" or $type =~ "php" or $type =~ "jpg"  or $type =~ "png" or
             $type =~ "css" or $type =~ "xls" or $type =~ " xdoc" or $type =~ "xsl" or
             $type =~ "xlsx" or $type =~ "pdf" or $type =~ "dhtml" ) >
    NameTrans fn="redirect" url="http://test2.domain.com/$uri"
    </If>
    {code}
    where $type is and Alias for $srvhdrs{'content-type'}
    If you have to do URL rewriting (on the same server) then you could have used restart function.
    {code}<If not $internal and $uri =~ "^/$">
    NameTrans fn="restart" uri="/index.dhtml"
    </If>{code}
    Let us know if it worked for you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Incorrect data from "table.getString" in jCO call to a Unicode SAP sys

    We have started getting java errors, with a local standalone java application, after we converted our SAP system to Unicode. The java application makes a RFC call to SAP and runs a functional module, which extracts payment data. The data is passed th

  • Using a rule to auto-populate fields

    I'm using InfoPath/SharePoint 2010. I work for a law firm and I am designing an InfoPath form for a SharePoint portal. We have a database will a list of matter numbers and names. One of the fields is called, Matter number and the other, Matter name. 

  • Open an excel file in a jsp

    using apache poi excel, i created a workbook and add that into the season and opened in new jsp by servletoutputstream(these are happening at onclick). first time it's working fine, if i try do it again without closing this jsp, I am getting the same

  • Credit card from customer

    Hi my client is looking for ability to indicate for any invoice which is being paid by credit card by customer to know  that an credit card payment is in process for an invoice (but the transfer has not been completed / or applied) Guide me step wise

  • Canned SAP Query

    Hi Experts, I know the process to create a SAP query, But i am facing some problem in adding the customised infotypes in that sap query. Can someone pls guide me to include the customer specific infotypes also in the SAP query. Regards Chifai