[ADF, JDev12.1.3 how custom "entry LOV"?
Hallo,
The LOV is based on a query-based (only a db table is used in the query) VO.
- Is it possible to set the height and width of the pop-up window of the LOV?
- Is it possible to make the search fields in the pop-up of the LOV resistanc case?
- My LOV returns another 3 values that I have (in config LOV) associtated to 3 inputText fields. When I confirm the choiche made in the LOV, 4 fields in total are met. If I write in the 'main' textFIeld a non-existent value, validation happens. But if I change the other 3 values validation does not occur. I wish that the user can write in 4 fields but the inputText must be validated as group/record.
For example, the VO on which is based the LOV is a query that returns these records (the field in bold is the main dedined as LOV):
1, one, I
2 twoII
3, three, III
If the user chooses "one" in love, we have:
inputText1.value = '1 '.
inputText2.value = 'a '.
inputText3.value = 'I '.
But the user can change all fields and notification occurs only if the value of continains of inputText2.value one does not exist.
Such a situation not to raise any notification:
inputText1.value = '1_.
inputText2.value = 'a '.
inputText3.value = 'Xe!
4 instead of this, if I want the inputTexts can be filled only by choiching a record in the LOV... What configs do I care?
5. can I base without problem entry LOV 5-6 on the same VO? Or each must have its own VO LOV?
Thank you
Federico
Hi Federico
To resize popup dialog - ADF practice: resizing of research and dialogue components LOV
To make case insensitive searching, check ignore case checkbox in viewCriteria
See -for JDeveloper & ADF af:inputListOfValues: enable case-insensitive search | JDev & ADF Goodies
Yes, you can use VO even create several lov, just create a new acceessor for each lov
or disable other fields so that the user will not be able to change the value of inputtexts
Thank you
Tags: Java
Similar Questions
-
Hallo,
I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:
- the column headings of the af: table
- Visible property (true/false) of the columns af:table
- the actual query of the VO instance used to create the af: table
- the values of real bind variables passed to the query of the instance of VO
I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.
I'm a little confused on who use the code to achieve this... you kindly help me?
I did a similar qustion here
but then I guessed that it was preferable to create a new thread.Thank you
Federico
For this, you can use this type of code
Context LocaleContext = _adfTableBinding.getLocaleContext ();
for (attr AttributeDef: attributeDef) {}
Label As String = attr.getUIHelper () .getLabel (context);
_logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)
"Name:"+ label);
}
which produces this output
Timo
-
Hallo,
I have a LOV associated FieldB and showed it in the popup LOV, these must be filtered according to the value of FieldA (2 fields belongs to the same TableVO VO).
The LOV associated FieldB is based on a VO that has a binding variable 'BindCodInstitute '.
I would like to know how I can assign the vuale of FieldA to the variable binding.
What expression I have co-debtors variable binding?
Thank you
Federico
also see - https://blogs.oracle.com/aramamoo/entry/how_to_create_multi_level
-
Hallo,
I want to hide the "magnifying glass" to a field LOV.
This is possible only by using a CSS approach like this Ashish Awasthi (Jdev/ADF) Blog: search to hide from af icon: inputListOfValues using CSS & StyleClass-Oracle ADF?
Since then, I need to calculate in a bean managed if the magnifying glass must be hidden or not... I would like to know if there is an appproach simple and clean alternative.
Thank you
Federico
Hi Federico,.
You can use the same approach, as mentioned in the blog. Just you need not set the StyleClass on the page.
In the method of bean managed when you calculate that there should be no magnifying glass, then get the reference to lov and set its styleclass (LOV.setStyleClass) and refresh the LOV.
This way you can conditionally hide and display magnifying glass.
Thank you
-
Hallo,
I created a form of a VO istance which some fields are required.
In the form, there is a LOV.
When I click on the 'lens' of LOV validation happens.
I would like to avoid this behavior.
The solution is simply to set the immediate property of the LOV to 'true '?
Thank you
Federico
I created a form of a VO istance which some fields are required.
In the form, there is a LOV.
When I click on the 'lens' of LOV validation happens.
This was probably not happen.
So, do you have something specific in your code? (for example, LOV on part of primary key, partially initialized row, etc.?)
Is autosubmit = true set on your lov component?
Is there a difference, if you set ChangeEventPolicy = none to your iterator?
The solution is simply to set the immediate property of the LOV to 'true '?
If this will solve the problem, then Yes
Dario
-
Hallo,
in my application, I would use SelectOneChoiche components a range of years including start/end of the year can be different based on other values/conditions of display.
I found this thread helpful Andrejus Baranovskis Blog: select a choice with select elements Tag which explains how to fill a PLOUGHSHARE of a managed bean.
Would it be possible (and how) to create a reusable component (something to drag them to the design-time user interface) configurable with expressions of start/end of year?
This would avoid as me to write the code to fill the SOC whenever I need one of them.
Thank you
Federico
You can see this example ADF practice: component example declarative ADF which shows how to create a component declarative which shows a decimal lov.
This Oracle magazine article Oracle ADF: Build Your Own is another example that will guide you throughout the process.
Timo
-
Hallo,
I create a stubborn workflow that begins with a create operation on the table where a new record should be added.
The recording fields must be filled in by the user, but before committing, I have to fill a field of the reocord with the address IP of the PC of the user.
Could you kindly advice me which are the possible recommended approaches to achieve this?
Thank you
Federico
Hello
See this post: Blog of Zeeshan Baig: how to get the IP address of the customer in ADF merge request
You can use a createWithParams operation and to fill in this field.
Reference: Andrejus Baranovskis Blog: CreateWithParams operation for Oracle ADF 11g BC
Kind regards
Ruben.
-
[ADF, JDev12.1.3] How/where to set the session timeout
Hallo,
After a few minutes of inactivity, the browser displays a message to inform that the session is not more active and only OK been must be clicked to refresh the page.
If a dialog box "btf" has been opened on the left, it becomes...
I would like to know what is the right place/method to set a deadline.
If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).
The application of ADF Essentials and is deployed to the GlassFish application server.
My concern is... what should happen to the open operation / pending when the time-out occurs?
For example, the user is modifying an af:table but it has not clicked validate or cancel...
Thank you
Federico
I would like to know what is the right place/method to set a deadline.
For java web applications, you can set the session timeout in the web.xml file. (this is the global settings associated with all sessions)
If you wish, you can set the timeout of session by program (and this is related only to the current http session).
If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).
http://fortunefusionminds.blogspot.com/2014/04/how-to-redirect-to-custom-page-whenever.html
ADF: Session expires management redirect to login page | Bungbutan
ADF developers World: Detection and handling of user session expiry
My concern is... what should happen to the open operation / pending when the time-out occurs?
Well, session is destroyed, it will destroy all instances of AM and do rollback.
Dario
-
Hallo,
I started to raise this issue with the rohanwalia type () in this thread but maybe it's better to make the question in a separate thread.
I have a page home.jspx with some user interface components (menus bars, text entry, buttons,...).
Unbounded workflow
loginPage.jspx - loginSuccess-> home.jspx
Based on the logged in user, I programmatically to hide (for example some buttons and menu items) or to add UI components on the page home.jspx.
Thus, in the managed bean (request scope, right?), associated with the page I want to write a method that before appear the home.jspx makes the task above.
{initPage()}
Here, I call an AM method for each component that says that if
-According to the user - it should be visible or not.
This information is stored in a Boolean vars, one for each component.
IT1.setVisible (it1visible);
IT2.setVisible (it2visible);
B1.setVisible (b1visible);
...
}
How can I do to make this method runs automatically when the page is rendered?
Thank you
Federico
Hi Federico
you use links to visible false, but before pageload links are not accessible at the bean so when you call after the page load button works but before pageLoad, it won't
so rather than use binding use variables of bean to the value true or false and provide references to the visible property of inputField
Suppose that to create a Boolean variable and getter setter now is the button click set a value false
Thank you
-
Hallo,
popups messages of faces that I take the floor in managed beans or auto-affichent by the application to show errors (e.g., https://dl.dropbox.com/s/hsje8m0meci2wai/FacesMessage.png?dl=0) do not adjust automatically based on the content.
I would like to know how I can fix this problem and:
- If and how I can style messages (content and containing);
- If there is a simple way to display error messages online (e.g., https://dl.dropbox.com/s/rbw9i4h80mfvcxd/ErrMesInLine.png?dl=0);
- If you can provide me with, if there are any, some nice links other ways to display messages in the ADF applications.
Thank you
Federico
Well, for automatic resizing, you can use this workaround: https://agungor.wordpress.com/2014/05/14/handling-un-resizable-facesmessage-popup/
Also, if I remember correctly, you can download the fix for this problem for Oracle Support(if you have support contract).
Inline messages you must provide the id of the component when you create messages of faces.
For global inline messages you need to af:messages component.
As an alternative, you can use something like this: Awasthi (Jdev/ADF) Ashish Blog: better interface user-display the notification message of jQuery (for error, warning, info) to Oracle ADF
Dario
-
Hallo,
I need to change the font size for all the inputTexts, LOVs of outputText, labels, etc. which are in different panelFormLayouts inside a panelBox.
I tried to define a CSS class and to assign to the panelBox but it has not worked.
You kindly suggest me an easy way to do this?
Thank you
Federico
Hello
You can try something like this:
AF | panelBox::content label, af | panelBox::content, af | panelBox::content entry, af | panelBox::content select {}
your style
}
At least the style of the components you named should be changed. If you need more you can add others.
Kind regards
Ruben.
-
Hallo,
on GlassFish 3.1.2 I have deployed my ADF Essentials application.
Now I configure GlassFish server to run my application using HTTPS/SSL.
I would like to install the certificate MyDomainCert.crt, Intermediate.cert and MyDomainPrivateKey.crt files and configure GlassFish.
Could you kindly advice me a clear and not to hard document that describes how to configure the application server?
Thank you very much
Federico
Finally, I reached the goal
These links also helped me:
https://javadude.WordPress.com/2013/03/22/GlassFish-v3-1-2-and-SSL/
In addition, I would say to use the free program "KeyStore Explorer" (key - homepage file Explorer) to easily import the certificates and private key in the keystore of Java.
Ciao,.
Federico
-
Hallo,
for a test, I need to set the value of an entry of a stubborn workflow used as dialog...
Then in the bean that is associated with a known fragment of the btf, I need to read the value, so I used this code...
Integer protocol = (Integer) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("protocol");
This exception triggers...
javax.el.ELException: java.lang.ClassCastException: java.lang.Long cannot be cast java.lang.Integer
What's wrong?
Thank you
Federico
If I remember correctly, in JSF that EL has Long type so this probably also applies to ADF.
For example, you can cast a Long or you can use the type field (from some managed bean) an integer as an input parameter.
Dario
-
Hallo,
in the homepage of my request, there is a menu bar.
His style is similar to that I can find in a desktop application.
I would like to know if there is some CSSs well made to beautify the menu bar and give it a style a little more closely the style of web.
Thank you
Federico
Federico, Google is your friend!
The problem is that you cannot copy just part of the skin. A defined appearance the identity of your application. It should be defined in sound together and not only at certain times.
There are a couple of good tutorials available (again Google it) and you must use the skin editor that allows you to see what changes you make are looking in the application.
Watch http://m.youtube.com/watch?v=QEfOpHtkXyI
Start: Oracle ADF Skin Editor 12 c (12.1.2)
https://blogs.Oracle.com/jdevotnharvest/entry/how_to_learn_adf_skinning
For ux Oracle RCUI Guidelines guidelines
And you use 12.1.3 http://www.oracle.com/webfolder/ux/middleware/alta/index.html might also interest you
Timo
-
Hallo,
I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.
I need to fill programmatically after you click on the search button.
Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?
Thank you
Federico
I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.
I need to fill programmatically after you click on the search button.
Use VO.executeEmptyRowSet () Andrejus Baranovskis Blog: Oracle ADF Tuning: prevention of the execution of the SQL query on the loading of the Page
Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?
Bind "disabled" property #{bindings.yourIterator.estimatedRowCount == 0}
Dario
Maybe you are looking for
-
Peripheral shuffle not recognized-iPod USB - Vista
Hello I have a laptop HP 6730 s that works perfectly since I bought it a few months ago. I recently bought an iPod shuffle 2nd generation. The device worked properly once. Neither the ipod nor any other usb device works now. There is an exception: my
-
Problem with the pc runing Windows7 download
Hello I use laptop tuning professional windows7 with quick heal software installed to protect my device. Now I'm facing a huge problem, iam unable to download anything on the internet using all types of browsers, but not just by using the browser, bu
-
Difference between bouncebacks and invalid e-mail addresses
I call the export in bulk api REST for a list of bouncebacks for my campaign. In the essay with an address email invalid deliberately (field is valid, but the recipient is not valid) seems Eloqua does not send an email to this email address, but in t
-
is it possible the manually the data downloaded to report anywhere?
Hi Experts,For example,.I want to download the data in excel manually in India.United StatesSomeone else want to create reports by using everything I download data.Is it possible to OBIEE 11 g?It is our customer's requirement. Please help me?. Thank
-
Video error setting DirectShow with Media Encoder
I have a software named Swift with which I create subtitles for various clients. I have a client, however, whose videos regularly give me an error message of the following type (when I try to load them): "impossible to define DirectShow Protocol."