Filtering XMLList used for DataGrid
I'm using an HTTPService to load a database table into an
XMLList, which is then used as the dataProvider for a dataGrid. I
can't find anything online for filtering this datagrid , i can only
find stuff for filtering using an ArrayCollection, can someone help
me? I'd prefer not to have to send HTTPService requests back and
forth for filter the datagrid, I'd rather just filter the XMLList
that was loaded at the start of the application
"cokeeffe" <[email protected]> wrote in
message
news:gm1vfg$5ja$[email protected]..
> OK, I've got it to work using this
>
> var items:XMLList = event.result.person.(city ==
txtSearch.text);
>
> where txtSearch is a text box. However my problem now
is, I have to spell
> the
> word fully and correctly for it to show the appropriate
results. If I
> don't,
> while I'm typing the word, the datagrid goes empty, and
then once spelt
> correctly, the results appear.
>
> So is there a way to show the relevant results while im
typing the word.
>
> EG, If I wanted New York results to appear, If I type in
Ne , most words
> beginning with Ne would appear in the datagrid.
>
> Kind of like how the % or modulus works in SQL queries
to show similar
> results.
Use a filterFunction on the dataProvider.
Similar Messages
-
How to dispatch custom events from an item renderer used for Datagrid Column
Hi,
I am using an Item Renderer for a Data Grid Column and in that mxml, I am dispatching a custom event with data.
But the main mxml which has the DataGrid is not able to resolve the event. How can I solve this?
ThanksHi,
This is the constructor for Event.
public function Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
When you created your custom event after extending from Event, for the parent container receives the event, the bubbles property must be set to true.
Please check if you have done so. That should solve the problem. Let me know if it doesn't.
Nishad -
Revision: 11585
Author: [email protected]
Date: 2009-11-09 13:39:53 -0800 (Mon, 09 Nov 2009)
Log Message:
Initial check-in of CoreTech's pixel bender kernel files for the pixel bender filters we use to mimic AIM blendModes based on Vera's ok. Added the standard Flex copyright headers to what Core Tech passed along.
QE notes: None
Doc notes: None
Bugs: None
Reviewer: Me
Tests run: Checkintests
Is noteworthy for integration: Yes, perhaps, to downstream teams that want to rebuild the pixel bender filters
Added Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Colo r.pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Colo rBurn.pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Colo rDodge.pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Excl usion.pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Hue. pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Lumi nosity.pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Lumi nosityMaskFilter.pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Satu ration.pbk
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Soft Light.pbk -
SQL Server Policy Based Management Condition 'conditionname' cannot be used for filtering.
Using SQL Server 2008 R2, I am trying to create a condition to be used as a filter at the database level. So for each database, I would like to test the presence of a Database Extended Property using the following code in the Expression/Field:
ExecuteSql('String', 'SELECT value FROM sys.extended_properties WHERE class_desc = ''Database'' AND name=''somepropertyname''')
I created the condition using the Database Facet.
The condition can be evaluated in a policy, but I cannot use the condition as a filter for a policy against the "Database" filter. If I create a new condition that can be used as a filter and try to edit that condition, I receive the following
error:
"Condition 'conditionname' cannot be used for filtering."
I cannot find any documentation on the limitations of filters. I am assuming that ANY use of ExecuteSql would not be allowed. This filter is important because I am testing the @IsEncrypted of Every StoredProcedure, Every Database. If the
database extended property is present, I want to skip the test.
CorkChopHi, you resolved this issue? If yes, how?
[]'s | Rodrigo Ribeiro Gomes | MCTS/MCITP Dev/DBA -
Can a ComboBox be used for Text Input ?
Hi
In Ms Access the combo box can be used for text input for creating new lines in the Database instead of just being limited to the lines already there in the drop down list. Is this possible with the combo box available in Flex 4. If it is I haven't being successful in getting it to work.
Thanks for you help in advance
ParaicKWI am using a Dataservices Commit method to write to the Database via a button on the screen
When I type into the ComboBox's text input and click outside the combobox or on the commit button the application effectively freezes
SituationService is a CRUD type servicePHP to MYSQL and it works with the Datagrid
Here is the code -
ParaicKW
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:situationservice="services.situationservice.*">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
protected function Situation_creationCompleteHandler(event:FlexEvent):void
getAllTblsituationResult3.token = situationService.getAllTblsituation();
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
getAllTblsituationResult.token = situationService.getAllTblsituation();
protected function button1_clickHandler(event:MouseEvent):void
situationService.commit();
protected function vGroup_creationCompleteHandler(event:FlexEvent):void
getAllTblsituationResult2.token = situationService.getAllTblsituation();
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="updateSituationResult"/>
<situationservice:SituationService id="situationService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
<s:CallResponder id="getAllSituationResult"/>
<s:CallResponder id="getAllTblsituationResult"/>
<s:CallResponder id="getAllTblsituationResult2"/>
<s:CallResponder id="getAllTblsituationResult3"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:DataGrid x="96" y="167" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllTblsituationResult.lastResult}" editable="true" width="470" height="237">
<mx:columns>
<mx:DataGridColumn headerText="ID2" dataField="ID2"/>
<mx:DataGridColumn headerText="SITUATION" dataField="SITUATION" width="200"/>
</mx:columns>
</mx:DataGrid>
<s:Button label="Commit Updates" click="button1_clickHandler(event)"/>
<s:HGroup width="90%" height="80%" verticalCenter="20" horizontalCenter="0">
<mx:ComboBox width="476" id="cmbSituation" creationComplete="Situation_creationCompleteHandler(event)" dataProvider="
{getAllTblsituationResult3.lastResult}" labelField="SITUATION" editable="true">
</mx:ComboBox>
<s:TextArea width="426" id="textArea" text="{getAllTblsituationResult3.lastResult.SITUATION}"/>
<s:Button label="Back" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex-1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
<s:Button label="Forward" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex+1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
</s:HGroup>
</s:Application> -
Filtering not working for newly added child objects in master-detail table
Hi,
I am using Jdeveloper 11.1.1.4 version.
Problem scenario:
Filtering of records is not working for newly created child objects in a master-detail scenario.
Steps to reproduce this issue using HR Schema (using LOCATIONS and DEPARTMENTS table ) :
1. Create Business components (EO's & VO's ) for LOCATIONS & DEPARTMENTS table)
1. Create a .jspx page and insert a readonly master table of Locations
2. Insert a child table (inline-edit table) of Departments and enable filtering
4. For the child table, drag and drop CreateInsert operation as a toolbar button .
5. Create a new child record using the toolbar button and enter data .
6. Filtering on the newly created child record's attributes does not work.
Please note that the same filter works for existing child records.
Any suggestions for resolving this issue?
Thanks,
VikasFound from Fusion Developer's Guide the following snippet about QBE functionality :
"+When you create data controls, all data collections will automatically include a Named Criteria node with an All Queriable Attributes criteria. This is the default view criteria that includes all the searchable attributes or columns of the data collection. You cannot edit or modify this view criteria+. "
So, the question is if the implicit view criteria cannot be edited, how else to set the query execution mode to "Both" ?
Shouldn't ADF BC support this by default? Is this a bug?
Note:- If you create a maste-detail table using POJO datacontrols, filter works correctly for newly created child records also .
This seems to be an issue with ADF-BC datacontrols only.
Thanks,
Vikas -
Function module used for formatting alv
hi gurus,
which function module is uesd to format alv?Hi
see the following
ABAP List Viewer
The common features of report are column alignment, sorting, filtering, subtotals, totals etc. To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).
This helps us to implement all the features mentioned very effectively.
Using ALV, We can have three types of reports:
1. Simple Report
2. Block Report
3. Hierarchical Sequential Report
There are some function modules which will enable to produce the above reports without much effort.
All the definitions of internal tables, structures and constants are declared in a type-pool called SLIS.
1. SIMPLE REPORT.
The important function modules are
a. Reuse_alv_list_display
b. Reuse_alv_fieldcatalog_merge
c. Reuse_alv_events_get
d. Reuse_alv_commentary_write
e. Reuse_alv_grid_display
A. REUSE_ALV_LIST_DISPLAY : This is the function module which prints the data.
The important parameters are :
I. Export :
i. I_callback_program : report id
ii. I_callback_pf_status_set : routine where a user can set his own pf status or change the functionality of the existing pf status
iii. I_callback_user_command : routine where the function codes are handled
iv. I_structure name : name of the dictionary table
v. Is_layout : structure to set the layout of the report
vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE
vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.
II. Tables :
i. t_outtab : internal table with the data to be output
B. REUSE_ALV_FIELDCATALOG_MERGE : This function module is used to populate a fieldcatalog which is essential to display the data in ALV. If the output data is from a single dictionary table and all the columns are selected, then we need not exclusively create the field catalog. Its enough to mention the table name as a parameter(I_structure name) in the REUSE_ALV_LIST_DISPLAY. But in other cases we need to create it.
The Important Parameters are :
I. Export :
i. I_program_name : report id
ii. I_internal_tabname : the internal output table
iii. I_inclname : include or the report name where all the dynamic forms are handled.
II Changing
ct_fieldcat : an internal table with the type SLIS_T_FIELDCAT_ALV which is
declared in the type pool SLIS.
C. REUSE_ALV_EVENTS_GET : Returns table of possible events for a list type
Parameters :
I. Import :
Et_Events : The event table is returned with all possible CALLBACK events
for the specified list type (column 'NAME'). For events to be processed by Callback, their 'FORM' field must be filled. If the field is initialized, the event is ignored. The entry can be read from the event table, the field 'FORM' filled and the entry modified using constants from the type pool SALV.
II. Export :
I_List_type :
0 = simple list REUSE_ALV_LIST_DISPLAY
1 = hierarchcal-sequential list REUSE_ALV_HIERSEQ_LIST_DISPLAY
2 = simple block list REUSE_ALV_BLOCK_LIST_APPEND
3 = hierarchical-sequential block list
REUSE_ALV_BLOCK_LIST_HS_APPEND
D. REUSE_ALV_COMMENTARY_WRITE : This is used in the Top-of-page event to print the headings and other comments for the list.
Parameters :
I. it_list_commentary : internal table with the headings of the type slis_t_listheader.
This internal table has three fields :
Typ : H header, S selection , A - action
Key : only when typ is S.
Info : the text to be printed
E. REUSE_ALV_GRID_DISPLAY : A new function in 4.6 version, to display the results in grid rather than as a preview.
Parameters : same as reuse_alv_list_display
This is an example for simple list.
2. BLOCK REPORT
This is used to have multiple lists continuously.
The important functions used in this report are:
A. REUSE_ALV_BLOCK_LIST_INIT
B. REUSE_ALV_BLOCK_LIST_APPEND
C. REUSE_ALV_BLOCK_LIST_HS_APPEND
D. REUSE_ALV_BLOCK_LIST_DISPLAY
A. REUSE_ALV_BLOCK_LIST_INIT
Parameters:
I. I_CALLBACK_PROGRAM
II. I_CALLBACK_PF_STATUS_SET
III. I_CALLBACK_USER_COMMAND
This function module is used to set the default gui status etc.
B. REUSE_ALV_BLOCK_LIST_APPEND
Parameters :
Export :
I. is_layout : layout settings for block
II. it_fieldcat : field catalog
III. i_tabname : internal table name with output data
IV. it_events : internal table with all possible events
Tables :
i. t_outtab : internal table with output data.
This function module adds the data to the block.
Repeat this function for all the different blocks to be displayed one after the other.
C. REUSE_ALV_BLOCK_LIST_HS_APPEND
This function module is used for hierarchical sequential blocks.
D. REUSE_ALV_BLOCK_LIST_DISPLAY
Parameters : All the parameters are optional.
This function module display the list with data appended by the above function.
Here the functions REUSE_ALV_FIELDCATALOG_MERGE, REUSE_ALV_EVENTS_GET, REUSE_ALV_COMMENTARY_WRITE can be used.
3. Hierarchical reports :
Hierarchical sequential list output.
The function module is
A. REUSE_ALV_HIERSEQ_LIST_DISPLAY
Parameters:
I. Export:
i. I_CALLBACK_PROGRAM
ii. I_CALLBACK_PF_STATUS_SET
iii. I_CALLBACK_USER_COMMAND
iv. IS_LAYOUT
v. IT_FIELDCAT
vi. IT_EVENTS
vii. i_tabname_header : Name of the internal table in the program containing the
output data of the highest hierarchy level.
viii. i_tabname_item : Name of the internal table in the program containing the
output data of the lowest hierarchy level.
ix. is_keyinfo : This structure contains the header and item table field
names which link the two tables (shared key).
II. Tables
i. t_outtab_header : Header table with data to be output
ii. t_outtab_item : Name of the internal table in the program containing the
output data of the lowest hierarchy level.
slis_t_fieldcat_alv : This internal table contains the field attributes. This internal table can be populated automatically by using REUSE_ALV_FIELDCATALOG_MERGE.
Important Attributes :
A. col_pos : position of the column
B. fieldname : internal fieldname
C. tabname : internal table name
D. ref_fieldname : fieldname (dictionary)
E. ref_tabname : table (dictionary)
F. key(1) : column with key-color
G. icon(1) : icon
H. symbol(1) : symbol
I. checkbox(1) : checkbox
J. just(1) : (R)ight (L)eft (C)ent.
K. do_sum(1) : sum up
L. no_out(1) : (O)blig.(X)no out
M. outputlen : output length
N. seltext_l : long key word
O. seltext_m : middle key word
P. seltext_s : short key word
Q. reptext_ddic : heading (ddic)
R. ddictxt(1) : (S)hort (M)iddle (L)ong
S. datatype : datatype
T. hotspot(1) : hotspot
Simple ALV report
http://www.sapgenie.com/abap/controls/alvgrid.htm
http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
Check the program in the following link:
http://sap-img.com/abap/display-secondary-list-using-alv-grid.htm
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_basic.htm
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
13. Top-of-page in ALV
selection-screen and top-of-page in ALV
14. ALV Group Heading
http://www.sap-img.com/fu037.htm
How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
15. ALV output to PDF conversion
It has an example code for PDF Conversion.
http://www.erpgenie.com/abap/code/abap51.htm
converting the output of alv in pdf
Go thru these programs they may help u to try on some hands on
ALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100
Regards
Anji -
Server-side filtering to subfolder for all users (spamassassin)
Hello,
I am trying to integrate a 3rd-party spam filter/virus scanner, it is just spamassassin/amavisd-new running on a front-end box that adds an X-Spam-Flag: YES header to the message before passing it on. This works great on our current postfix/cyrus-imap system using individual cyrus sieve server side filters to look for the flag and move the message into the user's spam folder.
My question is how to do this in a universal way on OCS, I have been reading through the docs and think server-side filters are the answer, but I can't seem to find a way to set up a system-wide filter that will put the incoming message into the recipients' spam subfolder. Does anyone have any clues on this? I think the key here is to somehow be able to use the recipient name as a variable to pass as a parameter to the moveto action, but I can't see a way to do this. Any pointers would be appreciated.You can do this in a single system wide rule, but it's undocumented and technically unsupported.
First of all, checking the spam-flag in a system side Deliver rule is straightforward:
<condition>
<attribute tag="xheader" param="X-Spam-Flag"/>
<operator caseSensitive="no" op="stringequal"/>
<operand>YES</operand>
</condition>
(Checking on the subject is OK too, if you rewrite it through SpamAssassin.)
Then to move to a folder, you'll need an external PL/SQL action since the full folder name will vary for each user:
<action>
<command tag="call"/>
<parameter>SpamCheck.moveMsg</parameter>
<parameter>parameter1</parameter>
<parameter>parameter2</parameter>
</action>
Then the tricky part is the Pl/SQL to do the move, using the undocumented es_ga.g_username variable. This is the only way to know which mailbox context you're currently in for the deliver event at the system level. Without this, you need a separate rule for every user. Here's the bare bones of a procedure that would do it.
procedure moveMsg(p_eventid in integer,
p_sessionid in integer,
p_msgobj in mail_message_obj,
myparam1 in varchar2,
myparam2 in varchar2,
p_status out number)
is
this_user varchar2(255);
mList MAIL_MESSAGE_LIST;
Begin
this_user := es_ga.g_username;
mList:=MAIL_MESSAGE_LIST(p_msgobj);
mail_folder.move_messages(p_sessionid, mList, '/' || es_ga.g_username || '/ServerMove');
end MoveToSpam;
You probably want to add some exception handling, etc. to that ;-) More info on the Pl/SQL API in general is in the Mail Application Dev Guide. -
What Adobe Product From CS5 is Used For Creating Buttons/Icons For WebPages?
Hi I have CS5 Adobe Creative Suite and I want to create some graphic "Buttons" to use for my web pages. What product in the Creative Suite is best suited for doing this?
Thanks In Advance!Copy & paste the following code into a new, blank HTML document. For expediency, I embedded CSS code here.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CSS Menu Test</title>
<style type="text/css">
/* BEGIN HORIZONTAL DROP-MENU */
#navbar{
position:relative;
width: 100%;
margin: 0 0 0 45px; /**adjust as needed**/
padding:0;
text-align:center;
#navbar li {
list-style: none;
font-size: 12px;
float: left;
text-align:center;
/**top level menu**/
#navbar li a {
display: block;
text-decoration: none;
margin-right: 12px; /* space between links */
color: #FFF;
width: 9em; /* adjust as needed or use auto */
padding: 8px;
font-weight:bold;
line-height: 1.50em;
background: #C33;
background: -moz-linear-gradient(#C33, #111);
background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #111),color-stop(1, #C33));
background: -webkit-linear-gradient(#C33, #111);
background: -o-linear-gradient(#C33, #111);
background: -ms-linear-gradient(#C33, #111);
background: linear-gradient(#C33, #111);
/* gradient filters for IE6-9 */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#C33333', endColorstr='#111111',GradientType=0 );
/**rounded borders**/
-moz-border-radius: 25px;
-webkit-border-radius:25px;
border-radius: 25px;
/**top menu style on mouse over - in good browsers**/
#navbar li:hover > a {
color: #FFF;
background: #333;
background: -moz-linear-gradient(#333, #EAEAEA);
background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #EAEAEA),color-stop(1, #333));
background: -webkit-linear-gradient(#333, #EAEAEA);
background: -o-linear-gradient(#333, #EAEAEA);
background: -ms-linear-gradient(#333, #EAEAEA);
background: linear-gradient(#333, #EAEAEA);
/* gradient filters for IE6-9 */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#333333', endColorstr='#EAEAEA',GradientType=0 )
/**sub-menu**/
#navbar li ul {
display: none;
text-align:center;
margin:0;
padding:0 1em;
background:none;
/**sub-menu, help for IE6**/
#navbar li:hover ul,
#navbar li.hover ul {
display: block;
position: absolute;
padding: 0;
#navbar li:hover li,
#navbar li.hover li {
float: left;}
/**drop-menu style**/
#navbar li:hover li a,
#navbar li.hover li a {
color: #0D207D;
width: auto; /* adjust width as needed or use auto */
background: none;
filter:none;
/**drop-menu style on mouse over**/
#navbar li li a:hover {
color: #990000;
text-decoration:underline;
/* Clear floated elements at the end*/
#navbar:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
/**end Horizontal drop-menus**/
</style>
</head>
<body>
<ul id="navbar">
<li><a class="first" href="#">ABOUT US ▼</a>
<ul>
<li><a href="#">Videos</a></li>
<li><a href="#">Newsletter</a></li></ul>
</li>
<li><a href="#">PRODUCTS ▼</a>
<ul>
<li><a href="#">Broken Glass</a></li>
<li><a href="#">Mosaic Tiles</a></li>
<li><a href="#">Adhesives</a></li>
<li><a href="#">Grout</a></li></ul>
</li>
<li><a href="#">ACCESSORIES ▼</a><ul>
<li><a href="#">Gloves</a></li>
<li><a href="#">Rubber Mallets</a></li>
<li><a href="#">Sponges</a></li>
<li><a href="#">Safety Glasses</a></li></ul>
</li>
<li><a href="#">CONTACT</a></li>
</ul>
</body>
</html>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
I noticed that in using Photoshop Premier Elements Organizer V10, I was able to select more than a single person when filtering media. For example, I may want to find all of my photos that have me with my cousin, John as well as my friend Norm in them. With Photoshop Priemier Elements Organizer 11, I can only filter on a single person or filter on a group of individuals. Using a group does not always match the specific filter that I am looking for. Was this an oversight in the new version?
(By the way, this feature is also missing with "Places" as well... For example, I would like to be able to select Austria, Switzerland, and Germany media when adding an Event for my "Trip to the Alps". I can only select one country at a time.)
Any suggestions? Can we get this feature back?Have you opened up the Filter menu, which opens along the top of the Organizer's Media Browser?
With it, you simply check the filters you want to apply, and the Media Browser will show you all media clips to which those filters applies. -
Re:Item renderer AS3 for datagrid
I am having a data grid with multiple check boxes for this i am using CheckCellRendererEdit as itemrenderer.When i am making a change in datagrid checkbox its not updating
The problems are
1. when i select a checkbox in second row it gets selected in another row after saving
2.when i choose one checkbox in a row it gets afftected in many row can i get a solution for this Below given is the code i am using
CheckCellRendererEdit.as
package
import mx.controls.*;
import mx.core.*;
import mx.controls.dataGridClasses.DataGridListData;
import flash.events.Event;
import flash.events.MouseEvent;
public class CheckCellRendererEdit extends CheckBox
// Define the constructor and set properties.
public function CheckCellRendererEdit() {
super();
override protected function clickHandler(event:MouseEvent):void
if (!enabled)
{ //DataGrid(this.parentDocument.dg).selectedItem.vdata=CheckBox(event.currentTarget).selec ted;
event.stopImmediatePropagation();
return;
if (toggle)
selected = !selected;Currently i am migrating from flex1.5 to flex2 Just i am using this itemrenderer(checkbox) for DataGrid can i have some ideas for datagrid
The DataGrid i am using is
<mx:DataGrid id="screendg" ">
<mx:columns>
<mx:Array>
<mx:DataGridColumn headerText="mdata" dataField="screenid" editable="false" />
<mx:DataGridColumn headerText="data" dataField="mdata" itemRenderer="CheckCellRendererEdit" />
<mx:DataGridColumn headerText="mdata" dataField="vdata" itemRenderer="CheckCellRendererEdit" />
<mx:DataGridColumn headerText="cdata" dataField="cdata" itemRenderer="CheckCellRendererEdit" />
<mx:DataGridColumn headerText="vdata" dataField="udata" itemRenderer="CheckCellRendererEdit" />
</mx:Array>
</mx:columns>
</mx:DataGrid>
When i am selecting a checkbox in data grid the grid value is not getting changed -
I know how to create a tooltip for datagrid and/or its
columns. Is it possible to create a tooltip (or something similar)
for each cell? So whenever the mouse is over a certain cell, a tip
would be shown for that cell that depends on the value of the cell.
Similar functionality can often be seen in web-based database apps:
an Ajax query gets related data from a database on mouseOver.
My need and idea is to
- show a simple text list as a tooltip
- the text would be fetched from a database via a web service
- the fetch would be based on datagrid's (hidden) rowid and
each column's (hidden) column id (which are real database columns)
- the database structure is an n:m relation i.e. one
rowid+colid can refer to several items that are then used in the
tooltip
Use case: A number is displayed in the datagrid. The need is
to display 0-n references related to that specific figure (e.g.
book names, notes etc) in the tooltip. Next cell's tooltip would be
showing different references.
Anybody any ideas or suggestions? Thanks!Hi,
Did you try creating a custom itemRenderer and handling the
mouse events for that item renderer component. There is also a
property called dataTipFunction, please check that too.
Hope this helps. -
What is the condition for using 'for all entries' and why?
what is the condition for using 'for all entries' and why? can any body tell the reason for this ? its a big favour of me .
regards,
ravi.hi,
for all entries is used to join two or more tables.
It is same as join but performance wise for all entries is more effective.
You can only use FOR ALL ENTRIES IN ...WHERE ...in a SELECT statement.
SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT
statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol
itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result
set. If the internal table itab does not contain any entries, the system treats the statement as though there were
no WHERE cond condition, and selects all records (in the current client).
for example:
SELECT * FROM sflight INTO wa_sflight
FOR ALL ENTRIES IN ftab
WHERE CARRID = ftab-carrid AND
CONNID = ftab-connid AND
fldate = '20010228'.
this condition, return all entries of the sflight
hen using FOR ALL ENTRIES the number of matching records is restricted to the number of records in the internal table. If the number of records in the database tables is too large then join would cause overheads in performance. Additionally a JOIN bypasses the table buffering.
So for all entries is used for filtering out the data from the two tables based on the entries in them.
Advantages:
1) For all entries avoids inner join & so the performance increases.
2) For specified values in 1 itab, if you to fetch values from other table you can use it.
3) Use of select stmt in loop is gets avoided, as u can use read statement on the the new itab. -
Which HttpClient class should I use for Universal apps?
Hi,
I am developing a Windows Universal app for Windows phone and WinRT in C# and I would like to know which HttpClient class should i use? Should I use the System.Net.HttpClient or Windows.Web.HttpClient?Because the System.Net.Http and System.Net.Http.Headers namespaces might not be available in future versions of Windows for use by Windows Store apps. It is stated in the official documentation on MSDN here:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn469431.aspx
"Starting with Windows 8.1 and Windows Server 2012 R2, use Windows.Web.Http.HttpClient in the Windows.Web.Http namespace and the related Windows.Web.Http.Headers and Windows.Web.Http.Filters namespaces instead for Windows Store apps."
And the Windows.Web.Http.HttpClient class is supported from Windows Phone 8.1, Windows 8.1 and Windows Server 2012 R2:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.web.http.httpclient.aspx
Hope that helps.
Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question. -
Filtering app search for "itunes file sharing"
Is there a way to do a filtered search in itunes for apps that support itunes file sharing? Looking by trial and error has not been all that productive. I've found a couple useful apps that use the itunes file sharing: Phone Drive, and Quick Password Manager. I'd also like to find a decent spreadsheet app, that's smaller in size than the giant Apple apps--trying to retain room for some music.
I don't use the cloud or wi-fi, so itunes file sharing is very useful for transfering files, etc. And if there is a app or method for syncing between itunes file sharing and my mac, that would be a bonus.Anything actually stored in iTunes, docs, apps, ect, should be backed up. If you are bacing up the iPad to iTunes, those back ups files would be in Time Capsule (although I confess, I've never had to extract one).
As for apps themselves, they can always be redownloaded (both on the iPad and in iTunes on the PC).
Maybe you are looking for
-
This is getting to be a bit frustrating. The reviews that I have read about this laptop have been phenomenal but so far I am less than impressed. I had just bought a x505-Q870 two weeks ago. The purpose of the laptop is a work development machine. It
-
How to create a routine call in FM (FI Module)
How to create a routine call in FM (FI Module)
-
Macbook crashes with external displays, Macbook crashes with external displays
Dear Community, I have a problem with my new (Dec. 2013) Macbook Pro. Everything worked fine until two weeks ago. Then, I connected my Macbook via VGA-adapter (original) with an LCD Monitor at home (I had done this before without any problems). My Ma
-
Asha 200 Software Update Problem
I use an Asha 200 cellphone with software version being v10.58. At some times, I tried updating the software to the latest version using the Device Update Command in my phone, but got a message that "Update not allowed; contact service provider". At
-
I want to sell my iphone 4 for parts but....
I cannot delete my personal data. Can I remove something particular from the logic board or the whole board itself to not have my personal data compromised?