How to make a search form with required items?
Hi
I am using JDeveloper 11.1.1.2 and JHeadstart 11.1.1.2.29
I want to make a Search-form for Searching Employees. I want to search for Last Name OR First Name OR Maximum Salary OR ( Combination ManagerID and DepartmentID). One of these is required.
On the view object for Employees, I defined a view criteria for the search.
In JHeadstart, I disable Quick Search and set Advanced Search to model-samePage and Advanced Search View Criteria to the view criteria I just defined.
But now, I can also personalize the Advanced Search. How can I disable this?
And is this the right way to create such a Search-form or do you have other suggestions?
Regards,
The model-based search is standard ADF functionality.
Jheadstart simply generate the search component on the page. There are a lot of addiitonal properties on af:query that you can set that we do not expose through the Jheadstart application definition editor.
You can create a custom template to set those additional properties.
See the af:query tag doc for more info:
http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_query.html
Steven Davelaar,
Jheadstart Team.
Similar Messages
-
How to make a PDF form with expanding tabel or expanding fields, like in Word.
How to make a PDF form with expanding tabel or expanding fields, like in Word.
This is currently not possible in Formscentral. It is something we are working on for the future. Please stay tuned.
Andrew Yarborough -
How to make character based forms with forms 6
I need to created character based forms with forms 6.0. Can anyone help me?
on unix machines you get 2 runtimes I think they are called ifrun60m and ifrun60.
The first one is the normal GUI (m is probably for motif) and the second one is for character mode.
You'll also have ifgen60 and ifgen60m for generating. -
How to make a customize form with optional parameter and left join
Hi,
I am trying to make a report with a left join. I also want ot have optional parameters in it.
I am using the Create Reports From SQL Query method:
SQL is :
select ename, sal
from scott.emp left join scott.dept
on scott.emp.deptno = scott.dept.deptno
where sal >= :lower_sal
and sal <= :higher_sal;
However, if I do it this way, I those 2 parameters are not optional.... How can I make them optional?
If I use the Create Reports From Query Wizard method, I can make the parameters optional, but then I cannot do the left join...
Thanks,
Wilsonhi,
to catch null values on both sides I use:
where nvl(sal,0) >= nvl(:lower_sal,nvl(sal,0))
and nvl(sal,0) <= nvl(:higher_sal,9999999999)
otherwise there will be no rows in the report where the value of sal is null, even if there are no selection criteria entered.
regards Michael -
Search form with multi-tab result
Dear,
I would like to create a search form with multiple items. These can be different select lists (dont know yet if one list is going to be parent of another list).
If on the search form I press submit the result is used in the different tabs. (two page level tabs. THey can all have a different report.
When I switch between the tabs I can still see the original search form with the original filled in values.
Is this some kind of shared control or shared component like a navigation bar?
I would appreciate your help.
Kind regards,
NicoMost probably your problem is different, but I remembered another (possibly similar) problem.
A few months ago another guy had a problem related to PPR of content on a ShowDetailItem in a PanelTabbed. He had not set the whole ShowDetailItem as PPR target but he had set a PanelFormLayout inside the ShowDetailItem as a PPR target. The problem was workarounded by setting either the whole ShowDetailItem or the whole PanelTabbed as a PPR target. So if you have not set the whole ShowDetailItem as a PPR target of the "execute query" button (by using ShowDetailItem's "partialTriggers" attribute), please try what will happen if you set it.
Dimitar -
How to make the wifi connection with Ipad in china since it requires user's name and password just like the dialed-up?
The same way you would connect to a secure wifi network in any other country. Supply the username and password when prompted.
-
How to make a ADOBE FORM as interactive??
Hi experts,
Please anybody share how to make a ADOBE FORM interactive ? It means the content of the form ( text field etc.,) can be varied ( selected dynamically ) and also the form should be freeze later , so that it cannot be edited again ,.
Thanks in advance!!Hi shukla,
Thanks for u r response.
Here my problem is i created webdynpro component view with interactive element .And i set the all required properties also like checking enable checkbox ,pdfsourcr,formname allthe requird things i did and i developed one adobeform using sfp tcode. In that form they are some input fields are their. and i activated every thing sucessfully.
while executing webdynpro app i am getting pdf also.But in that pdf i cant able to fill the input fields..i checked with javascript code , and different layouts also but still it will be not editable in pdf..
I need the solution for this........ Pls help me, I stucked with thispoint ,and its urgent...
Regards,
Venkat. -
A search form with three search criterias
I want to create a search form in Apex with three text boxes that would let us search with a lastName,firstName or a course Name. So i would have three text box regions where the user can enter any one of the search criterias and get a results
the sql query that does the join is as
select Student.Student_id,
Student.First_NAME,
Student.LAST_NAME,
Student.Email1 as Primaryemail,
Student.Email2 as SecondaryEmail,
Student.Phone1 as MobileNumber,
Student.Phone2 as HomeNumber,
Address.Street1 as Street ,
Address.City as City,
Address.State as State,
Address.ZIP as Zip,
Course.PROVIDER_COURSE_ID as CourseID,
Course.Course_Name as Course,
Course.Credit_Hours as Credit_Hours,
INSTITUTION.Name as InstName
from Student Inner join Address on Student.ADDR_ID = Address.ID
Inner Join Institution on Student.INST_ID = Institution.ID
Inner join Course on Course.INST_ID = Institution.IDand i want to incorporate my query into pl/sql example as below which is provide in apex examples as below where it searches for assignee and status. any ideas guys how i can do this or if there is simpler way to do this where the user can have three text boxes and search with their names or course name etc.
declare
c pls_integer := 0;
l_detail varchar2(4000);
i pls_integer;
l pls_integer;
l_max_rows integer;
begin
l_max_rows := nvl(:P2_ROWS,10);
if :P2_SEARCH is null
and :P2_ASSIGNEE is null
and :P2_STATUS is null then
sys.htp.p('<p>'||
apex_escape.html('Please enter at least one search condition.')||
'</p>');
else
-- PUT YOUR QUERY HERE
for c1 in (
select id, project, task_name, start_date, end_date, status, assigned_to,
cost, budget
from EBA_DEMO_SEARCH_PROJECTS
where ( instr(upper(assigned_to),upper(:P2_ASSIGNEE)) > 0
or :P2_ASSIGNEE is null)
and ( instr(upper(status),upper(:P2_STATUS)) > 0
or :P2_STATUS is null)
and ( instr(upper(project),upper(:P2_SEARCH)) > 0
or instr(upper(task_name),upper(:P2_SEARCH)) > 0
or instr(upper(status),upper(:P2_SEARCH)) > 0
or instr(upper(assigned_to),upper(:P2_SEARCH)) > 0
or :P2_SEARCH is null
loop
c := c + 1;
if c = 1 then
sys.htp.p('<ul class="sSearchResultsReport">');
end if;
sys.htp.p('<li>');
sys.htp.prn('<span class="title">');
-- DEFINE DRILL DOWN LINK HERE
sys.htp.prn('<a href="'
||apex_util.prepare_url('f?p='||:APP_ID||':3:'||:APP_SESSION||
':::3:P3_ID:'||c1.id)||'">');
-- ASSIGN PRIMAY ATTRIBUTE HERE, REFERENCE QUERY COLUMN
l_detail := c1.project;
i := instr(upper(l_detail),upper(:P2_SEARCH));
if i > 0 then
l := length(:P2_SEARCH);
l_detail := apex_escape.html(substr(l_detail,1,i-1))||
'<span class="highlight">'||
apex_escape.html(substr(l_detail,i,l))||'</span>'||
apex_escape.html(substr(l_detail,i+l));
end if;
sys.htp.prn(l_detail);
sys.htp.prn('</a></span>');
sys.htp.prn('<span class="description">');
-- ASSIGN SECONDARY ATTRIBUTE HERE, REFERENCE QUERY COLUMN
l_detail := c1.task_name;
i := instr(upper(l_detail),upper(:P2_SEARCH));
if i > 0 then
l := length(:P2_SEARCH);
l_detail := apex_escape.html(substr(l_detail,1,i-1))||
'<span class="highlight">'||
apex_escape.html(substr(l_detail,i,l))||'</span>'||
apex_escape.html(substr(l_detail,i+l));
end if;
sys.htp.prn(l_detail);
sys.htp.prn('</span>');
-- DEFINE ADDITIONAL QUERY COLUMNS FOR SEARCH BELOW
sys.htp.p('<span class="type">');
sys.htp.prn('Assigned to: ');
sys.htp.prn(apex_escape.html(c1.assigned_to));
sys.htp.prn('</span>');
-- display additional column detail
sys.htp.p('<br /><span class="type">');
sys.htp.prn('Status: ');
sys.htp.prn(apex_escape.html(c1.status));
sys.htp.prn('</span>');
sys.htp.prn('</li>');
if c = l_max_rows then
exit;
end if;
end loop;
if c > 0 then
sys.htp.p('</ul>');
sys.htp.p('<p>'||c||' results found.</p>');
else
sys.htp.p('<p>No data found matching your search criteria.</p>');
end if;
end if;
end;i tried to change the pl/sql to incorporate it into my apex application but i consistently get an error as pl/sql not defined.
any help or a slight hint is very much appreciated
thanks for looking and taking the time to read it through if u made it this far or even if u made it half wayThanks that worked and i got the procedure inside apex as well now i have to figure out how to make the search condition so that it will look for a like condition as well so the user can enter sam for samuel and still find the users
declare
c pls_integer := 0;
l_detail varchar2(32767);
i pls_integer;
l pls_integer;
l_max_rows integer;
begin
l_max_rows := nvl(:P37_ROWS,10);
if :P37_SEARCH is null
and :P37_FirstName is null
and :P37_LastName is null
and :P37_Course_Name is null
then
sys.htp.p('<p>Please enter at least one search condition.</p>');
else
for c1 in (
select
/* SIMULATE A UNIQUE COLUMN */
Student.Student_id || ',' || Course.Course_id as FAKE_PK,
Student.Student_id ,
Student.First_NAME as FirstName,
Student.LAST_NAME as LastName,
Student.Email1 as Primaryemail,
Student.Email2 as SecondaryEmail,
Student.Phone1 as MobileNumber,
Student.Phone2 as HomeNumber,
Address.Street1 as Street ,
Address.City as City,
Address.State as State,
Address.ZIP as Zip,
Course.PROVIDER_COURSE_ID as CourseID,
Course.Course_Name as Course_Name,
Course.Credit_Hours as Credit_Hours,
INSTITUTION.Name as InstName
from Student left join Address on Student.ADDR_ID = Address.ID
left Join Institution on Student.INST_ID = Institution.ID
left join Course on Course.INST_ID = Institution.ID
where ( instr(upper(First_Name),upper(:P37_FirstName)) > 0
or :P37_FirstName is null)
and
(instr(upper(Last_Name),upper(:P37_LastName)) > 0
or :P37_LastName is null)
and
(instr(upper(Course_Name),upper(:P37_Course)) > 0
or :P37_Course is null)
and (
instr(upper(First_Name),upper(:P37_SEARCH)) > 0
or instr(upper(Last_Name),upper(:P37_SEARCH)) > 0
or instr(upper(Course_Name),upper(:P37_SEARCH)) > 0
or :P37_SEARCH is null
order by Course_Name desc
loop
c := c + 1;
if c = 1 then
sys.htp.p('<ul class="sSearchResultsReport">');
end if;
sys.htp.p('<li>');
l_detail := c1.Course_Name;
i := instr(upper(l_detail),upper(:P37_SEARCH));
if i > 0 then
l := length(:P37_SEARCH);
l_detail := apex_escape.html(substr(l_detail,1,i-1))||
'<span class="highlight">'||
apex_escape.html(substr(l_detail,i,l))||'</span>'||
apex_escape.html(substr(l_detail,i+l));
end if;
sys.htp.prn(l_detail);
sys.htp.prn('</a></span>');
sys.htp.prn('<span class="description">');
l_detail := c1.FirstName;
i := instr(upper(l_detail),upper(:P37_SEARCH));
if i > 0 then
l := length(:P37_SEARCH);
l_detail := apex_escape.html(substr(l_detail,1,i-1))||
'<span class="highlight">'||
apex_escape.html(substr(l_detail,i,l))||'</span>'||
apex_escape.html(substr(l_detail,i+l));
end if;
sys.htp.prn(l_detail);
sys.htp.prn('</span>');
sys.htp.prn('<span class="type">Incident: ');
sys.htp.prn(apex_escape.html(c1.FirstName));
sys.htp.prn('</span>');
sys.htp.p('</li>');
if c = l_max_rows then
exit;
end if;
end loop;
if c > 0 then
sys.htp.p('</ul>');
sys.htp.p('<p>'||c||' results found.</p>');
else
sys.htp.p('<p>No search results.</p>');
end if;
end if;
end; Edited by: user13133295 on Jun 4, 2013 1:59 PM -
How to get the search field with API UCM for a specific UCM Profil
We have UCM 10g
For the checkIn we have for exemple the URL : http://xp-ucm1.oth.prs/idc/idcplg?IdcService=CHECKIN_NEW_FORM&dpTriggerValue=1&dpDisplayLabel=Codification%201&IsSoap=1
To obtain all the field for the checkIn is very simple with this service(IdcService=CHECKIN_NEW_FORM) and RIDC, but for search we don't find the idc service ?
<SOAP-ENV:Envelope>
−
<SOAP-ENV:Body>
−
<idc:service IdcService="CHECKIN_NEW_FORM">
−
<idc:document dRevLabel="1" dUser="sysadmin" dDocName="" dDocTitle="">
<idc:field name="xClbraUserList:isExcluded">1</idc:field>
<idc:field name="xsgti_top_rule:isSetDefault">1</idc:field>
<idc:field name="xlist1:isExcluded">1</idc:field>
<idc:field name="xsgti_g_ll_niv1_1:isExcluded">1</idc:field>
<idc:field name="xsgti_chrono_soc"/>
<idc:field name="xsgti_g_entier4:isExcluded">1</idc:field>
any ideasHi,
In fact, I don't want to send parameters to the search service but to get the fields to display an advanced search form of my own.
Some rules and profiles filters the amount of fields availables and having a service that can do this filtering for me would be very useful.
The check-in service do this for a trigger value (profile), but I can't find how UCM uses services to display the search form with the right fields depending on the rules and rights of the user.
When I call a search form, UCM calls a service : http://xxx.xxx.xxx.xxx:xx/idc/idcplg?IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=STANDARD_QUERY_PAGE&dpTriggerValue=xxx&dpDisplayLabel=xxx
But with &IsSoap=1, the values returned are not good, some fields are missing, the field captions are not right... I guess UCM calls sub-services but which ones ?
Thanks :) -
How to make dynamic search items in a report?
Hi all,
I have two questions.
1. How to make dynamic search (i.e without GO button) field above report to provide dynamic search by words in one field of report query?
2. How to make similar multiply dynamic search fields on report to provide individual search by selected fields of report with refine capability (i.e any search conditions in different fields must work together as complex WHERE clause)
Thanks in advancehey yuri--
if i'm understanding your questions correctly, the easiest way to achieve the functionality you're after is to have your query criteria fields submit the page when values are entered/selected. the page should then branch back to itself using the submitted criteria in the query. because you're asking about dynamically adding in your where clause predicates, you should consider using a report region of type "SQL Query (Pl/sql Function Body Returning SQL Query)". that way you can use pl/sql to piece together your query based on the provided criteria.
so the part of your question i'm not sure of is when your page should submit itself ("without a GO button" as you said). for your first question, it seems to be a simple matter of javascript. you want users to be able to enter search criteria into a field and have that criteria be using in the report. to facilitate that we have a few self-submitting item types such as "SelectList with Submit" and "Text Field (always submits page when Enter pressed)". for your second question, it seems that you should have a Go button for the user to indicate he's done entering in his query criteria. anyhow, that's up to you, i suppose. hopefully this response will give you the concepts you need to implement this as you'd like.
regards,
raj
ps-after re-reading your post, i now realize there's a chance that you wanted users to not have to submit the page at all when filtering their result sets. if that's the case, you'd have to use javascript for that cumbersome feat. google would be a good place to go for that code. -
How to Make a Registration form
Hi
Can any one please tell me how to make a registartion form in Oracle9iAS Portal
for e.g
Login Id..
Password..
First Name..
etc
i want to insert data and then login with that user name and password actually in which table should i insert the data .....
Any other suggestions which can solve the purpose would be of great help
Please Help!!
Regards
PoojaIn the PDK-Java is Subscriber Registration Portlet (see: http://portalstudio.oracle.com/servlet/page?_pageid=414&_dad=ops&_schema=OPSTUDIO&_mode=3)
Please, check that one first.
Regards,
Jari
null -
Hi all, is it possible in a search form with uix shows always the edit criteria with execute button and not when I click the find button?
Please help!!!
Matteo.I want show the edit criteria with results. Is it possible? How can I do this?
Any suggestion will be appreciated.
Thanks, matteo. -
How to make Dynamically Shortened Text With "Show More"
Hi there! i want to know how to make dynamically shortened text with show more or read more in my website using HTML 5 pages or ASP.NET ?
example like these paragraphs
Lorem Ipsum är en utfyllnadstext från tryck- och förlagsindustrin. Lorem ipsum har varit standard ända sedan 1500-talet, när en okänd boksättare tog att antal bokstäver och blandade dem för att göra ett provexemplar av en bok. Lorem ipsum har inte bara överlevt fem århundraden, utan även övergången till elektronisk typografi utan större förändringar. Det blev allmänt känt på 1960-talet i samband med lanseringen av Letraset-ark med avsnitt av Lorem Ipsum, och senare med mjukvaror som Aldus PageMaker.
Det är ett välkänt faktum att läsare distraheras av läsbar text på en sida när man skall studera layouten. Poängen med Lorem Ipsum är att det ger ett normalt ordflöde, till skillnad från "Text här, Text här", och ger intryck av att vara läsbar text. Många publiseringprogram och webbutvecklare använder Lorem Ipsum som test-text, och en sökning efter "Lorem Ipsum" avslöjar många webbsidor under uteckling. Olika versioner har dykt upp under åren, ibland av olyckshändelse, ibland med flit (mer eller mindre humoristiska).
I motsättning till vad många tror, är inte Lorem Ipsum slumvisa ord. Det har sina rötter i ett stycke klassiskt litteratur på latin från 45 år före år 0, och är alltså över 2000 år gammalt. Richard McClintock, en professor i latin på Hampden-Sydney College i Virginia, översatte ett av de mer ovanliga orden, consectetur, från ett stycke Lorem Ipsum och fann dess ursprung genom att studera användningen av dessa ord i klassisk litteratur. Lorem Ipsum kommer från styckena 1.10.32 och 1.10.33 av "de Finibus Bonorum et Malorum" (Ytterligheterna av ont och gott) av Cicero, skriven 45 före år 0. Boken är en avhandling i teorier om etik, och var väldigt populär under renäsanssen. Den inledande meningen i Lorem Ipsum, "Lorem Ipsum dolor sit amet...", kommer från stycke 1.10.32.
Den ursprungliga Lorem Ipsum-texten från 1500-talet är återgiven nedan för de intresserade. Styckena 1.10.32 och 1.10.33 från "de Finibus Bonorum et Malorum" av Cicero hittar du också i deras originala form, åtföljda av de engelska översättningarna av H. Rackham från 1914.Moved to the main Dreamweaver support forum.
There are several ways you could approach this. Here's one you might try:
Give the first paragraph an ID, such as "first", and wrap the paragraphs you want to hide in a <div> with another ID, such as "more". Then add the following block of JavaScript just before the closing </body> tag of the page:
<script>
var first = document.getElementById('first'),
more = document.getElementById('more'),
trigger = document.createElement('span');
trigger.id = 'trigger';
trigger.innerHTML = 'Show less';
first.appendChild(trigger);
function toggleDiv() {
var state = more.className,
text = trigger.innerHTML;
more.className = (state == 'open') ? 'closed' : 'open';
trigger.innerHTML = (text == 'Show more') ? 'Show less' : 'Show more';
toggleDiv();
if (trigger.addEventListener) {
trigger.addEventListener('click', toggleDiv, false);
} else if (trigger.attachEvent) {
trigger.attachEvent('onclick', toggleDiv);
} else {
trigger.onclick = toggleDiv;
</script>
This gets references to the "first" paragraph and the "more" <div>. It also creates a <span> with the ID "trigger" that's appended to the "first" paragraph. The rest of the script defines a function called toggleDiv(), which toggles the "more" <div> open and closed, and changes the text in the "trigger" <span>.
You also need to create the following style rules for the various elements:
<style>
#trigger {
text-decoration: underline;
color: blue;
cursor: pointer;
#more {
transition: ease-out .7s;
overflow: hidden;
#more p:first-child {
margin-top: 0;
#more.closed {
height: 0;
-webkit-transform: translateY(-600px);
transform: translateY(-600px);
#more.open {
-webkit-transform: translateY(0);
transform: translateY(0);
max-height: 600px;
#more + p {
margin-top: 0;
</style>
This solution hides the text and creates the "trigger" <span> only if JavaScript is enabled in the browser. It should work in all browsers, including Internet Explorer 8 and earlier. -
How to make a contact form in Muse without email box?
As the title asks, how can I a make a contact form with asking just for name and phone number?
Thanks
Pavp_nath, hello
I had the same question for two days, before i find this thread.
You are described the impossibility of creating form without mandatory fields, but this was clear when i had work expirience in Muse. That's sad, because Muse is very helpful software for non-html users, or beginners (like me) and let not coding.
So, now question is that: will ever be possible to make these fields option?
Thank you.
p.s. Sorry for my english, writing from big, warm (only now) and boozy Russia. -
Can I automatically submit a WebApp Search form (with javascript) so the results show up automatically?
yes. I also interested in how to do it.
Maybe you are looking for
-
How do I add multiple Game Center accounts with one Apple ID and one device(I phone 4s)
I Need help adding more then one Game Center account to my iphone and I don't want to make a new Apple ID please help and thanks to all who answer.
-
Error while opening the CAF runtime configurator
Dear Experts, I am very much new to the CAF, and working on it initially. Let me explain what exactly i did. 1. Created a New development Project. 2. Created an entity under entity services. 3. Created an operation under operation tab. This is a find
-
can't install from application install dvd and i can't update to 10.6.8 after i restore my macbook pro from mountain lion. when restart and i press command it still has recovery mountain lion show on my screen.
-
Cannot update 6th gen iPod nano.
Hi all, I am trying to update music and software but I get the following message .... "The iPod ....... cannot update because it contains files that are in use by another application". I have done a couple of resets and have tried the restore in iTun
-
I got a early 2008 MAC PRO with additional wireless keyboard and mighty mouse few weeks ago. Recently I keep encountering the "bluetooth not available" problem after software update (system reboot) if I have USB devices attached to the MAC PRO. Also,