Setting parameters on search screen

Hello friends,
We have implemented a SAP note to provide the Z attributes on the product search screen. Now when these attributes were created some of the attributes had the value range.
let say attribute A has low value 10 and high value 15 . Now the customer wants that on the search screen we should display the drop down list on the attribute(A) with desription (10-15) .
If the user selects it then we should search products on the basis of the range of z attribute from 10 to 15.
Is there any way we can pass the value as low eq 10 and high 15 on the search screen?
Regards
Sohit Gulati

Enhance GET_DQUERY_DEFINITION and EH_ONSEARCH method of IMPL class. Build your query in GET_DQUERY_DEFINITION, this will solve the issue.
Rg,
Harshit

Similar Messages

  • Custom Search Screen Question

    I have a search screen where the user can enter multiple search criteria fields and click 'FIND' button.
    Below is the code behind the find button. As you can see if the use doesn't enter any of the search criteria
    then it is supposed to get all the records in the block BLI_DATA (this is a db block built on a view of a table).
    At the bottom of the BLI_DATA screen, there are two buttons 'OPEN' and 'CANCEL' (these belong to a diff. block called
    BLI_DATA_ACTION). Open opens up the record selected in BLI_DATA. Cancel cancels out of this and takes back
    to the search screen. That scenario works ok. Else if the user enters any of the criteria, then the dynamic where
    gets the required records. That works too.
    What is not working is, if I enter say state = 'LA' in the first pass and click find, it gets
    me the records for LA. Then if I click'CANCEL'and come back to the search screen, remove all the search criteria
    and now click 'FIND' in the 2nd pass, it still gets me the LA information.
    Code behind the FIND button
    DECLARE
      v_where varchar2(1000):=null;
      v_orderby varchar2(1000):='BLI_ID';
      al_id ALERT;
      al_button NUMBER;
    BEGIN     
    IF :BLI_SEARCH.BLI_STATE IS NULL AND :BLI_SEARCH.BLI_STORE_TYPE IS NULL
        AND :BLI_SEARCH.BLI_COUNTY IS NULL AND :BLI_SEARCH.BLI_COUNTY_NAME IS NULL
        AND :BLI_SEARCH.CITY IS NULL AND :BLI_SEARCH.GEO_IND IS NULL
        AND :BLI_SEARCH.BLI_PLAT_LEASE IS NULL AND :BLI_SEARCH.FORM_DATE_FROM IS NULL
        AND :BLI_SEARCH.BLI_LEASE_DATE_FROM IS NULL AND :BLI_SEARCH.FORM_DATE_TO IS NULL 
        AND :BLI_SEARCH.BLI_LEASE_DATE_TO IS NULL THEN
       --app_find.find('BLI_DATA');
       -- P_GET_BLI_DATA;
    --   v_orderby:=':BLI_ID ASC';
    --SET_BLOCK_PROPERTY('BLI_DATA',ORDER_BY,v_orderby);
      message('i am here' ||'-'|| :BLI_SEARCH.BLI_STATE);
      GO_BLOCK('BLI_DATA');
      Execute_Query(all_records);
      GO_BLOCK('BLI_DATA_ACTION');
      GO_ITEM('BLI_DATA_ACTION.OPEN'); 
    ELSE
         v_where := 'WHERE state = nvl( ''' || :BLI_SEARCH.BLI_STATE ||''',state)
                                       and concept =  nvl( ''' || :BLI_SEARCH.BLI_STORE_TYPE ||''',concept)
                                       and county_type = nvl( ''' ||:BLI_SEARCH.BLI_COUNTY ||''' , county_type)
                 and county_name = nvl( ''' || :BLI_SEARCH.BLI_COUNTY_NAME || ''', county_name)
                 and city = nvl( ''' || :BLI_SEARCH.CITY || ''', city)
                 and platform_lease = nvl( ''' || :BLI_SEARCH.BLI_PLAT_LEASE || ''', platform_lease)
                 and geo_ind = nvl ( ''' || :BLI_SEARCH.GEO_IND || ''', geo_ind)
                 and form_date >= nvl(to_date(''' || to_char(:BLI_SEARCH.FORM_DATE_FROM,'DD-MON-RR') || ''',''DD-MON-RR''),form_date)
                            and form_date <= nvl(to_date(''' || to_char(:BLI_SEARCH.FORM_DATE_TO,'DD-MON-RR') || ''',''DD-MON-RR''),form_date)
                 and lease_date >= nvl(to_date(''' || to_char(:BLI_SEARCH.BLI_LEASE_DATE_FROM,'DD-MON-RR') || ''',''DD-MON-RR''),lease_date)
                            and lease_date <= nvl(to_date(''' || to_char(:BLI_SEARCH.BLI_LEASE_DATE_TO,'DD-MON-RR') || ''',''DD-MON-RR''),lease_date)';
    SET_BLOCK_PROPERTY('BLI_DATA',DEFAULT_WHERE,v_where);
    GO_BLOCK('BLI_DATA');
    DO_KEY('execute_query');
    message('i am here1 ' ||'-'|| :BLI_SEARCH.BLI_STATE);
    IF :BLI_DATA.STATE IS NULL THEN
          al_id := Find_Alert('AOK');
         Set_Alert_Property(al_id, alert_message_text, 'No Records were found');
         al_button := Show_Alert(al_id);
         GO_BLOCK('BLI_SEARCH');
         GO_ITEM('BLI_SEARCH.BLI_STATE'); 
         RAISE FORM_TRIGGER_FAILURE;
    ELSE
      GO_BLOCK('BLI_DATA_ACTION');
      GO_ITEM('BLI_DATA_ACTION.OPEN'); 
    END IF;
    END IF;
    END;Code behind the CANCEL button:
    GO_BLOCK('BLI_DATA');
    CLEAR_BLOCK(NO_VALIDATE);
    GO_BLOCK('BLI_SEARCH');
    CLEAR_BLOCK(NO_VALIDATE);
    :BLI_SEARCH.BLI_STATE :=NULL;
    :BLI_SEARCH.BLI_STORE_TYPE:=NULL;
    :BLI_SEARCH.BLI_COUNTY:=NULL;
    :BLI_SEARCH.BLI_COUNTY_NAME:=NULL;
    :BLI_SEARCH.CITY:=NULL;
    :BLI_SEARCH.GEO_IND:=NULL;
    :BLI_SEARCH.BLI_PLAT_LEASE:=NULL;
    :BLI_SEARCH.FORM_DATE_FROM:=NULL;
    :BLI_SEARCH.FORM_DATE_TO:=NULL;
    :BLI_SEARCH.BLI_LEASE_DATE_FROM:=NULL;
    :BLI_SEARCH.BLI_LEASE_DATE_TO:=NULL;
    :BLI_SEARCH.BLI_LL_REF_CODE:=NULL;
    :BLI_SEARCH.BLI_LOC_TYPE:=NULL;
    :BLI_SEARCH.BLI_CLASSIFICATION:=NULL;
    show_view('BLI_SEARCH');
    GO_ITEM('BLI_SEARCH.BLI_STATE');
    hide_view('BLI_DATA');When I remove all the search criteria in the 2nd pass, why does it still get the LA information?
    Thanks,
    Chiru
    Edited by: Megastar_Chiru on Sep 21, 2010 9:44 AM

    I had a similar requirement and I put it in a procedure like this.
    PROCEDURE BUILD_WHERE_CLAUSE IS
      hold_clause varchar2(2000);
    BEGIN
          -- check location code and add condition if it is not null
       IF :key_block.locn_code IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (cwvcatr_locn_code = :key_block.locn_code)';
       END IF;
          -- check case type and add condition if it is not null
       IF :key_block.case_type IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (cwvcatr_ctyp_code = :key_block.case_type)';
       END IF;
          -- check action code and add condition if it is not null
       IF :key_block.cwvatyp_code IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (cwvcatr_cwvatyp_code = :key_block.cwvatyp_code)';
       END IF;
          -- check case assign day and add condition if it is not null
       IF :key_block.case_assn_day IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (upper(cwvcatr_case_assn_day) = upper(:key_block.case_assn_day))';
       END IF;
          -- strip off initial 5 characters ' and '
       IF hold_clause IS NOT NULL THEN
          hold_clause := SUBSTR(hold_clause,6);
       END IF;
       -- Set the DEFAULT_WHERE to newly built WHERE clause
       SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',DEFAULT_WHERE,hold_clause);
          -- Set the ORDER_BY clause
          IF :key_block.sort_by = 'C' THEN
                 SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',ORDER_BY,'cwvcatr_case_id');
          ELSE
                 SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',ORDER_BY,'cwvcatr_assn_date');
          END IF;
    END;So regardless of what user puts in parameters, the default where is set accordingly. If there is no parameter entered, it does not set anything. And if only one parameter is entered, only one condition is set and so on. This might be helpful in your case too.
    Edited by: Zaafran Ahmed on Sep 21, 2010 10:49 AM

  • Performance Issue with Search screen

    I am not sure to post on JSF or Hibernate forums. This one is for Performance Gurus
    I have a "Advance Search" screen built with JSF/Facelets/Ajax4JSF
    When i click on the link Advance Search it will take more than a minute to load the form.
    The screen has 21 form fields out of which 8 are dropdowns out of which 6 are populated while loading the form. They are like LookUp tables. The other two form fields dropdowns launch popups
    Now when i hit Search button it will go on for more than minute and most of the times it results in
    java.lang.OutOfMemoryError: Java heap space
    I am using Myeclipse and Tomcat.
    Here is the memory parameters from right clik eclipse properties
    "C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe" -vmargs -Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=164m
    In addition i have also set Tomcat properties in Myeclipse under "Optional JVM Arguments" as
    -Xmx1024m
    I am thinking of doing Hibernate Query Caching for populating dropdowns while loading the form
    Any other pointers/suggestions will be greatly appreciated

    Run a Profiler.

  • Transactional Iview passing parameters for search help window

    Hi Experts,
    I have to create a transaction ivew through which i need to pass parameters to search help window (having two entries ). In has to select the particular entry and then go to next step.
    Can somebody give me guide me how to do it as i couldn't fine correct answer in the existing forum answers.
    Regards,
    Suresh

    Hi Suresh,
    Have you read the [documentation|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm]?
    >ApplicationParameter
    >
    >You can enter parameter values for certain screen fields for displaying a SAP transaction here.
    >This field is optional.
    >
    >The parameter values are specified with the following syntax:
    >
    ><Screen_field1>=<Parameter1>
    >&<Screen_field2>=<Parameter2>
    >&<...>=<...>,...
    >
    >Process First Screen
    >
    >The possible values are trueand false. By default this field is defined as false. It is a required field.
    >
    >If the value is set to true, this corresponds to the input key function in the transaction. It takes effect if there are no required >fields in the transaction or if all the required values are maintained in the ApplicationParameter property.
    Regards,
    Pierre

  • How to change the default operators in sap web ui Search screen?

    How to change the default operators in sap web ui Search screen?
    For eg. Using advance search option , I have some fields with default operators like equals, contains,is between, is less than and is greater than. I don't need all these operators for this field.
    I need only "equals" operator. How do i remove the rest of the operators?

    There is a view cluster crmvc_dq where all the standard setting is present related to you r issue. Please try if you can modify that, that way you will avoid the code.
    Incase you are not able to make any changes there then in that case you have to redefine the method GET_DQUERY_DEFINITION () of the IMPL class to delete the operators for a particular serach field.
    Regards,
    Harshit

  • How to hide the dropdown box in my search screen

    hi,
    I am new to jsf. Here , i am posting the question first time.
    I am developing a search screen. I want to hide one dropdown box in that. can anybody help me on that?
    This is the code :
    <h:panelGrid rendered="true" width="100%" border="0" cellpadding="10" cellspacing="10" columns="2" styleClass="tabletext" style="vertical-align: top">
    <h:panelGrid rendered="true" border="0" columns="1" style="vertical-align: top;">
         <h:outputLabel rendered="true" value="Ranger District:"> </h:outputLabel>
         <h:panelGroup id="regionDropdown">
                                  <h:selectOneMenu rendered="true" id="rangerDistrict" value="#{energySearchBean.district}">                    
                                  <f:selectItems value="#{energySearchBean.districts}"/>
                   </h:selectOneMenu>     
                   </h:panelGroup>
              </h:panelGrid>
    </h:panelGrid>
    Thanks in advance.

    If you want to hide it at the server side, use the 'rendered' attribue and let its value evaluate to 'false'. If you want to hide it at the client side, use the CSS 'display' property and set it to 'none'.
    By the way, having 'rendered="true"' hardcoded in all components is superfluous. It is just the default value.

  • Google searches redirect to google search screen

    For past two days google searches will not allow me to reach a searched result. Touching the. Result redirects to the google search screen. Is anybody else experiencing this? Is it an iPad pr.oblem or a google problem? Is there anyway on the IPad to change the default search engine in Safari?

    Choose Setting > General > Safari > Clear history and Clear cookies.
    There you can also change the Search engine.

  • Fill Find edit box of Formatted search screen

    Hi,
    I have an edit box and a choose button.
    when I click on that choose button I get a formatted search screen.
    I want the value typed in the edit box to be defaulted in the
    Find Edit box of the foratted search screen.
    Say I type "1" in my edit box, My formatted search screen should pop up having "1"
    in the Find edit box and results pertaining to value "1"(like wild card search)
    should be displayed in the formatteed search screen.
    Can anyone tell me as how to implement this?

    The reference to $[x.0.0] was simply meant to point you towards using the formatted search syntax for selecting fields from the current screen for use in your query.
    The two techniques I mentioned were not meant to be used together, you could either use the sendkeys, or the $[x.0.0] syntax depending on which result you wanted.
    The $[x.0.0] syntax actually goes in the query that is saved for the formatted search, you don't need to do anything with it programatically at runtime, business one does it for you.  You can get a formatted search to pick values up from the current screen by using syntax such as $[$4.0.0] or $[$OINV.CARDCODE]. This particular example will pick up the cardcode from a document screen.  Look in the standard help file under Formatted Searches for more details.
    I have attached a sample query showing how it can be used with fields based on userdatasources in custom screens.  This one can be used to show product lookups out when the user has already keyed in a partial product code.  At runtime the $[#018.UItem] reference automatically gets replaced with the value currently in the item field.
    DECLARE @Item Varchar(20)
    SET @Item = RTRIM($[#018.UItem]) + '%'
    SELECT T0.ItemCode, T0.ItemName FROM OITM T0 WHERE T0.ItemCode LIKE @Item FOR BROWSE
    If you haven't seen this type of formatted search processing before, I would recommend you try to spend a little time learning it - it sometimes eliminates the need for writing SDK code at all.
    Regards,
    John.

  • Formatted Search screen - populate multiple fields

    I have an Employee Id field in my screen.
    On clicking Choose button,I use a Formatted Search screen to populate value to that field.
    I also have other fields like employee Name,department which should be populated, once an employee Id is chosen from Formatted Search screen.
    The functionality is like that of "Purchase Order screen".
    Once a vendor Id is chosen Name,Contact Person etc get populated in "Purchase Order screen".
    How do I do that?
    Should I trap the Choose button event of Formatted Search screen?
    Please help.

    I think all you are missing is a check to make sure you don't try and re-run the lookup when you are validating the return value from a previous lookup.
    I made a minor change to my code and achieved the behaviour you described.  I have extracted the relevant  code from the application .  Unfortunately it looses its indentation when I post it, so it might be quite hard to read.  It uses recordsets for the validation as in practice most of the real validation is more complex than this cut-down sample.
    This particular example is from a screen with a Customer Code prompt, and displays the customers name below it.
    Regards,
    John.
    <b>Constant holding menu uid of Formatted Search</b>
    Public Const AZU_MNU_SEARCH             As Long = 7425
    <b>Declare a variable at module level</b>
    Dim mblnCardLookup as Boolean
    <b>Create validation routine (cut down sample included)</b>
    Sub ValidateCustomer(sboApp As SAPbouiCOM.Application, sboCompany As SAbobsCOM.Company, BubbleEvent As Boolean)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "ValidateCustomer"
        Dim sboRecordset            As SAPbobsCOM.Recordset
        Dim sboForm                 As SAPbouiCOM.Form
        Dim sboDSCard               As SAPbouiCOM.UserDataSource
        Dim sboDSName               As SAPbouiCOM.UserDataSource
        Set sboForm = sboApp.Forms(strUID)
        Set sboDSCard = sboForm.DataSources.UserDataSources("UCARD")
        Set sboDSName = sboForm.DataSources.UserDataSources("UNAME")
        If sboDSCard.value <> "" Then
            Set sboRecordset = sboCompany.GetBusinessObject(BoRecordset)
            sboRecordset.DoQuery "Select CardCode, CardName, Currency From OCRD where CardCode Like '" & sboDSCard.value & "%'"
            If sboRecordset.RecordCount < 1 Then
                If sboDSName.value <> "" Then
                    sboDSName.value = ""
                    sboForm.Items("edtName").Update
                End If
                If Not mblnCardLookup Then
                    LookupCustomer sboApp
                End If
                BubbleEvent = False
                Exit Sub
            End If
            sboRecordset.MoveFirst
            sboDSCard.value = sboRecordset.Fields(0).value
            sboDSName.value = sboRecordset.Fields(1).value
            mstrCurrency = sboRecordset.Fields(2).value
            sboForm.Items("edtName").Update
        Else
            sboDSName.value = ""
            sboForm.Items("edtName").Update
            BubbleEvent = False
        End If
        Set sboDSName = Nothing
        Set sboDSCard = Nothing
        Set sboForm = Nothing
        Set sboRecordset = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Create lookup routine (cut down sample included)</b>
    Private Sub LookupCustomer(sboApp As SAPbouiCOM.Application)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "LookupCustomer"
        Dim sboForm                 As SAPbouiCOM.Form
        Set sboForm = sboApp.Forms(strUID)
        mblnCardLookup = True
        sboApp.ActivateMenuItem AZU_MNU_SEARCH
        Set sboForm = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Add the following code to the ITEMEVENT handler</b>
        'Validate Customer Code
        If pVal.EventType = et_VALIDATE And pVal.ItemUID = "edtCard" And pVal.Before_Action = False Then
            Call ValidateCustomer(sboApp, sboCompany, BubbleEvent)
        End If
        'Customer Code Lookup on TAB Key
        If pVal.EventType = et_KEY_DOWN And pVal.ItemUID = "edtCard" And pVal.Before_Action = True And pVal.CharPressed = 9 Then
            Set sboDSCard = sboApp.Forms(strUID).DataSources.UserDataSources("UCARD")
            If sboDSCard.value = "" Then
                LookupCustomer sboApp
                BubbleEvent = False
            End If
        End If
        'Force Validation on Return from Lookup
        If pVal.EventType = et_FORM_ACTIVATE And mblnCardLookup = True Then
            sboApp.Forms(strUID).Items("edtRef").Click
            mblnCardLookup = False
        End If

  • Search Screen with session id as a parameter

    Hi All,
    I have a search screen which will have 3 parameters as 2 input text field and 1 session value (login id).
    When user login into the application, i store the login id in session for further transaction in the application.
    Now in my search screen I designed the page with 2 input field as a parameter.
    When i click the search button, i am invoking the search method from session EJB through backing bean action method.
    i.e. searchRecord (param1, param2, loginid) --- method in EJB
    In Backing bean,
    searchRecord_Action() {
    login id -- from session
    param 1 -- input text
    param 2 -- input text
    calling searchRecord (param1, param2, loginid);
    Result is not coming because of the below reason.
    When i check the log file, the method is calling twice. First time with 3 parameters
    Select * from Table where param1 = 1 and param2 = 2 and login id = 3
    values and second time 3 parameter is null. Because of that no search record is found.
    Select * from Table where param1 = 1 and param2 = 2 and login id is null.
    How to pass login id as a conditional parameter to the query.
    Thanks & Regards
    Vimalan Balan

    Dear Friend,
    I am new to ADF. I am not sure i am using ADF as a binding layer. But i am binding the parameter into my backing bean.
    More over when i click the search button, it directly invokes the method in the EJB and after that only the backing bean method is calling. How to stop the initial call when click the search button.
    The below code in the pagedef file.
    <methodIterator id="searchPaymentOrderIter"
    Binds="searchPaymentOrder.result"
    DataControl="POMasterDetailSessionEJBLocal" RangeSize="10"
    BeanClass="mof.egov.portal.model.EgovPaymentorderMaster"/>
    <invokeAction id="tableRefresh" Binds="searchPaymentOrder"
    RefreshCondition="${(valueHolder.refresh) and (!adfFacesContext.postback)}"/>
    <methodAction id="searchPaymentOrder" MethodName="searchPaymentOrder"
    RequiresUpdateModel="true" Action="999"
    IsViewObjectMethod="false"
    DataControl="POMasterDetailSessionEJBLocal"
    InstanceName="POMasterDetailSessionEJBLocal.dataProvider"
    ReturnName="POMasterDetailSessionEJBLocal.methodResults.POMasterDetailSessionEJBLocal_dataProvider_searchPaymentOrder_result">
    <NamedData NDName="poNumberFrom" NDType="java.lang.String"
    NDValue="${bindings.searchPaymentOrder_poNumberFrom}"/>
    <NamedData NDName="poNumberTo" NDType="java.lang.String"
    NDValue="${bindings.searchPaymentOrder_poNumberTo}"/>
    </methodAction>
    Thanks & Regards
    Vimalan Balan

  • Not able to display and search on CLOB attribute in default search screen

    Hi,
    My requirement:
    I have three VARCHAR attributes and 1 CLOB attribute. i need to search the values on these 4 attributes.
    Created View crieteria on these 4 attributes and created default ADF search screen. but not able to add the CLOB attribute as search attribute.
    is there any solution for this or we can't search on CLOB attribute.
    FYI: i have created Converter using ClobDomain and and using this converted for editing the CLOB data.
    If i try adding the CLOB attribute in view criteria with ClobDomain and not able to see that attribute on search panel.
    Please help on this.
    Thanks in advance!!
    Thanks & Reagrds,
    Madhu

    Madhu, please tell us your jdev version!
    The search is done on the DB (query) so the converter is not used. To search clob columns you can use special SQL statements called contains or catsearch. These are using special index to find the data in blob or clob columns.
    Check my blog on how to integrate this into VC: http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
    Timo

  • Required values should be displayed in forst search screen for Variable

    HI Gurus
    I have a Variable CUSTOMER which has 20000 values. In the first search screen we are getting 1 to 1000 values by default ( I have selected 1000 in properties). But I want the Values between 6000 to 7000. Is it possible?
    Thanks in advance.
    Best Regards
    Raj

    Hi
    I want to give single value in between 6000 to 7000. The single values which appear in first search should not be 1 to 1000. It must be 6000 to 7000
    Thanks
    Raju

  • Why is it that when I go to the search screen to find a particular message in a conversation it comes up with the message but when I click on it it takes me to the conversation where the most recent message was sent and not the message I wanted

    Why is it that when I go to the search screen and type in a particular message I want to view, my iPhone finds it but when I click on it it only takes me to the conversation at the most recently thing texted and not the particular message I clicked on?

    Never occurred to me you can search messages that way, thanks.
    Another way to do it is to scroll from the most recent message to the top of the screen and tap load more messages, repeatedly till you reach the one you want.
      I like your method better, but with both methods it refreshes to the most recent message.

  • What options do I have if I want to set up a dual screen?

    I have a Thinkpad T400 with a ATI Radeon HD3470 card. I am running the latest Arch x86_64 with Fluxbox and the 9.4 Catalyst drivers.
    What is the easiest solution to set up a dual screen? Is there a way to do this without editing xorg.conf? Not that editing xorg.conf really is a big problem, but I will be moving around a bit and finding the correct settings for each screen would take some work. And I would like to see how far the dual screen development has come on GNU/Linux.
    The way I see it the best way would be to have two screens with separate resolutions. Since LCD screens do not handle resolutions other then the native very well. So just stretching the screen makes the slave screen run the same height as the parent screen. Or am I wrong? It is not a problem running stretched if the screens run at the native resolution.
    So, xrandr just gives me stretching. And the need of editing xorg.conf.
    What about Twinview(just for nVidia) and Xinerama?
    Is there other solutions?
    SOLUTIONS:
    There is arandr and lxrandr, both frontends to xrandr. Requires minimal xorg.conf editing. Only add a virtual line in the screen section. The virtual size does not have to be accurate, it only have to be bigger then the screens together. In my case, I have a 1440x900 primary screen and at most a 1280x1024 secondary screen. So my virtual size would be minimum 2720x1024. This is with the screens side by side. If the screens is one above the other it would be 1440x1924.
    The exact size of the monitor is handled by xrandr(arandr or lxrandr). So, there will be no dead zone in the width(side by side solution), if the real height is different on the screen there will be a dead zone in height.
    Using arandr or lxrandr means that you manually have to set this up each time the computer is restarted. To automate this, you can use xrandr. First do a
    # xrandr
    Screen 0: minimum 320 x 200, current 2464 x 900, maximum 2720 x 1024
    LCD connected 1440x900+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
    1440x900 50.0*+ 60.2
    1152x864 60.0 50.0
    1280x768 59.9 50.0
    1280x720 60.0 50.0
    1024x768 60.0 50.0
    800x600 60.3 50.0
    720x480 60.0 50.0
    640x480 60.0 50.0
    640x400 59.9 50.0
    512x384 60.0 50.0
    400x300 60.7 50.0
    320x240 60.0 49.9
    320x200 60.1 50.0
    DFP1 disconnected (normal left inverted right x axis y axis)
    CRT1 connected 1024x768+1440+0 (normal left inverted right x axis y axis) 304mm x 228mm
    1024x768 60.0*+ 75.0 70.1 60.0*
    800x600 72.2 75.0 70.0 60.3 56.2
    720x480 60.0
    640x480 75.0 72.8 75.0 60.0
    640x400 75.1 59.9
    512x384 60.0 74.9
    400x300 75.0 60.7
    320x240 75.6 60.0
    320x200 75.5 60.1
    to find out where the screens are connected. Mine are LCD and CRT1. Then test with
    # xrandr --output CRT1 --right-of LCD
    to see if you get a stretched desktop. If this works, just add the last line to your .xinitrc
    This solution gives you stretching.
    My complete xorg.conf
    # Copyright 2004 The X.Org Foundation
    Section "ServerLayout"
    Identifier "Laptop"
    Screen 0 "Default" 0 0
    EndSection
    Section "ServerFlags"
    Option "AutoAddDevices" "True"
    EndSection
    Section "Monitor"
    Identifier "LCD"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "radeon_hd"
    Driver "fglrx"
    BusID "PCI:1:0:0"
    EndSection
    Section "Screen"
    Identifier "Default"
    Device "radeon_hd"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1440x900" "1024x768"
    Virtual 2720 1024
    EndSubSection
    EndSection
    Section "DRI"
    Mode 0666
    EndSection
    Last edited by orjanp (2009-05-01 09:33:55)

    I have an ATI Mobility x1600 on my laptop,and I use a separate CRT monitor as second output (well primary until I fix my backlight)
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    Screen 1 "Screen1" RightOf "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "USB Mouse" "CorePointer"
    EndSection
    Section "ServerFlags"
    Option "AllowMouseOpenFail" "true"
    Option "AutoAddDevices" "False"
    Option "DontZap" "False"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/local"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    EndSection
    Section "Module"
    Load "ddc"
    Load "drm"
    Load "dbe"
    Load "dri"
    Load "extmod"
    Load "glx"
    Load "bitmap"
    Load "freetype"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbVariant" ""
    EndSection
    Section "InputDevice"
    Identifier "USB Mouse"
    Driver "mouse"
    Option "Device" "/dev/input/mice"
    Option "SendCoreEvents" "true"
    Option "Protocol" "IMPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "5"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    Option "DPMS" "No"
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    Option "DPMS" "No"
    ModeLine "1024x768" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync Interlace
    ModeLine "1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
    ModeLine "1024x768" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
    ModeLine "1024x768" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
    ModeLine "1024x768" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
    ModeLine "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine "1280x1024" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
    ModeLine "1024x768" 113.31 1024 1096 1208 1392 768 769 772 814 -HSync +Vsync
    ModeLine "1280x1024" 190.96 1280 1376 1520 1760 1024 1025 1028 1085 -HSync +Vsync
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "ati"
    VendorName "ATI Technologies Inc"
    BoardName "M56P [Radeon Mobility X1600]"
    BusID "PCI:1:0:0"
    Option "AGPMode" "4"
    Option "ColorTiling" "on"
    Option "AccelMethod" "EXA"
    Option "AGPFastWrite" "yes"
    Option "DRI" "on"
    Screen 0
    Option "DDCMode" "True"
    Option "MonitorLayout" "LVDS,CRT"
    EndSection
    Section "Device"
    Identifier "Card1"
    Driver "ati"
    VendorName "ATI Technologies Inc"
    BoardName "M56P [Radeon Mobility X1600]"
    BusID "PCI:1:0:0"
    Option "AGPMode" "4"
    Option "ColorTiling" "on"
    Option "AccelMethod" "EXA"
    Option "AGPFastWrite" "yes"
    Option "DRI" "on"
    Screen 1
    Option "DDCMode" "True"
    Option "MonitorLayout" "LVDS,CRT"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1280x800" "1024x768"
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Card1"
    Monitor "Monitor1"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1024x768"
    EndSubSection
    EndSection
    Section "DRI"
    Mode 0666
    EndSection
    Section "Extensions"
    Option "Composite" "false"
    EndSection
    This works, and I get separate resolutions on the monitors. I tried using radeonhd but then the resolution on teh second monitor goes to some crappy values(which I figure are calculated proportionally to the 1280x800 one).

  • After upgrading to Mavericks MacBook hangs at "Setting Up Your Mac" screen

    After upgrade install of Mavericks, and logging in successfully one time my MacBook (aluminum unibody late 2008) now hangs at the "Setting Up Your Mac" screen after logging in with password. I can restart the unit with the power button but same thing happens. I powered off the unit, removed the battery and held the power button down for 30 seconds, re-installed the battery and restarted the unit but same thing happens.

    Hold the Power button to turn off your computer and turn it on again. Then, see if Mavericks can start up.
    If not, hold Command and R keys while your computer is starting and reinstall Mac OS X

Maybe you are looking for

  • Call a function in a where clause of a select

    hello, is it possible to call a function in a where clause of a select???? ex: select col1, col2 from my_table where my_package.my_function(32199, 2008, col3, 'P'); and i have error message "ORA-00920: invalid relational operator" FUNCTION my_functio

  • Add microsoft's jdbc driver for sql server 2000  to wls6.1 appear error!

    Hi, According to wls's guide,I modify wls's start script(startWeblogic.bat),add jdbc driver path to CLASSPATH, Howere,I create connect pool,Erorr report: No suitable driver find! This show jdbc driver isn't at System classpath. So , how do I?? regds

  • ..........query in the report issue..............

    There is a table which contains all the records for a certain CID. CID, area,city... cid1 area1 cid2 area2 cid3 area3 cid4 area4 cid5 area44 cid6 area55 ANother table have the columns. CID, NCID, totalequipment.... Now i would like to have a list of

  • Can't get rid of mactune pro software or notifications

    I was mistaken in downloading mactune pro. I can't get rid of the notifications it keeps giving me , despite having trashed the software and deleted the download, including the desktop alias I created. I have searched my iMac and there appears to be

  • Safari Crashes after Software Update, Java Update

    Dear Support: I've recently updated to Lion 10.7.3, had it for a few weeks with few problems. I had 6 software updates to install, including a Java update, so I installed.  I allowed the laptop to restart and left the room. When I came back a few min