How to control the canvas of the ADF Read-Only Form

Hi
Could you give an idea of how to control the canvas of the fields in ADF Read-Only form. My requirements are as follows
1) ALL the labels has to left justified irrelevant of their length
2) ALL the values also has to left justified and should be wrapped if it exceeds some length.
3) I want to show the results in more than one column with proper alignment as mentioned above.
Thanks in advance.
Sivaji.......

Sivaji,
There is a "rendered" attribute on the af:table component. You can write EL to pragmatically control the evaluated value of expression to set the visibility.
Assuming you are using BC for your middle layer you can do something like the following:
<af:table ...
rendered = #{YourDetailViewObject.somestring.inputValue != null}
..>
Z

Similar Messages

  • How to get the value of a parameter/field in a ADF Read-Only Form

    Hi,
    My requirement is as follows. Could anyone shed some light on this issue.
    I am showing the records from db table using ADF Read-Only Form ( which uses ViewObject created for the table). Now I want to capture(get) the value of a field in this form and then have to invoke an action based on the value in this field. I mean to say the next page depends the value of a field in this form.
    Please suggest how can I achieve this functionality?
    Thanks in advance.
    ~Sivaji

    That's indeed what Sivaji needs.
    In the page definition you can add a value to the parameters of a certain method. Like RJundi mentioned, point to the attribute of the current row.
    Example:
    The value of the read only textfield will be something like this:
    #{bindings.EmployeeName.inputValue}points to an attribute value in the pageDef of the page:
        <attributeValues id="EmployeeName" IterBinding="AllEmployees">
          <AttrNames>
            <Item Value="EmployeeName"/>
          </AttrNames>
        </attributeValues>The attribute value has also an iterator binding defined in the page def:
        <iterator id="AllEmployees" RangeSize="10"
                  Binds="AllEmployees" DataControl="MyService"/>If you want to 'pass' the attribute of the current row to the service, you can create a methodaction (eg: public void printEmpName(String name)) in the page def or you can drop the method from the datacontrol on to the page. After dropping the method, a screen will appear asking to fill in a value for the parameter ('name' in this example). Fill in '#{bindings.EmployeeName.inputValue}' if you want to pass the EmployeeName of the current row.
    Hope it helps,
    Koen Verhulst

  • How to get the key values of record in ADF Read-only Form?

    Hi
    I am using ADF Business Component VO.
    I have a search page( ADF Search Form) and I am displaying the results of the search in a ADF Read-Only Table( only few columns are shown) .Then by selecting a record and clicking on the button 'View' , I am navigating to a different page(ADF Read-Only Form) to show all the columns of the table for the selected record.
    In the second page, I have one more button 'view child details'.Now when I click on this view child details button, I have to show another page(ADF Read-Only Form) which fetches the data from one of the child tables of parent record.
    My idea is to create a ViewLink between the parent and child tables.( I have more than 15 child tables for a parent table).
    Is there anyother way to achieve this functionality?
    Please respond ASAP.
    Thanks in advance.
    ~Sivaji..
    Message was edited by:
    Sivaji...the boss

    Sijav,
    ASAP?
    Anyway - yes, you can do this with a view link. When you add the child table to the application model, make sure you actually add it as a child of the parent table instance (select the parent VO first, then use the shuttle to add it). This way, the parent->child relationship should be coordinated for you automatically. You should not need to get the key values manually.
    Then, when you create the page to show the detail table, make sure you use the child table that is shown as a child of the parent table in the data control palette (expand parent table to see the child).
    Hope this helps,
    John

  • Custom Formatting of a ADF Read-Only Form

    From what I've worked with so far, the ADF read-only form will only allow you to pick the number of "rows" and "columns" to format data. Columns titles are aligned to the left and column values aligned to the right.
    But the specs I've been given are for a highly customized layout, with column titles above the column values, and with some rows containing only two columns of data and some rows requiring up to ten columns of data.
    How can I adjust the format of ADF components, like read-only forms, to customize the layout?
    Thanks in advance.

    Thanks for the advice Shay.
    What I need to do is take one view object's data (20 columns) and spread them out, in HTML terms, into multiple tables to provide various TR/TD formats on a single screen.
    Are you saying it is possible to layout a single view object's columns into different layout panels to mimic multiple HTML table formats?
    Thanks again.

  • How can we make the ms-word data as read-only using java code?

    How can we make the ms-word data as read-only using java code?

    MVSK wrote:
    By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead.

  • Hi just bought an external hard drive and can't change the sharing and permissions from read only status. How do i change it?

    Hi new to macs and dont know how to change the sharig and permissions to my external hard driive from read only mode. please help

    Get Info on your drive from the Finder - you'll see a dialog box like this:
    If the Privilege is set to Read Only for the user, simply click on the "Read Only" and change it to "Read & Write".
    Is that what you're looking for?
    Clinton

  • Write-protect mode is currently active. The editor is now in read-only mode

    How do i get the portal out of write protect mode.   No matter what i change to do, i get the message
    Write-protect mode is currently active. The editor is now in read-only mode.
    this shows up in the log
    10/06/10 16:21:21 -  ERROR: Not deployed. Deploy Service returned ERROR:
                         java.rmi.RemoteException: Cannot deploy application sap.com/com.sap.pct.bi.tct.BI_Administration..
                         Reason: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception during
    deploy: Import aborted - write protect mode is active.

    Hi David,
    Do the following steps:
           1.       Start the Visual Administrator .
           2.       Choose Global Configuration   u2192Server  u2192Services u2192com.sap.portal.pcd.gl .
    The properties of the service are displayed:
                                a.      Pcd.Pl.WriteProtectActivated defines whether or not write-protect mode is activated. By default it is set to false .
                                b.      Pcd.Pl.WriteProtectCause  describes the reason that write-protect mode is activated. This information appears in the log files.
           3.       Deactivate write-protect mode by entering false  as the value for Pcd.Pl.WriteProtectActivated .
           4.      C lick Update and then click Save .
    A confirmation dialog box opens.
           5.       To apply the changes to all cluster elements, click Yes .
           6.       To reset the default values, click the Reset Default Global Properties icon .
    This will deactivate the write protect mode.
    Thanks and Regards,
    Syam.

  • The Index Server is in Read Only Mode

    Hi,
    In our test environment ALL of our jobs are failing. The message in every failed Job Log is:
    11/18/05 10:25:15- Starting to run operations (1 total) for job 'Search Update 2 - Run Once'. Will stop on errors. (PID=14064)11/18/05 10:25:16- *** Job Operation #1 of 1: System Agent 'Search Update Agent' [Run as owner 'Administrator']11/18/05 10:25:16- The index server is in read-only mode.11/18/05 10:25:16- The index Server is inaccessible. Search Update cannot continue and will terminate.11/18/05 10:25:16- *** Job Operation #1 failed: Call to perform operation #1 failed with error (0x80044301): (null) (0x4)11/18/05 10:25:16- Call to perform operation #1 failed with error (0x80044301): (null)
    has anybody seen this before, and how can I correct it?
    Thanks,Shawn

    The search server goes into read only mode in response to certain error conditions.  Simply restart the service to put the search server back into R/W mode.  The server will attempt to self repair on startup.  You should review your recent search server logs to see if there are errors that may have caused the transition to read only mode.  If problems persist, contact tech support for further assistance in troubleshooting.

  • The report parameter 'param1' is read-only and cannot be modified. (rsReadOnlyReportParameter)

    hey guys..
    I'm trying to get the report that I need to be filtered by a parameter value (named Param1)
    I created a parameter in the data tab and tried to pass a value from my Web application to the report services.. now my report have that textbox that prompts me to enter the filtering value for the report I want.. everything works fine till this point..
    now I have another webpage that has a report viewer and a textbox for the user input the value they want.. and pass it to the report.. and I'm using the following code to pass the value to the report I made earlier..
    Dim par(0) As Microsoft.Reporting.WebForms.ReportParameter
    par(0) = New Microsoft.Reporting.WebForms.ReportParameter("paramSiteCode", TextBox1.Text.ToString)
    ReportViewer1.ServerReport.SetParameters(par)
    ReportViewer1.ServerReport.Refresh()
    however.. now I'm getting an error.. "The report parameter 'paramSiteCode' is read-only and cannot be modified. (rsReadOnlyReportParameter)"
    what am I missing here? I've been thru the help and forums.. and the code should work.. or so I hope it would.. thanks in advance..

    Details
    Product:
    sql server reporting services
    ID:
    rsreadonlyreportparameter
    Source:
    microsoft.reportingservices.diagnostics.utilities.errorstrings.resources.strings
    Version:
    8.00
    Message:
    The report parameter '{0}' is read-only and cannot be modified.
    Explanation
    This error occurs when you attempt to set a value for a parameter that is read-only. A parameter is read-only when the
    Prompt property for the parameter is set to false.
    User Action
    To set a value for a parameter, the Prompt property for the parameter must be set to
    true. You can set this property in two ways:
    Before publishing the report, provide a prompt string for the parameter. In Report Designer, you can provide a prompt by typing a prompt string in the
    Prompt text box in the Report Parameters dialog box.
    After publishing the report, set the Prompt User property for the parameter. In Report Manager, in report properties, click the
    Parameters tab, and then select Prompt User for the parameter.
    For more information about report parameters in Report Designer and Report Manager, see Books Online.
    In the release version of SQL Server 2000 Reporting Services, when Prompt is
    true and Prompt String is blank, the parameter is still available to the user in the report viewer. In SP1, when
    Prompt is true and Prompt String is blank, the parameter is hidden from the user.
    Note: Publishing a report over an existing report on the report server does not overwrite the parameter information. To update parameters for an existing report, either delete the report on the report server and republish, or update the parameter information
    for the report in Report Manager.
    I struggled with the same problem in VS 2010.
    After a long series of hoops to jump through, I modified the rdlc file by hand and added <Prompt>true</prompt>. This parameter cannot be set through the GUI - go figure.
    In my case, I was attempting to generate a sub report, and pass a parameter to the sub report.
    To get this to work, the sub report needed these two sections.
    <ReportParameters>
    <ReportParameter Name="Network_Id">
    <DataType>String</DataType>
    <Prompt>true</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Variables>
    <Variable Name="Network_ID">
    <Value />
    </Variable>
    </Variables>
    I was then able to use the name "Network_Id" in the sub-report properties of the "sub report control" for the name of a parameter on the parameters tab. I then set it to the key value that I need in the subreport properties dialog.
    Prior to setting prompt to true, I kept getting the read-only exception.
    I'm not sure if I am being clear about this, but sub reports do work, and prompt can be manually added to the report definition file.

  • The selected data source is read-only

    Anyone know how to fix this "issue"
    The selected data source is read-only. You cannot change the view configuration.
    Thanks in Advance.

    Assuming that it's not actually read-only (because you're trying to hit a follower node or a data source that is currently loading non transactionally, etc.), you should be able to just click the Data Source edit button and click Save to "wake it up".
    In previous versions of the product there was a "Refresh Data Sources" that would do the trick but I haven't seen it in the 3.0 version of Studio.
    If enough people need it, maybe we'll just write it or something. 
    Patrick Rafferty
    http://branchbird.com/

  • It is possible to apply redo while the standby is open in read only mode ?

    Hi,
    I am using Oracle 11g R2 (11.2.0.1.0)
    Step 1: Two node RAC is Configured.
    Step 2: One node Data Guard RAC is configured.( i,e Standby is one node RAC).
    Primary:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ WRITE PRIMARY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    Standby:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    Question:
    I have not purchased active dataguard license.
    In my case In Data Guard RAC it is possible to apply redo while the database is open in read only mode?
    Thanks
    Solaiman

    876149 wrote:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    "READ ONLY WITH APPLY" in V$DATABASE.OPEN_MODE means Active Data Guard is enabled.
    Oracle code cannot check if you have the right license: it is up to you to know which license you have for your database environments.

  • How to use same view as editable and read only in ADF

    Hi,
    how to use same view as editable and read only in ADF ?? How can we achieve this in TF's ???
    -mrudul

    Hi,
    Steven Davelaar wrote a presentation about this "Building Highly Reusable Taskflows"
    Starting slide 14 is where your use case comes into play
    Frank

  • The back up volume is read only?

    Can anyone help me with this? When time machine tries to run a back-up I get two errors and it fails. The first says:
    Time Machine Error
    The back up volume is read only.
    The second one says:
    Disk Repair
    The disk was not repairable by this computer. It is being made available to you with limited functionality. You must back up your data and reformat the disk as soon as possible.

    AndyPrior wrote:
    The back up volume is read only.
    see C6 in [this_|http://web.me.com/pondini/TimeMachine/Troubleshooting.html] user guide.
    JGG

  • Sorting a newly-added row within an ADF Read-Only Table

    I'm having a bit of trouble with a situation where I'm adding a new row to the data set behind an ADF Read-Only Table (I'm using 10g), but the new row is popping to the top rather than sorting in according to the sort order. I know this is the default behavior, and I was looking at section 23.4.4 in the Developer's Guide (http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_tables_forms.htm#insertedID4 - which is actually for 11g), which advises programmatically queuing a SortEvent after the commit, and implementing a handler to execute the sort.
    The problem I'm having, though, is that my commit and the table I need to refresh are on different pages. I've tried adding a CoreTable binding (masterDetail1) for the table to the backing bean for the add page and doing this in the saveButton_action() method:
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    ArrayList<SortCriterion> masterDetail1SortCriteria = new ArrayList<SortCriterion>();
    SortCriterion discAsc = new SortCriterion("Disc", true);
    SortCriterion trkAsc = new SortCriterion("Trk", true);
    masterDetail1SortCriteria.add(discAsc);
    masterDetail1SortCriteria.add(trkAsc);
    masterDetail1.setSortCriteria(masterDetail1SortCriteria);
    ...but I get a NullPointerException as soon as I try to refer to masterDetail1. I've also tried creating a SortEvent but I'm not sure how to actually queue it or if that'll even work if I don't have a usable reference to the table.
    Any thoughts on how I can do this or on a better way to refresh the table so that the newly-added item falls into the existing sort?
    Edited by: gdmitchell on Jul 19, 2010 2:40 PM
    Edited by: gdmitchell on Jul 19, 2010 2:41 PM

    Hi,
    you cannot reference a table that is located on a different page from a managed bean of another page and expect its JSF binding to be non-null. As soon as a page is moving out of focus, its server side component tree is cleared and the managed bean (if its in request scope) dismissed
    Frank

  • ADF 10.1.3 : Modifying background colour of ADF read only table ...

    Hi All,
    I want to modify the background color of the ADF read only table [color of cell not the text] and in order to do that, i modified the background color in the inline style of the column but the color of the column is still not changing. What else do i need to do to change the column color?
    Also how can we modify the color of column header?
    Regards
    Lokesh

    I guess you have to change the skinning of the component to archive this.
    Look at the doc for the skin selectors and how the change them.
    Timo

Maybe you are looking for

  • Show region if empty not working (ASP)

    I have created an app in ASP (not .NET) to record some supplier stock info, with a summary page displaying a filtered recordset based upon the logged in user which is working fine and dandy... the problem lies when no records exist for the current us

  • Acrobat Pro 9.0 Uninstall incomplete - MS Word Acrobat options remain

    Hello All, Currently we are using Acrobat Professional 9.0, installed on a Windows XP machine with MS Office SP3. The installation of Acrobat Pro 9.0 works error free. The problem I'm seeing is that the uninstall does not appear to be complete. After

  • BackGround Color not Changing???

    Here is a section of my code. I am trying to make the label Black and the panel holding it, grey. I have written this way but the label remains grey. What is the matter and how do i deal with? TitledBorder titled2=BorderFactory.createTitledBorder("")

  • How to get name of batch file/shell script that starts program?

    I don't think there's a way to do it, but I'm asking the question anyway... of course, the startup script could pass its name as a parameter to the Java program, but I was wondering if the information could be determined "directly," via Java code. Th

  • How can I get Macs and PCs to share files on same network?

    I have a 2009 iMac running Mavericks and a Macbook Pro retina also on Mavericks.   I also have a desktop running Windows 7 Pro and a laptop on Windows 8.1.   I have a cable modem (Comcast) with multiple ethernet jacks and a WIFI modem.   The Macs see