How to select an item from a dropdown menu using Enter key
A website I frequently use opens with a dropdown menu. Using my former browser, I was able to select the an item from the dropdown list by hitting the first letter with my keyboard and then hitting Enter. (Think of entering an address and selecting TX from a dropdown menu of states. Often you can hit T twice to get to TX and then the Enter key will advance the cursor to the zip code field.) Since converting to Firefox, the Enter key no longer works to advance to the next screen...I now have to move the mouse to a "Go" button and click it after selecting the desired item from the downdown menu. It's a small thing, but constantly switching back and forth between mouse and keyboard is becoming annoying. Is there an option in Firefox to select items simply by highlighting them in the dropdown menu and hitting the Enter key, instead of having to use the mouse to click a "Go" button? Thanks
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
* Help > Restart with Add-ons Disabled
* Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
* https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
Similar Messages
-
How to select an item from dropdownbox
Hi all
I have two dropdownlistbox. When I select an item in the first box,according to the selection, I have to add items in the second dropdownlistbox. I want the implementation of the onClientSelect="javascript:Sample();" of the first dropdownbox "drop1" using
<script>
function Sample(){
//I want the implementation to be done here
</script>
in my jsp.
How do I additem to the second dropdownbox "drop2" inside the script tag?Please help me with this.
Thanks in advance
Regards
Harini SIf you want to populate the second box in the javascript, iam giving you a working sample that might get you started.
If you are playing with htmlb and want the second dropdown to be populated with values from database, then you shud pass the selected value to Dynpage and process it!
<b>SAMPLE Javascript for multiple dropdown boxes:</b>
<HEAD>
<script type="text/javascript">
var arrItems1 = new Array();
var arrItemsGrp1 = new Array();
arrItems1[3] = "Truck";
arrItemsGrp1[3] = 1;
arrItems1[4] = "Train";
arrItemsGrp1[4] = 1;
arrItems1[5] = "Car";
arrItemsGrp1[5] = 1;
arrItems1[6] = "Boat";
arrItemsGrp1[6] = 2;
arrItems1[7] = "Submarine";
arrItemsGrp1[7] = 2;
arrItems1[0] = "Planes";
arrItemsGrp1[0] = 3;
arrItems1[1] = "Ultralight";
arrItemsGrp1[1] = 3;
arrItems1[2] = "Glider";
arrItemsGrp1[2] = 3;
var arrItems2 = new Array();
var arrItemsGrp2 = new Array();
arrItems2[21] = "747";
arrItemsGrp2[21] = 0
arrItems2[22] = "Cessna";
arrItemsGrp2[22] = 0
arrItems2[31] = "Kolb Flyer";
arrItemsGrp2[31] = 1
arrItems2[34] = "Kitfox";
arrItemsGrp2[34] = 1
arrItems2[35] = "Schwietzer Glider";
arrItemsGrp2[35] = 2
arrItems2[99] = "Chevy Malibu";
arrItemsGrp2[99] = 5
arrItems2[100] = "Lincoln LS";
arrItemsGrp2[100] = 5
arrItems2[57] = "BMW Z3";
arrItemsGrp2[57] = 5
arrItems2[101] = "F-150";
arrItemsGrp2[101] = 3
arrItems2[102] = "Tahoe";
arrItemsGrp2[102] = 3
arrItems2[103] = "Freight Train";
arrItemsGrp2[103] = 4
arrItems2[104] = "Passenger Train";
arrItemsGrp2[104] = 4
arrItems2[105] = "Oil Tanker";
arrItemsGrp2[105] = 6
arrItems2[106] = "Fishing Boat";
arrItemsGrp2[106] = 6
arrItems2[200] = "Los Angelas Class";
arrItemsGrp2[200] = 7
arrItems2[201] = "Kilo Class";
arrItemsGrp2[201] = 7
arrItems2[203] = "Seawolf Class";
arrItemsGrp2[203] = 7
function selectChange(control, controlToPopulate, ItemArray, GroupArray) {
var myEle ;
var x ;
// Empty the second drop down box of any choices
for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;
if (control.name == "firstChoice") {
// Empty the third drop down box of any choices
for (var q=form.thirdChoice.options.length;q>=0;q--) form.thirdChoice.options[q] = null;
// ADD Default Choice - in case there are no values
myEle = document.createElement("option") ;
myEle.value = 0 ;
myEle.text = "[SELECT]" ;
// controlToPopulate.add(myEle) ;
controlToPopulate.appendChild(myEle)
// Now loop through the array of individual items
// Any containing the same child id are added to
// the second dropdown box
for ( x = 0 ; x < ItemArray.length ; x++ ) {
if ( GroupArray[x] == control.value ) {
myEle = document.createElement("option") ;
//myEle.value = x ;
myEle.setAttribute('value',x);
// myEle.text = ItemArray[x] ;
var txt = document.createTextNode(ItemArray[x]);
myEle.appendChild(txt)
// controlToPopulate.add(myEle) ;
controlToPopulate.appendChild(myEle)
function selectChange(control, controlToPopulate, ItemArray, GroupArray) {
var myEle ;
var x ;
// Empty the second drop down box of any choices
for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;
if (control.name == "firstChoice") {
// Empty the third drop down box of any choices
for (var q=form.thirdChoice.options.length;q>=0;q--) form.thirdChoice.options[q] = null;
// ADD Default Choice - in case there are no values
myEle=document.createElement("option");
theText=document.createTextNode("[SELECT]");
myEle.appendChild(theText);
myEle.setAttribute("value","0");
controlToPopulate.appendChild(myEle);
// Now loop through the array of individual items
// Any containing the same child id are added to
// the second dropdown box
for ( x = 0 ; x < ItemArray.length ; x++ ) {
if ( GroupArray[x] == control.value ) {
myEle = document.createElement("option") ;
//myEle.value = x ;
myEle.setAttribute("value",x);
// myEle.text = ItemArray[x] ;
var txt = document.createTextNode(ItemArray[x]);
myEle.appendChild(txt)
// controlToPopulate.add(myEle) ;
controlToPopulate.appendChild(myEle)
</script>
</HEAD>
<BODY>
<form name=form>
<table align="center">
<tr>
<td>
<select id="firstChoice" name="firstChoice" onchange="selectChange(this, form.secondChoice, arrItems1, arrItemsGrp1);">
<option value="0" selected>[SELECT]</option>
<option value="1">Land</option>
<option value="2">Sea</option>
<option value="3">Air</option>
</select>
</td><td>
<select id="secondChoice" name="secondChoice" onchange="selectChange(this, form.thirdChoice, arrItems2, arrItemsGrp2);">
</select>
<select id="thirdChoice" name="thirdChoice">
</select>
</td>
</tr>
</table>
</form> -
How to select an item from a jspx file from a bean
Hi all,
I have a creation.jspx page that create / modify employee infos. I selected an employee from a table and then, I want to be able to modify some attributes. So, I need to enable a "save" button in the jspx page when I select an employee.
I created a : +selectionListener="#{selectedColumn.t1_selectionListener}"+
and a bean to control it:
+package Bean;+
+import org.apache.myfaces.trinidad.event.AttributeChangeEvent;+
+import org.apache.myfaces.trinidad.event.SelectionEvent;+
+public class selectedColumn {+
+public selectedColumn() {+
+}+
+public void t1_selectionListener(SelectionEvent selectionEvent) {+
*What code do I put in there to access a button element of the jspx page?*
+}+
+}+
The button is in the page, *but not* in the component that calls this event.
Thanks :)Hi Maxime.
Easy way to achieve it:
- Go to Property Inspector of your "save" button.
- In Advanced -> Binding, create a binding to your button in your Backing Bean where is your selectedColumn method.
- Now you have in your Backing Bean your button accesible and now you can enable or disable it with next code:
this.myButton.setDisabled(false);
AdfFacesContext.getCurrentInstance().addPartialTarger(myButton);Regards. -
New "long pause" when I'm trying to select an item from a long menu?
So, just in the past few days whenever I try to select an item out of a long menu, I'm unable to select it until after a long pause of approx 30 seconds. For example, in Handbrake if I scroll through chapters and want to pick a certain chapter, the program sits for about 30 seconds before it will select the chapter.
This has also happened in Itunes when I'm trying to select a genre. It will allow me to scroll all the way down with no problem but when I try to select the genre it sits there for about 30 seconds before doing anything.
Anybody else having this issue? Any fixes?
Thanks.nobody else having this happen?
-
I'm using JDev 11.1.1.6 and when I type a value into an af:inputListOfValues component and hit either the enter key or the tab key it will replace the value I entered with the first item in the LOV result set. If enter a value and just click out of the af:inputListOfValues component it works correctly. If I use the popup and search for a value it works correctly as well. I have a programmatic view object which contains a single transient attribute (this is the view object which is used to create the list of value component from) and then I have another entity based view object which defines one of its attributes as a list of value attribute. I tried using an entity based view object to create the LOV from and everything works as expected so I'm not sure if this is a bug when using programmatic view objects or if I need more code in the VOImpl. Also, it seems that after the first time of the value being replaced by the first value in the result set that it will work correctly as well. Below are some of the important code snippets.
Also, it looks like it only doesn't work if the text entered in the af:inputListOfValues component would only have a single match returned in the result set. For instance given the result set in the code: Brad, Adam, Aaron, Fred, Charles, Charlie, Jimmy
If we enter Cha, the component works as expected
If we enter A, the component works as expected
If we enter Jimmy, the component does not work as expected and returns the first value of the result set ie. Brad
If we enter Fred, the component does not work as expected and returns the first value of the result set ie. Brad
I also verified that I get the same behavior in JDev 11.1.1.7
UsersVOImpl (Programmatic View Object with 1 transient attribute)
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import oracle.adf.share.logging.ADFLogger;
import oracle.jbo.JboException;
import oracle.jbo.server.ViewObjectImpl;
import oracle.jbo.server.ViewRowImpl;
import oracle.jbo.server.ViewRowSetImpl;
// --- File generated by Oracle ADF Business Components Design Time.
// --- Wed Sep 18 15:59:44 CDT 2013
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
public class UsersVOImpl extends ViewObjectImpl {
private static ADFLogger LOGGER = ADFLogger.createADFLogger(UsersVOImpl.class);
private long hitCount = 0;
* This is the default constructor (do not remove).
public UsersVOImpl () {
* executeQueryForCollection - overridden for custom java data source support.
protected void executeQueryForCollection (Object qc, Object[] params, int noUserParams) {
List<String> usersList = new ArrayList<String>();
usersList.add("Brad");
usersList.add("Adam");
usersList.add("Aaron");
usersList.add("Fred");
usersList.add("Charles");
usersList.add("Charlie");
usersList.add("Jimmy");
Iterator usersIterator = usersList.iterator();
setUserDataForCollection(qc, usersIterator);
hitCount = usersList.size();
super.executeQueryForCollection(qc, params, noUserParams);
} // end executeQueryForCollection
* hasNextForCollection - overridden for custom java data source support.
protected boolean hasNextForCollection (Object qc) {
Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
if (usersListIterator.hasNext()) {
return true;
} else {
setFetchCompleteForCollection(qc, true);
return false;
} // end if
} // end hasNextForCollection
* createRowFromResultSet - overridden for custom java data source support.
protected ViewRowImpl createRowFromResultSet (Object qc, ResultSet resultSet) {
Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
String user = (String)usersListIterator.next();
ViewRowImpl viewRowImpl = createNewRowForCollection(qc);
try {
populateAttributeForRow(viewRowImpl, 0, user.toString());
} catch (Exception e) {
LOGGER.severe("Error Initializing Data", e);
throw new JboException(e);
} // end try/catch
return viewRowImpl;
} // end createRowFromResultSet
* getQueryHitCount - overridden for custom java data source support.
public long getQueryHitCount (ViewRowSetImpl viewRowSet) {
return hitCount;
} // end getQueryHitCount
@Override
protected void create () {
getViewDef().setQuery(null);
getViewDef().setSelectClause(null);
setQuery(null);
} // end create
@Override
protected void releaseUserDataForCollection (Object qc, Object rs) {
Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
usersListIterator = null;
super.releaseUserDataForCollection(qc, rs);
} // end releaseUserDataForCollection
} // end class
<af:inputListOfValues id="userName" popupTitle="Search and Select: #{bindings.UserName.hints.label}" value="#{bindings.UserName.inputValue}"
label="#{bindings.UserName.hints.label}" model="#{bindings.UserName.listOfValuesModel}" required="#{bindings.UserName.hints.mandatory}"
columns="#{bindings.UserName.hints.displayWidth}" shortDesc="#{bindings.UserName.hints.tooltip}" autoSubmit="true"
searchDesc="#{bindings.UserName.hints.tooltip}"
simple="true">
<f:validator binding="#{bindings.UserName.validator}"/>
</af:inputListOfValues>I have found a solution to this issue. It seems that when using a programmatic view object which has a transient attribute as its primary key you need to override more methods in the ViewObjectImpl so that it knows how to locate the row related to the primary key when the view object records aren't in the cache. This is why it would work correctly sometimes but not all the time. Below are the additional methods you need to override. The logic you use in retrieveByKey would be on a view object by view object basis and would be different if you had a primary key which consisted of more than one attribute.
@Override
protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i) {
return retrieveByKey(viewRowSetImpl, null, key, i, false);
@Override
protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, String string, Key key, int i, boolean b) {
RowSetIterator usersRowSetIterator = this.createRowSet(null);
Row[] userRows = usersRowSetIterator.getFilteredRows("UserId", key.getAttribute(this.getAttributeIndexOf("UserId")));
usersRowSetIterator.closeRowSetIterator();
return userRows;
@Override
protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i, boolean b) {
return retrieveByKey(viewRowSetImpl, null, key, i, b); -
How to select LOV items from edit report / form?
I'm new to ApEx 3 with very little web developer knowledge.
I have a create record form (Page1) that uses single-select and multi-select LOVs and correctly inserts the data into a table.
I have a basic report (tabular form) (Page2) that shows the records with the correct LOV information. When I click the edit icon for a row on Page2, Page1 displays row data for each field except the LOVs. There are no selections made in any of the LOVs.
How do I make the connection between the tabular report and the edit form LOVs?
Thx for your assistance.It turns out that the imported data did not match the LOV values. We changed the ETL processing, and now the LOV values are selected as expected.
-
How to select specific element from a XML document using JDBC?
Hi all,
I have a problem with selecting specific XML element in Oracle 11g release 1 from my java application. Data are stored in object-relational storage.
My file looks like:
<students>
<student id="1">
</student>
<student id="2">
</student>
<student id="3">
</student>
</students>
I need to select a specific <student> element. I've already tried few ways to achieve my goal but I failed.
SELECT extract(OBJECT_VALUE,'/students/student') FROM students - works fine, but this selects all <student> elements
SELECT extract(OBJECT_VALUE,'/students/student[1]') FROM students - which should select first <student> element works too but it causes exception when using JDBC driver returns:
java.sql.SQLException: Only LOB or String Storage is supported in Thin XMLType
at oracle.xdb.XMLType.processThin(XMLType.java:2817)
at oracle.xdb.XMLType.<init>(XMLType.java:1238)
at oracle.xdb.XMLType.createXML(XMLType.java:698)
at oracle.xdb.XMLType.createXML(XMLType.java:676)
at cz.zcu.hruby.data.Select.getStudent(Select.java:45)
SELECT to_clob(extract(OBJECT_VALUE,'/students/student[1]')) FROM students - in this case I hoped that DB would convert result to CLOB but the element is quite large (definitely more than 4000 Bytes long which I find out from forum is limit). But this exception occurs:
java.sql.SQLException: ORA-19011: Character string buffer too small
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:897)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at cz.zcu.hruby.data.Select.getStudent(Select.java:40)
SELECT to_lob(extract(OBJECT_VALUE,'/students/student[1]')) FROM students - I hoped I can convert return value to a LOB value but that doesn't work for me either:
java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected -, got -
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at cz.zcu.hruby.data.Select.getStudent(Select.java:40)
This behaviour raises two questions:
1) Why SELECT extract(OBJECT_VALUE,'/students/student') FROM students works but SELECT extract(OBJECT_VALUE,'/students/student[1]') FROM students does't ?
2) Is there any way how I can select specific element (element XPath /students/student[@id="some value"]) and convert it to String?
Thanks for your responses I would appreciate any suggestion
HonzaTo be exact my <student> element is a bit complicated and looks like the one at the end of this post (sorry but it's in czech). And I need to select whole xml fragment (all opening and closing tags included) as it is shown. Maybe I used wrong solution and I should use CLOB storage. I discuss this issue here: Which solution for better perfomance?
Thanks anyway for your response. I would be very grateful if you have any further idea
<Student RodneCislo="8051015555">
<Jmeno>Petra</Jmeno>
<Prijmeni>Nováková</Prijmeni>
<RodnePrijmeni>Novotná</RodnePrijmeni>
<TitulPred>Bc.</TitulPred>
<TitulZa>MBA.</TitulZa>
<Adresa>
<Okres>3702</Okres>
<Obec>582786</Obec>
<CastObce>11908</CastObce>
<Ulice>Nova</Ulice>
<UliceCislo>4</UliceCislo>
<PSC>60000</PSC>
<Stat>203</Stat>
</Adresa>
<RodinnyStav>1</RodinnyStav>
<StredniSkola>000559024</StredniSkola>
<RokMatZkousky>2001</RokMatZkousky>
<PPStudent DatumVerifikace="2006-08-04">
<SoubeznaStudia>1</SoubeznaStudia>
<SoubeznaStudiaMaxDelka>2.0</SoubeznaStudiaMaxDelka>
<CelkovaDobaStudia>1817</CelkovaDobaStudia>
</PPStudent>
<Studia>
<Studium VSFakulta="14330" StudijniProgram="B1801" ZapisDoStudia="2001-07-10">
<DelkaStudia>5.0</DelkaStudia>
<NovePrijaty>N</NovePrijaty>
<NavazujiciStudProgram>N</NavazujiciStudProgram>
<PredchoziVzdelani>K</PredchoziVzdelani>
<PocetRocniku>5</PocetRocniku>
<AktualniRocnik>5</AktualniRocnik>
<UbytovaniVKoleji>3</UbytovaniVKoleji>
<UkonceniStudia Datum="2004-06-28" Zpusob="1" UdelenyTitul="Bc."/>
<StudiumEtapy>
<StudiumEtapa PlatnostOd="2001-07-10">
<ObcanstviKvalifikator>1</ObcanstviKvalifikator>
<ObcanstviStat>203</ObcanstviStat>
<PobytVCR>A</PobytVCR>
<JazykVyuky>cze</JazykVyuky>
<StudijniObory>
<Obor>1801R001</Obor>
<Obor>1801R005</Obor>
</StudijniObory>
<AprobaceOboru>
<Aprobace>01</Aprobace>
</AprobaceOboru>
<MistoVyuky>582786</MistoVyuky>
<FormaStudia>P</FormaStudia>
<Financovani>1</Financovani>
<PreruseniStudia>S</PreruseniStudia>
<PlatnostDo>2002-04-24</PlatnostDo>
</StudiumEtapa>
<StudiumEtapa PlatnostOd="2002-04-24">
<ObcanstviKvalifikator>1</ObcanstviKvalifikator>
<ObcanstviStat>203</ObcanstviStat>
<PobytVCR>A</PobytVCR>
<StudijniPobyt Forma="V" Program="51" Stat="056"/>
<JazykVyuky>cze</JazykVyuky>
<StudijniObory>
<Obor>1801R001</Obor>
<Obor>1801R005</Obor>
</StudijniObory>
<AprobaceOboru>
<Aprobace>01</Aprobace>
</AprobaceOboru>
<MistoVyuky>582786</MistoVyuky>
<FormaStudia>P</FormaStudia>
<Financovani>1</Financovani>
<PreruseniStudia>S</PreruseniStudia>
<PlatnostDo>2002-09-01</PlatnostDo>
</StudiumEtapa>
<StudiumEtapa PlatnostOd="2002-09-01">
<ObcanstviKvalifikator>1</ObcanstviKvalifikator>
<ObcanstviStat>203</ObcanstviStat>
<PobytVCR>A</PobytVCR>
<JazykVyuky>cze</JazykVyuky>
<StudijniObory>
<Obor>1801R001</Obor>
<Obor>1801R005</Obor>
</StudijniObory>
<AprobaceOboru>
<Aprobace>01</Aprobace>
</AprobaceOboru>
<MistoVyuky>582786</MistoVyuky>
<FormaStudia>P</FormaStudia>
<Financovani>1</Financovani>
<PreruseniStudia>S</PreruseniStudia>
<PlatnostDo>2004-06-28</PlatnostDo>
</StudiumEtapa>
</StudiumEtapy>
</Studium>
<Studium VSFakulta="14330" StudijniProgram="N1802" ZapisDoStudia="2004-06-29">
<DelkaStudia>2.0</DelkaStudia>
<NovePrijaty>N</NovePrijaty>
<NavazujiciStudProgram>A</NavazujiciStudProgram>
<PredchoziVzdelani>R</PredchoziVzdelani>
<PocetRocniku>2</PocetRocniku>
<AktualniRocnik>1</AktualniRocnik>
<UbytovaniVKoleji>3</UbytovaniVKoleji>
<SocialniStipendia>
<SocialniStipendium NarokOd="2006-01-01">
<NarokDo>2006-10-30</NarokDo>
</SocialniStipendium>
</SocialniStipendia>
<UkonceniStudia Datum="" Zpusob="" UdelenyTitul=""/>
<PPStudium DatumVerifikace="2006-07-01">
<NovePrijatyVerif>N</NovePrijatyVerif>
<NovePrijatyKvalif>N</NovePrijatyKvalif>
<NavazujiciStudProgramVerif>A</NavazujiciStudProgramVerif>
<UkonceniStudiaVerif/>
<FinancovanoCR>A</FinancovanoCR>
<SberId>38</SberId>
<DobaStudia>
<Cista>733</Cista>
<VcetneNeuspechuDanehoTypu>733</VcetneNeuspechuDanehoTypu>
<VcetneVsechNeuspechu>733</VcetneVsechNeuspechu>
</DobaStudia>
<PrestoupenoKamPosledni VSFakulta="14330" StudijniProgram="N1802" ZapisDoStudia="2004-06-29"/>
<UbytovaciStipendiumKod/>
</PPStudium>
<StudiumEtapy>
<StudiumEtapa PlatnostOd="2004-06-29">
<ObcanstviKvalifikator>1</ObcanstviKvalifikator>
<ObcanstviStat>203</ObcanstviStat>
<PobytVCR>A</PobytVCR>
<JazykVyuky>eng</JazykVyuky>
<StudijniObory>
<Obor>1801T001</Obor>
<Obor>1801T025</Obor>
</StudijniObory>
<AprobaceOboru>
<Aprobace>01</Aprobace>
</AprobaceOboru>
<MistoVyuky>582786</MistoVyuky>
<FormaStudia>P</FormaStudia>
<Financovani>1</Financovani>
<PreruseniStudia>S</PreruseniStudia>
<PlatnostDo/>
<PPStudiumEtapa DatumVerifikace="2006-07-01">
<FinancovaniVerif>1</FinancovaniVerif>
<StudentRozpoctovy>O</StudentRozpoctovy>
<SberId>38</SberId>
</PPStudiumEtapa>
</StudiumEtapa>
</StudiumEtapy>
</Studium>
</Studia>
</Student> -
How to retrive latest items from different site collection using content search web part
I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
-http://applicationname/teamsite
-http://applicationname/enterprisewik
Now I need to display the latest 10 wiki pages that are inside the enterprise wiki site collection (according to the modified date) inside the team site. So I read that using Content search web part allows for cross-site content query.
So I added a new content search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's library and to specify that I need to get the latest 10 wiki pages using the
content search web part's query dialog box? Can anyone advice please ?
ThanksEdit the webpart and click change query in search criteria. click on switch to advanced mode and enter your path:
(path:"http://applicationname/teamsite" OR path:"http://applicationname/enterprisewik")
you can specify sorting by created date and click ok. in number of items to show, type 10. this should fulfill your requirement.
For further reading, here are some links:
http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
http://blogs.technet.com/b/tothesharepoint/archive/2013/04/30/stage-9-configure-the-
query-in-a-content-search-web-part-on-a-category-page.aspx
http://blogs.technet.com/b/tothesharepoint/archive/2013/05/23/stage-10-configure-the-query-in-a-content-search-web-part-on-a-catalog-item-page.aspx
kashif -
I have a table with info and would like to select an item from that table
Hi
I have a table with info (course info that I searched for) and would like to select an item from that table to use for further use in my application.
It must work more or less like the tree structure where I can use an On Action select.
In other words; let say I am looking for all courses with "Advisor" it its descriptin / name, I want to click on one of the names and use it lets say to book people on.
Could some please assist me with this.
Regards
DebbieHi
The datasource for my table is the node searchcatalog. Under this node there is an attribute calles description where the items found are displayed.
I changed my code as follow:
data: ls_table type wd_This->Elements_searchcatalog,
lr_element type ref to if_wd_context_element.
DATA lo_nd_searchcatalog TYPE REF TO if_wd_context_node.
DATA lo_el_searchcatalog TYPE REF TO if_wd_context_element.
DATA ls_searchcatalog TYPE wd_this->element_searchcatalog.
navigate from <CONTEXT> to <SEARCHCATALOG> via lead selection
lo_nd_searchcatalog = wd_context->get_child_node( name = wd_this->wdctx_searchcatalog ).
@TODO handle not set lead selection
IF lo_nd_searchcatalog IS INITIAL.
ENDIF.
get element via lead selection
lo_el_searchcatalog = lo_nd_searchcatalog->get_element( ).
@TODO handle not set lead selection
IF lo_el_searchcatalog IS INITIAL.
ENDIF.
get all declared attributes
lo_el_searchcatalog->get_static_attributes(
IMPORTING
static_attributes = ls_searchcatalog ).
lo_nd_searchcatalog->get_lead_selection->( exporting index = wdevent->index importing
element = lr_element ).
lr_element->get_static_attributes->( importing static_attributes = ls_table ).
wd_context->set_attribute( exporting name = 'SELECTED' value = ls_table-description ).
When I try to activate it errors with: List elements that take up more than one line is not allowed. This error at the sentence: lo_el_searchcatalog->get_static_attributes(
If you cannot assist me further I will understand. Thank you. -
Hi Everyone
Please advise: how do I select multiple items when on Safari? Ex. when I have to select multiple countries where I have worked.Hi Carolyn
I am trying to select multiple items from a list on a particular website. I tried using the 'command' button, but to no avail.
Grateful for any advice. -
How can I select an item from a list component with a seperate button
This is a repost, I decided it'd probably be better here than
in the general discussion board. I will try to delete the other
one.
Hello Everyone,
This is my first post here. I am trying to figure out how to
select an item within a list component with a button. This button
is calling a function. I have searched for the past 3 hours online
and I can't find anything about it. I thought perhaps I could set
the selectedItem parameter, but that is read only, and I believe it
returns an object reference rather than something like a number so
even if i could set it, it would be pointless. I also found a get
focus button, thought that may lead me somewhere, but I think that
is for setting which component has focus currently as far as typing
in and things like that. I am lost.
Basically I am looking for a way to type this
myList.setSelected(5); where 5 is the 5th item in the list.
Any help would be much appreciated.Never mind found it. It is the property called selectedIndex
and it is writable -
I tried to select an item from a drop down list on a web page in safari and discovered that the list disapeared to quickly for me to make a selection. Has anyone else found this and solved the problem. Many thanks.
Demo wrote:
I tried it on my iPad and I see what you mean. From what I can see when I go to the site on my Mac, it is Flash based and that will not work anyway.
Actually, it is Javascript and uses the 'onmouseover' event. -
How do you select individual items from within a group?
Hi, All.
New poster. Forgive me if I miss any forum etiquette.
Currently using Indesing CS6 on Mac Osx 10.7.4
I'm a relatively recent convert to Indesign from Quark, and one thing I seem to have continual problems with is selecting individual items from within a group.
For example I will have a grouped item, such as price marker that is comprised of several individual items, some text boxes, some rectangles.
I find there is no way to select a rectangle that is currently placed behind a transparent text box without ungrouping the entire item - which isn't really an option.
The select options (slect next item below etc. just don't work)
For any Quark users out there, the equivalent command I'm looking for is the cmd+opt+shift click through, which just worked absolutely perfectly.
I have scoured the internet and forums looking for an answer for this, as I assumed it must be my own lack of knowledge, but I can't find an answer.
Any help much appreciated.
ThanksHi, winterm.
Thanks for the super quick repsonse. Unfortunately that hasn't seemed to have helped me.
That works fine as long as the grouped items are overlapping or apart, but not when items are entirely behind another item (ie, no part protruding from the group)
The problem is that if I double click to try and get through a text box to an item that is entirely behind it, then it just switches into text edit mode for the top text box.
If it helps, could you imagine a transparent text box that is 20x20 with red rectangle centred beneath it that is 10x10. If the 2 items are grouped I cant find any way to select through to the red rectangle without first ungrouping the two.
Am I going mad? -
How to get all the values from the dropdown menu
How to get all the values from the dropdown menu
I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
How do I get number of item is selection dropdown?
How do I extract a ?name? for each value, one by one?
How do I change a selection by referring to particular index of the item in a dropdown menu?
Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
Message was edited by: testtestThe findElement method allows various attributes to be used to search. Take the following two examples for the element below:
<Select Name=ProdType ID=testProd>
</Select>
I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
If I want to search by id I could do the following:
Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
You can use the FindElement to grab links, text boxes, etc.
The next example grabs from a link on a page
Home
Set x = RSWApp.om.FindElement("Home","A","innerText")
I hope this helps clear it up. -
Fetching more than one row from a table after selecting one value from the dropdown
Hi Experts,
How can we fetch more than one row from a table after selecting one value from the dropdown.
The scenario is that I have some entries in the dropdown like below
A B C
11256 VID 911256
11256 VID 811256
11256 SONY 11256
The 'B' values are there in the dropdown. I have removed the duplicate entries from the dropdown so now the dropdownlist has only two values.for eg- 'VID' and'SONY'. So now, after selecting 'VID' from the dropdown I should get all the 'C' values. After this the "C' values are to be passed to other methods to fetch some data from other tables.
Request your help on this.
Thanks,
Preeetam Narkhede.Hi Preetam!
I hope I understand your request proberly, since this is more about Java and less about WebDynpro, but if I'm wrong, just follow up on this.
Supposed you have some collection of your original table data stored in variable "origin". Populate a Hashtable using the values from column "B" (let's assume it's Strings) as keys and an ArrayList of whatever "C" is (let's assume String instances, too) as value (there's a lot of ways to iterate over whatever your datasource is, and since we do not know what your datasource is, maybe you'll have to follow another approach to get b and c vaues,but the principle should remain the same):
// Declare a private variable for your Data at the appropriate place in your code
private Hashtable temp = new Hashtable<String, ArrayList<String>>();
// Then, in the method you use to retrieve backend data and populate the dropdown,
// populate the Hashtable, too
Iterator<TableData> a = origin.iterator();
while (a.hasNext()) {
TableData current = a.next();
String b = current.getB();
String c = current.getC();
ArrayList<String> values = this.temp.get(b);
if (values == null) {
values = new ArrayList<String>();
values.add(c);
this.temp.put(b, values);
So after this, you'll have a Hashtable with the B values als keys and collections of C values of this particular B as value:
VID --> (911256, 811256)
SONY --> (11256)
Use
temp.keySet()
to populate your dropdown.
After the user selects an entry from the dropdown (let's say stored in variable selectedB), you will be able to retrieve the collection of c's from your Hashtable
// In the metod you handle the selection event with, get the c value collection
//and use it to select from your other table
ArrayList<String> selectedCs = this.temp.get(selectedB);
// now iterate over the selectedCs items and use each of these
//to continue retrieving whatever data you need...
for (String oneC : selectedCs) {
// Select Data from backend using oneC in the where-Clause or whatever...
Hope that helps
Michael
Maybe you are looking for
-
Help with HP Deskjet Ink Advantage 2020hc
why after printing a document, my printer always paper jam, all paper is out whit no printing, just out from tray, until out of paper..after that my printer stil blinking whit error "paperjam" This question was solved. View Solution.
-
5 hours after reading here: (so much information that says "yes" "maybe" "no".....) I want and have to change my actual MacPro (late 2007) to a newer one, because without my business is over. The newest one (end 2013) is not possible, because my othe
-
How to connect Sony HDR Cx100E on imovie using USB
Hi, I am not able to connect my SONY HDR Cx100E on imovie using USB, at the same time I can connect the same to aperture and iphoto. Can any one help me please? if you can give me the step by step info will be a great help for me. thanks in advance
-
R3AC1- Object Bus_Trans_Msg source and target sites missing
Hi, In the Txn code: R3AC1 for the object Bus_Trans_Msg we need to enter the source- CRM and target site-R/3 under the tab Initial flow settings which is not editable. when we do initial download of this object in txn:R3AS if throws an error. Please
-
Hi Cannot run MapLoader. After installing MapLoader on my PC the maploader.exe is not present. Can antone help? finni