Read-only radiogroup with default doesn't save state in 2.0

Hi,
I upgraded to HTMLDB 2.0 and noticed a change in behavior. Namely, when I have a read-only radio group with a default value and a not-null validation, the validation claims fails although a radio button is selected from the disabled radio group.
Here's a small app I generated to demonstrate the issue:
http://htmldb.oracle.com/pls/otn/f?p=34464
Go there and try to create a new EMP.
The only things added after the generation are:
1. Not-null validations on several of the fields
2. Changed MGR to a "Select List"
3. Changed DEPTNO to a radio group with these properties:
a) default value type: static; default value: 20
b) read-only when: P2_EMPNO is Null
This used to work fine in 1.6 - namely, the default value got it to the session state and consequently the validation succeeded and the new record was created with the default value.
It also works fine if the Radio Group is not read-only.
I was able to fix the problem by adding a calculation to the P2_DEPTNO item to set the default value there. This of course does not show the default on the form for the new record, so I had to keep the default on the item level as well - which is a potential source of bugs when those two defaults somehow get different values (e.g., when I change only one of them and forget about the other) - the user will see one thing displayed while another will be saved. So any solutions involving keeping the default value on only one place AND visible to the end user when creating new records are welcome.
I haven't had time yet to test with other item types - maybe next week...
Have a nice weekend!
Flado

Scott,
Yes, in 1.6 this used to work fine - the radiogroup was displayed as disabled, and the default value was selected, and the not-null validation succeeded, and all I did was set the default value of the radiogroup. I have no 1.6 environment anymore to test it, but I'm sure it was working, because after I upgraded to 2.0, it stopped working and I got a bug report from a user very, very quickly :-(.
By "adding a calculation to the P2_DEPTNO item" I mean "adding a computation of the P2_DEPTNO item to the page". Sorry about me being lazy here. It was (still is, in my production application) a conditional after-submit computation (if <primary key item> is null, set <radiogroup item> to <default value>)
Thank you for the suggestion. I implemented it in the demo app. What I did was:
1. remove the default value from P2_DEPTNO
2. Add an unconditional after-header computation that assigns P2_DEPTNO with the static value 20
I am able to create new EMPs now, but nothing is selected in the disabled radiogroup on the create page, although the value 20 is saved in the session state before the items are rendered, according to the debug info (you can try it out and see).
To recap, I still need to keep the default value in two places: default of the radiogroup (to get it displayed on the create form), and in a computation (to set the session state).
Cheers,
Flado

Similar Messages

  • SP2013 and Project 2013 - project files open in read-only mode with no options to edit only Save As

    Hi all,
    Environment:
    SharePoint 2013 (15.0.4420.1017)  RTM
    Windows 8 - Project 2013 (15.0.4433.1506) 32Bit
    Issue details:
    When opening .mpp files stored within SharePoint they are opened successfully within Project 2013 however they are opened in Read-Only mode with no options to edit/check out only Save As.  The
    same outcome is experienced if you click the document link within SharePoint or you chose to edit from the document menu. 
    Opening the file through windows explorer also opens only in read-only mode.
    To date we’ve tested the following
    Windows 7 – Office 2010 = working as expected
    Windows 8 – Office 2010 = working as expected
    Windows 7 – Office 2013 = opening as read only, no prompt to edit
    Windows 8 – Office 2013 – opening as read only, no prompt to edit
    Current thinking is that it is an issue with either the SharePoint Office Documents Class ActiveX control or Project 2013 itself interacting with SharePoint 2013.
    We have tested this in multiple SP2013 environments with the same outcomes.
    The workaround therefore is to save locally and then upload again which is not ideal.
    Unable to find an exact issue match to this.
    Any help with this appreciated.

    Hi Dan,
    For us after investigating this further it was found that using the document menu to edit or checkout and then edit results in the project file being opened in read-only mode. 
    The same issue was present for Visio files.
    Using the FILES ribbon menu results in the document being opened in edit mode successfully in both Project and Visio.
    Please note that we found that this issue only exists within document libraries where checkout is required to edit which was our case.  If checkout is not required the document
    menu can also be used as expected.
    Cheers,
    Dan

  • Error when opening XLSX file with Excel 2003 SP3, file does open but in read only mode with temporary name

    I am using Excel 2003 SP3 and have the Office 2007 compatibility pack installed.  When I open Office 2007 formatted Excel files (XSLX) directly in Windows Explorer, I receive the following error if I do not have Excel already opened:
    "Windows cannot find '<path to file>'.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
    Even though I receive the error, the file does open; however, it opens in Read Only mode with a name such as "Xl0000024.xls".  The number seems to increment up each time it happens.
    Now here is the strange part.  If I have Excel already open and try to open the file in Windows Explorer, the file opens fine in Modify mode with no error and with the correct file name.
    I Googled the error I was getting and found KB211494.  It says I should uncheck the box in Options on the General tab that says "Ignore other applications", but this box is already unchecked in my case.  Any other ideas?  This is
    really frustrating as a small percentage of our company has upgraded to Office 2007 with the rest still on Office 2003.

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • BUG: ADF BC read-only VO with no Key attrs + af:table

    Hello all,
    I've got a bug to report - quite easily reproducable with the HR demo schema. To see it:
    1). Create a new application from the ADF BC + Faces template
    2). Create a read-only VO, use "SELECT employee_id, first_name from employees" and order by "employee_id" - take the defaults for everything - do not set any key attributes.
    3). Create an AM, add the VO to it's data model. Turn off AM pooling in the configuration.
    4). Create a JSPX page. Drag-drop the VO from the data control palette as an ADF read-only table - with selection
    5). Bind the actionlistener of the "submit" button to a backing bean method that just system.out.println's something.
    Now, run the app. Try selecting an employee from the first page (records 1-10) and clicking submit - it works. Now, scroll to the second set of records, select one and click submit - no message appears - the action listener is never called. No errors are thrown.
    Workaround: ensure the VO has employee_id selected as a key attribute.
    My code is at the bottom for reference.
    Cheers,
    John
    untitled1.jspx:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html>
          <afh:head title="untitled1">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <af:messages/>
            <h:form>
              <af:table value="#{bindings.emp1.collectionModel}" var="row"
                        rows="#{bindings.emp1.rangeSize}"
                        first="#{bindings.emp1.rangeStart}"
                        emptyText="#{bindings.emp1.viewable ? 'No rows yet.' : 'Access Denied.'}"
                        selectionState="#{bindings.emp1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.emp1.collectionModel.makeCurrent}">
                <af:column sortProperty="EmployeeId" sortable="false"
                           headerText="#{bindings.emp1.labels.EmployeeId}">
                  <af:outputText value="#{row.EmployeeId}">
                    <f:convertNumber groupingUsed="false"
                                     pattern="#{bindings.emp1.formats.EmployeeId}"/>
                  </af:outputText>
                </af:column>
                <af:column sortProperty="FirstName" sortable="false"
                           headerText="#{bindings.emp1.labels.FirstName}">
                  <af:outputText value="#{row.FirstName}"/>
                </af:column>
                <f:facet name="selection">
                  <af:tableSelectOne text="Select and">
                    <af:commandButton text="Submit" actionListener="#{abc.click}"/>
                  </af:tableSelectOne>
                </f:facet>
              </af:table>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>abc.java:
    import javax.faces.event.ActionEvent;
    public class abc
      public abc()
      public void click(ActionEvent actionEvent)
        System.out.println("click");
    }emp.xml (View Object):
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <ViewObject
       Name="emp"
       OrderBy="employee_id"
       BindingStyle="OracleName"
       CustomQuery="true"
       ComponentClass="model.empImpl"
       UseGlueCode="false" >
       <SQLQuery><![CDATA[
    select employee_id, first_name
    from employees
       ]]></SQLQuery>
       <DesignTime>
          <Attr Name="_isExpertMode" Value="true" />
          <Attr Name="_version" Value="10.1.3.39.84" />
          <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess" />
       </DesignTime>
       <ViewAttribute
          Name="EmployeeId"
          IsUpdateable="false"
          IsPersistent="false"
          IsNotNull="true"
          Precision="6"
          Scale="0"
          Type="oracle.jbo.domain.Number"
          ColumnType="NUMBER"
          AliasName="EMPLOYEE_ID"
          Expression="EMPLOYEE_ID"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_DisplaySize" Value="22" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="FirstName"
          IsUpdateable="false"
          IsPersistent="false"
          Precision="20"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="FIRST_NAME"
          Expression="FIRST_NAME"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_DisplaySize" Value="20" />
          </DesignTime>
       </ViewAttribute>
    </ViewObject>appModule.xml:
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE AppModule SYSTEM "jbo_03_01.dtd">
    <AppModule
       Name="AppModule"
       ComponentClass="model.AppModuleImpl" >
       <DesignTime>
          <Attr Name="_isCodegen" Value="true" />
          <Attr Name="_version" Value="10.1.3.39.84" />
          <Attr Name="_deployType" Value="0" />
       </DesignTime>
       <ViewUsage
          Name="emp1"
          ViewObjectName="model.emp" >
       </ViewUsage>
    </AppModule>bc4j.xcfg:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
       <AppModuleConfigBag>
          <AppModuleConfig name="AppModuleLocal">
             <DeployPlatform>LOCAL</DeployPlatform>
             <JDBCName>local_hr</JDBCName>
             <jbo.ampool.doampooling>false</jbo.ampool.doampooling>
             <jbo.project>Model</jbo.project>
             <jbo.ampool.dynamicjdbccredentials>false</jbo.ampool.dynamicjdbccredentials>
             <AppModuleJndiName>model.AppModule</AppModuleJndiName>
             <ApplicationName>model.AppModule</ApplicationName>
          </AppModuleConfig>
       </AppModuleConfigBag>
       <ConnectionDefinition name="local_hr">
          <ENTRY name="JDBC_PORT" value="1521"/>
          <ENTRY name="ConnectionType" value="JDBC"/>
          <ENTRY name="HOSTNAME" value="localhost"/>
          <ENTRY name="DeployPassword" value="true"/>
          <ENTRY name="user" value="hr"/>
          <ENTRY name="ConnectionName" value="local_hr"/>
          <ENTRY name="SID" value="STGY"/>
          <ENTRY name="password">
             <![CDATA[{904}05DB46A9C39F51D1A4814423FFD9297C71]]>
          </ENTRY>
          <ENTRY name="JdbcDriver" value="oracle.jdbc.OracleDriver"/>
          <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
          <ENTRY name="DeployPassword" value="true"/>
       </ConnectionDefinition>
    </BC4JConfig>

    Hi,
    reproduces for me. It appears that the parameter is not applied properly when executing the query.
    Frank

  • XML FORM  -  How to save read-only controls with a default value

    Hello everybody,
    I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common in the 3 forms, in order to use it on searches.
    The question is, how can I include in this forms a control:
      - Visible for the user
      - With a default value defined in the control properties (each form has a different value, corresponding with the type of news)
      - Read-only mode
      - The value showed in the control must be saved in the associated KM Predefined Property when the user clicks the Save button. 
    Anyone knows how to do this?
    What control can I use?
    I was thinking of trying with text boxes, but I don't find the way to make them unwritable (Read only mode).
    It is posible using labels?
    Thanks.
    Kind regards

    Hello Jose,
    I know you responded with a question... I see it in the email, but I don't see it here!  Very odd... but in response:
    The first thing I do when I open the Edit.xsl file is do a 'find' for the name of the text field that I want to be read-only (in my test case, it's 'location').  Repeat the find until you see something like:
    [code]<!--
    field location
    -->[/code]
    Below there is where I put the new code.  Mine looks like this:
    [code]- <xsl:choose>
    - <xsl:when test="location='' and ($editmode='create')">
    - <xsl:choose>
    - <xsl:when test="./xf:ValidationError/@tagname='location'">
    - <input name="location" size="30" type="text" class="urEdfiTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="tabindex">
    - <xsl:choose>
      <xsl:when test="$accessibilitymode='true'">21</xsl:when>
      <xsl:otherwise>3792</xsl:otherwise>
      </xsl:choose>
      </xsl:attribute>
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:when>
    - <xsl:otherwise>
    - <input name="location" size="30" type="text" tabindex="3792" class="urEdfTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:otherwise>
      </xsl:choose>[/code]
    I put the <xsl:attribute name="readonly"> in both places (when test, and when not test).  I'm not entirely sure if that's necessary, but that worked for me.
    Hope this helps,
    Fallon

  • Conditional read only radiogroup item losing value when saving

    Apex 3.2
    I have a radiogroup item that is set to read only after it's populated and the user is not in the ADMIN Role. When non ADMIN users edit the page, it shows the value and they cannot change it, but if they save the page, it loses the value. Works fine if the user has ADMIN role.
    This is the Pl/SQL function in the "Item is read only when" section
    begin
    if :p3_event_detail_id is not null and :p3_notification_period_id != -1 and not apex_util.public_check_authorization('ADMIN') then
    return true;
    else
    return false;
    end if;
    end;
    There is also a Not Null validation on this radiogroup item.
    I changed the item type to select list and it works fine, but user like the radiogroup button.
    Any ideas?

    It's using a shared component LOV cleverly called LOV_YN which consists of a static LOV with
    1 Display=Yes, Return=Y
    2 Display=No, Return=N
    The settings in the LOV section on the item iteself:
    Named LOV: LOV_YN
    Display Extra values: No Dynamic translation: Not translated
    Number of columns: 2 Display null: No
    Null display value is blank as is null return value
    Item was setup as a radio group and was only converted over to a select list to work around this issue. Let me know what else you need and thanks again.
    Rgds/Mark M.

  • Can no longer select text in email template or read only field with mouse using IE or Firefox?

    Hi Guys,
    I can no longer select text in email template or read only field using my mouse in IE or Firefox anymore. We are using CRM 2011 rollup 18 applied with IE 11 and the latest version of Firefox. We only applied roll up 18 in Feb when this issue began.
    Thanks
    Dave
    David Kelly

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these. While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    These features rely on JavaScript, and it sounds as though you have scripting enabled if you get (the wrong) color changes. Some add-ons might alter the way scripts operate, so a standard diagnostic to bypass interference by extensions (and some custom settings) is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode."
    If those features work correctly, this points to one of your extensions or custom settings as the problem.
    To also disable plugins, you can use this page:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Plugins category
    Any change?

  • Read only error message when trying to save updates in Acrobat 10.6.3

    Hello
    Hopefully I'm missing something obvious here but when I try to edit a PDF in Acrobat 10.6.3 I receive a read only error message, I have been using 'Save As' and tweaking the name each time but this seems to be a clumsy way to go about a simple save.
    I am on a network and have read a previous thread that explained Adobe can sometimes be flakey on networks for saving PDFs.
    Any suggestion gratefully received.

    You may be stuck with copying the files locally and editing and then copying back to the network drive. I am not good with networks, but have noticed posts about network problems over the years -- often focused on specific networks. The solution is typically to deal with the PDFs locally and then copy to the network. In creating PDFs, it seems that some of the results had to do with the TMP folder usage, but I have no clue why.
    As far as AA 10.6.3, you must have a cloud version or something. The latest AA is 10.1.7.

  • Mail Version 7.3 gives me this location is read-only error when I try to save messages to my hard drive even though I have full permissions to use the folders

    Mail is suddenly not allowing me to save Mail messages (nor attachments) to my hard drive.  Insists that the location is read-only, which it's not (I've checked and rechecked the folder permissions).  I'm the only person who uses my computer.  Anyone else having issues?  Mail has also been quitting off and on lately; never used to crash -- ever.
    System 10.9.3.

    The method of resetting the Home folder preferences posted by Linc Davis might help you:
    Linc Davis
    Re: Reset Home Folder Permissions and ACLs not working?
    This helped meRe: Reset Home Folder Permissions and ACLs not working?
    Apr 30, 2014 10:06 PM (in response to plcmms)
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • Read-only problem with sun one

    hello
    i have mounted yestarday a file in which i have created an ejb call Client. Today i have unmounted the file with the ejb Client and i have mounted an other file in which i have created an ejb called Client. Now i can't no more manipulate the first ejb and the second ejb (adding method for example). The error message is: the ejb is read-only !
    I don't know if this is a bug or a protection but how i can desctivate that please ?

    ok i find it. There was hidden mounted jar in the
    option of filesystem ... why, i don't know exaclty at
    this moment but now it's ok. If somebody knows
    something about that.
    thank'a lotWere you working with an application client module, specifically executing them? This can cause files to be mounted.

  • DFSR Read-Only - Problems with Disaster Recovery?

    Hi guys,
    I have (2) 2008 R2 file servers.  One is production and one is for DR.  First, I have to make sure that the DR server never writes back to production in any situation.  The means that if the (2) servers stop communicating with each other
    and data is deleted off the production server, the read-only DR server does not put deleted files back onto the production server when connection is restored, etc.  It sounds like I am covered there.
    The question is what happens if production server crashes and I now want to change the DR server to production?  Does the data on the D/R member still have the same NTFS permissions?  It sounds like it does, but would I then just go into dfsmgmt.msc
    and mark the replicated folder as read-write, force AD replication, run a dfsrdiag pollad, and then redirect the users to the DR server?  I know the content may not be 100%, but the back-up plan has always been to disablestrictnamechecking, change
    the host record for the production server to the IP address of the DR server, and redirect users there for 99% of the data.  I think that files that were open on the production server that crashed would not have had their updates replicated across. 
    Let me know if that would work from the DFS side of things
    Dan Heim

    Hi Dan,
    I think this article provided an answer to your question:
    Read-Only Replication in R2
    http://blogs.technet.com/b/askds/archive/2010/03/08/read-only-replication-in-r2.aspx
    An RW replicated folder can be converted to an RO replicated folder (and back) “on the fly”.
    Converting will cause a non-authoritative sync to occur on the replicated folder for the server being altered. 
    If you have any feedback on our support, please send to [email protected]

  • Read-only table with a LOV on a VO's attribute

    Hi,
    I have a VO ('X') that is displayed as a read-only table. 'X' has an attribute called 'SubscriptionId'. The value of 'SubscriptionId' is a foreign key to another table called 'Subscription'. My 'Subscription' database table has a column named 'Description'.
    Example:
    'X' has an attribute 'SubscriptionId' = 14
    DB table 'Subscription' has a row that looks like this:
    14, "A subscription description" (where "A subscription description" is the 'Description' column)
    I set up a LOV for 'SubscriptionId' on my VO 'X', so that it should show the value of 'Description' from 'Subscription' instead of the 'SubscriptionId'.
    If I display my VO 'X' as a form, I can see my LOV (for 'Description').
    However, when I display my VO ('X') as a read-only table, it isn't adhering to the LOV I defined on my VO, and is instead showing the 'SubscriptionId'.
    What do I need to do differently on my table to show the 'Description' instead of the foreign key 'SubscriptionId'? I want it to be just an output text of the Description, not a choice list.
    Thanks,
    Joel

    Hi
    In simple way just set the ReadOnly property of choice list in the coloum = true
    for example
    <af:column sortProperty="EmpId" sortable="true"
    headerText="#{bindings.DocTransactionView1.hints.EmpId.label}"
    id="c2" align="center">
    <af:selectOneChoice value="#{row.bindings.EmpId.inputValue}"
    label="#{row.bindings.EmpId.label}"
    required="#{bindings.DocTransactionView1.hints.EmpId.mandatory}"
    shortDesc="#{bindings.DocTransactionView1.hints.EmpId.tooltip}"
    id="soc4" readOnly="true">
    <f:selectItems value="#{row.bindings.EmpId.items}" id="si3"/>
    </af:selectOneChoice>
    </af:column>

  • Building kernel module, works only fine with default kernel26-headers

    I am trying to build the phc-k8 package from the AUR.
    I had to adapt the PKGBUILD a bit. The problem is it seems to want to have certain headers (a lot of headers, actually) in asm/ that are present in asm-generic/ in the kernel26-headers package and are in the same location in my own kernel package (which doesn't have the headers split out).
    This is how the asm* directories look:
    [stijn@hermes phc-k8]$ ls /usr/src/linux-2.6.32-ARCH/include/asm*
    /usr/src/linux-2.6.32-ARCH/include/asm:
    asm-offsets.h bitsperlong.h
    /usr/src/linux-2.6.32-ARCH/include/asm-generic:
    4level-fixup.h bugs.h dma-mapping-common.h ioctl.h local.h param.h sections.h stat.h uaccess.h
    atomic64.h cacheflush.h emergency-restart.h ioctls.h memory_model.h parport.h segment.h string.h uaccess-unaligned.h
    atomic.h cache.h errno-base.h io.h mman-common.h pci-dma-compat.h sembuf.h swab.h ucontext.h
    atomic-long.h checksum.h errno.h iomap.h mman.h pci.h serial.h syscall.h unaligned.h
    audit_change_attr.h cmpxchg.h fb.h ipcbuf.h mm_hooks.h percpu.h setup.h syscalls.h unistd.h
    audit_dir_write.h cmpxchg-local.h fcntl.h irqflags.h mmu_context.h pgalloc.h shmbuf.h system.h user.h
    audit_read.h cputime.h futex.h irq.h mmu.h pgtable.h shmparam.h termbits.h vga.h
    audit_signal.h current.h getorder.h irq_regs.h module.h pgtable-nopmd.h siginfo.h termios-base.h vmlinux.lds.h
    audit_write.h delay.h gpio.h Kbuild msgbuf.h pgtable-nopud.h signal-defs.h termios.h xor.h
    auxvec.h device.h hardirq.h Kbuild.asm mutex-dec.h poll.h signal.h timex.h
    bitops div64.h hw_irq.h kdebug.h mutex.h posix_types.h socket.h tlbflush.h
    bitops.h dma-coherent.h ide_iops.h kmap_types.h mutex-null.h resource.h sockios.h tlb.h
    bitsperlong.h dma.h int-l64.h libata-portmap.h mutex-xchg.h rtc.h spinlock.h topology.h
    bug.h dma-mapping-broken.h int-ll64.h linkage.h page.h scatterlist.h statfs.h types.h
    /usr/src/linux-2.6.32-ARCH/include/asm-x86:
    asm-offsets.h bitsperlong.h
    [stijn@hermes phc-k8]$ ls /usr/src/linux-2.6.31.12-server/include/asm*
    /usr/src/linux-2.6.31.12-server/include/asm:
    asm-offsets.h
    /usr/src/linux-2.6.31.12-server/include/asm-generic:
    4level-fixup.h bugs.h dma-mapping-common.h ioctl.h local.h param.h sections.h stat.h uaccess.h
    atomic64.h cacheflush.h emergency-restart.h ioctls.h memory_model.h parport.h segment.h string.h uaccess-unaligned.h
    atomic.h cache.h errno-base.h io.h mman-common.h pci-dma-compat.h sembuf.h swab.h ucontext.h
    atomic-long.h checksum.h errno.h iomap.h mman.h pci.h serial.h syscall.h unaligned.h
    audit_change_attr.h cmpxchg.h fb.h ipcbuf.h mm_hooks.h percpu.h setup.h syscalls.h unistd.h
    audit_dir_write.h cmpxchg-local.h fcntl.h irqflags.h mmu_context.h pgalloc.h shmbuf.h system.h user.h
    audit_read.h cputime.h futex.h irq.h mmu.h pgtable.h shmparam.h termbits.h vga.h
    audit_signal.h current.h getorder.h irq_regs.h module.h pgtable-nopmd.h siginfo.h termios-base.h vmlinux.lds.h
    audit_write.h delay.h gpio.h Kbuild msgbuf.h pgtable-nopud.h signal-defs.h termios.h xor.h
    auxvec.h device.h hardirq.h Kbuild.asm mutex-dec.h poll.h signal.h timex.h
    bitops div64.h hw_irq.h kdebug.h mutex.h posix_types.h socket.h tlbflush.h
    bitops.h dma-coherent.h ide_iops.h kmap_types.h mutex-null.h resource.h sockios.h tlb.h
    bitsperlong.h dma.h int-l64.h libata-portmap.h mutex-xchg.h rtc.h spinlock.h topology.h
    bug.h dma-mapping-broken.h int-ll64.h linkage.h page.h scatterlist.h statfs.h types.h
    /usr/src/linux-2.6.31.12-server/include/asm-x86:
    asm-offsets.h
    Apart from the asm-x86 dir the contents are identical (I checked the file listing of both asm-generic dirs and diff shows no difference between them). If I build the package with the default 2.6.32-ARCH kernel specified, it works. It finds all the headers and it compiles beautifully. However, when I build it with my own kernel (2.6.31.12-server), it spits out a sh*tload of errors (amongst which, in the beginning, all those asm files it can't find):
    [stijn@hermes phc-k8]$ grep bestaat log
    include/linux/linkage.h:5:25: fout: asm/linkage.h: Bestand of map bestaat niet
    include/linux/types.h:4:23: fout: asm/types.h: Bestand of map bestaat niet
    include/linux/posix_types.h:47:29: fout: asm/posix_types.h: Bestand of map bestaat niet
    include/linux/bitops.h:17:24: fout: asm/bitops.h: Bestand of map bestaat niet
    include/linux/param.h:4:23: fout: asm/param.h: Bestand of map bestaat niet
    include/linux/kernel.h:20:27: fout: asm/byteorder.h: Bestand of map bestaat niet
    include/linux/kernel.h:21:21: fout: asm/bug.h: Bestand of map bestaat niet
    include/linux/kernel.h:62:24: fout: asm/div64.h: Bestand of map bestaat niet
    include/linux/errno.h:4:23: fout: asm/errno.h: Bestand of map bestaat niet
    include/linux/prefetch.h:14:27: fout: asm/processor.h: Bestand of map bestaat niet
    include/linux/prefetch.h:15:23: fout: asm/cache.h: Bestand of map bestaat niet
    include/linux/list.h:7:24: fout: asm/system.h: Bestand of map bestaat niet
    include/linux/string.h:21:24: fout: asm/string.h: Bestand of map bestaat niet
    include/linux/thread_info.h:56:29: fout: asm/thread_info.h: Bestand of map bestaat niet
    include/linux/smp.h:36:21: fout: asm/smp.h: Bestand of map bestaat niet
    include/linux/stat.h:6:22: fout: asm/stat.h: Bestand of map bestaat niet
    include/linux/spinlock_types.h:13:33: fout: asm/spinlock_types.h: Bestand of map bestaat niet
    include/linux/spinlock.h:88:27: fout: asm/spinlock.h: Bestand of map bestaat niet
    include/linux/spinlock.h:364:24: fout: asm/atomic.h: Bestand of map bestaat niet
    include/linux/wait.h:26:25: fout: asm/current.h: Bestand of map bestaat niet
    include/linux/mmzone.h:20:22: fout: asm/page.h: Bestand of map bestaat niet
    include/linux/rwsem.h:22:65: fout: asm/rwsem.h: Bestand of map bestaat niet
    include/linux/topology.h:34:26: fout: asm/topology.h: Bestand of map bestaat niet
    include/linux/elf.h:7:21: fout: asm/elf.h: Bestand of map bestaat niet
    include/linux/module.h:20:23: fout: asm/local.h: Bestand of map bestaat niet
    include/linux/module.h:22:24: fout: asm/module.h: Bestand of map bestaat niet
    include/linux/device.h:26:24: fout: asm/device.h: Bestand of map bestaat niet
    include/linux/timex.h:170:23: fout: asm/timex.h: Bestand of map bestaat niet
    include/linux/kmemtrace.h:12:31: fout: trace/events/kmem.h: Bestand of map bestaat niet
    include/linux/auxvec.h:4:24: fout: asm/auxvec.h: Bestand of map bestaat niet
    include/linux/mm_types.h:16:21: fout: asm/mmu.h: Bestand of map bestaat niet
    include/linux/sched.h:65:24: fout: asm/ptrace.h: Bestand of map bestaat niet
    include/linux/sched.h:66:25: fout: asm/cputime.h: Bestand of map bestaat niet
    include/linux/ipc.h:21:24: fout: asm/ipcbuf.h: Bestand of map bestaat niet
    include/linux/sem.h:35:24: fout: asm/sembuf.h: Bestand of map bestaat niet
    include/linux/signal.h:4:24: fout: asm/signal.h: Bestand of map bestaat niet
    include/linux/signal.h:5:25: fout: asm/siginfo.h: Bestand of map bestaat niet
    include/linux/percpu.h:10:24: fout: asm/percpu.h: Bestand of map bestaat niet
    include/linux/seccomp.h:8:25: fout: asm/seccomp.h: Bestand of map bestaat niet
    include/linux/resource.h:71:26: fout: asm/resource.h: Bestand of map bestaat niet
    include/linux/io.h:22:20: fout: asm/io.h: Bestand of map bestaat niet
    include/linux/delay.h:14:23: fout: asm/delay.h: Bestand of map bestaat niet
    /home/stijn/pkgbuilds/phc-k8/src/phc-k8_v0.4.2/phc-k8.c:39:21: fout: asm/msr.h: Bestand of map bestaat niet
    include/acpi/platform/aclinux.h:64:22: fout: asm/acpi.h: Bestand of map bestaat niet
    include/linux/ioctl.h:4:23: fout: asm/ioctl.h: Bestand of map bestaat niet
    include/linux/fcntl.h:4:23: fout: asm/fcntl.h: Bestand of map bestaat niet
    'Fout' meaning 'error' and 'Bestand of map bestaat niet' 'File or directory does not exist'.
    This is how the PKGBUILD looks:
    # Contributor: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
    pkgname=phc-k8-server
    pkgver=0.4.2
    _kernver="2.6.31.12-server"
    pkgrel=1
    pkgdesc="frequency driver for AMD K8 with undervolting feature"
    url="http://www.linux-phc.org"
    arch=('i686' 'x86_64')
    license=('GPL')
    [ `uname -r` = 2.6.32-ARCH ] && makedepends=('kernel26-headers=2.6.32')
    provides=('linux-phc')
    [ "$pkgname" = "phc-k8" ] && backup=('etc/modprobe.d/phc-k8.conf')
    install=phc-k8.install
    source=(phc-k8-$pkgver.tar.gz::$url/forum/download/file.php?id=83)
    depends=(kernel26server)
    build() {
    sed "s/depmod.*/depmod $_kernver/" -i ../$install
    cd phc-k8_v$pkgver
    sed -i 's# /etc/modprobe.d/phc-k8.conf# ${DESTDIR}/etc/modprobe.d/phc-k8.conf#' Makefile
    sed -i 's#\([^=]\) /lib/modules/#\1 ${DESTDIR}/lib/modules/#' Makefile
    sed -i 's/^\tdepmod $(KERNELVERSION) -a/#\tdepmod $(KERNELVERSION) -a/' Makefile
    make KERNELSRC=/usr/src/linux-$_kernver/ || return 1
    install -d "$pkgdir/etc/modprobe.d"
    make DESTDIR="$pkgdir" install || return 1
    if [ "$pkgname" = "phc-k8" ]; then
    install -d "$pkgdir/usr/share/doc/phc-k8/"
    install -m644 {Changelog,README} "$pkgdir/usr/share/doc/phc-k8/"
    else
    # delete the config if we build for another kernel
    rm -r "$pkgdir/etc"
    fi
    sha1sums=('3f526f90d0f0a2defa24802787546117fdc3e1e8')
    Any clues?

    It's a bash check ([), it tells the script to add a conditional makedepends (if the kernel has that name, add that package as a dependency to build). It's optional, so it doesn't do any harm.
    Thanks for looking though .

  • IPhone 4s will only ring with default ringtone. Why?

    I have assigned separate ringtones to family members but they when they call my iPhone 4s, it  always rings with the default ringtone. I think I set it up properly but i need some advice of what to do next.

    If you go to Settings > Notifications > for each app you want to be notified turn on Notification Center...see if that doesn't get sound/vibrate for each.

Maybe you are looking for