How to nest Checkbox inside Datacolumn
Dear all,
Usually we embed a checkbox in a list of row in table. How do
I achieve this in Flex? Since in DataColumn I can not nest a
Checkbox component. Any examples would be great.
Thanks in advance.
"thejavafreak" <[email protected]> wrote in
message
news:gf42mi$pcm$[email protected]..
> Dear all,
>
> Usually we embed a checkbox in a list of row in table.
How do I achieve
> this
> in Flex? Since in DataColumn I can not nest a Checkbox
component. Any
> examples
> would be great.
>
> Thanks in advance.
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory
Similar Messages
-
How to unSelect checkBoxes inside a buttonBar
Hello!
I've been a Flex developer for several months now and have made some great strides. However, I've ran across a problem that requires some help from the Pros.
I'm using Flash Builder 4.5 Premium.
Scenerio:
I have a buttonBar whose dataProvider is an mx:viewStack supplied by Spark NavigatorContent. I have checkBoxes inside each of the NavigatorContent instances. The checkBoxes turn content on and off. Works great.
Problem:
When you select a different button in the buttonBar the selected content from the previuos button still displays.
Question:
How do I get the selected content from the previous button to not display? I'm not sure how to do this.
Bonus:
If someone can tell me how to handle the checkBox eventHandler more efficiently that would be awesome! Because right now I currently have an eventHandler function for each check box (like 18). Since I'm still grean, so I figured I'd get everything working before trying to streamline this. Or perhaps (I'm havina an epiphany) I need to add something to this code to unSelect the checkBox once the button has changed? Not sure and confused.
Thanks for the help!
Joe
App Code: If it's too much I appologize - I did leave out some.
<?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:esri="http://www.esri.com/2008/ags"
xmlns:mx="library://ns.adobe.com/flex/mx"
pageTitle="Aloha Existing Conditions"
initialize="initApp(event)">
<fx:Style source="alohaExistingCond.css"/>
<fx:Script>
<![CDATA[
import com.esri.ags.Graphic;
import com.esri.ags.components.Editor;
import com.esri.ags.components.Legend;
import com.esri.ags.events.FeatureLayerEvent;
import com.esri.ags.events.LayerEvent;
import com.esri.ags.geometry.MapPoint;
import com.esri.ags.layers.ArcGISDynamicMapServiceLayer;
import com.esri.ags.layers.DynamicMapServiceLayer;
import com.esri.ags.layers.TiledMapServiceLayer;
import com.esri.ags.layers.supportClasses.LayerInfo;
import com.esri.ags.layers.supportClasses.LayerLegendInfo;
import com.esri.ags.layers.supportClasses.LegendItemInfo;
import com.esri.ags.tasks.supportClasses.AddressCandidate;
import flash.events.Event;
import flashx.textLayout.events.UpdateCompleteEvent;
import mx.containers.TitleWindow;
import mx.controls.Alert;
import mx.core.IFlexDisplayObject;
import mx.events.FlexEvent;
import mx.managers.PopUpManager;
import mx.rpc.AsyncResponder;
import spark.components.Panel;
import spark.events.IndexChangeEvent;
import splash1.SplashScreen1;
public function initApp(event:FlexEvent):void
// showWindow();
// viewMenu.addEventListener(IndexChangeEvent.CHANGING, bBarChangeHandler);
// public function bBarChangeHandler():void
private var point1:Point = new Point();
private function showWindow():void {
var login:SplashScreen1 = SplashScreen1(PopUpManager.createPopUp(this, SplashScreen1 , true));
PopUpManager.centerPopUp(login);
public function turnonbasemap():void
photo.visible = false;
basemap.visible = true;
public function turnonphoto():void
photo.visible = true;
basemap.visible = false;
public function bintBox(evt:MouseEvent):void
myLegend.visible = true;
if(CheckBox(evt.target).selected)
bikelaneMapServer.visible = true;
else
bikelaneMapServer.visible = false;
public function sintBox(evt:MouseEvent):void
sidewalkMapServer.visible = true;
if(CheckBox(evt.target).selected)
else
sidewalkMapServer.visible = false;
public function scomBox(evt:MouseEvent):void
sidewalkComments.visible = true;
if(CheckBox(evt.target).selected)
else
sidewalkComments.visible = false;
public function bcomBox(evt:MouseEvent):void
bikelaneComments.visible = true;
if(CheckBox(evt.target).selected)
else
bikelaneComments.visible = false;
public function opsBox(evt:MouseEvent):void
OPS.visible = true;
if(CheckBox(evt.target).selected)
else
OPS.visible = false;
]]>
</fx:Script>
<!-- Declaration are for Non-Visual Elements ~~~~~~~~~~~~~~~ -->
<fx:Declarations>
<esri:Locator id="locateTask"
url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer"/>
<esri:SimpleMarkerSymbol id="mySymbol"
alpha="0.5"
color="0xFF0000"
size="21"
style="circle">
<esri:SimpleLineSymbol width="2"/>
</esri:SimpleMarkerSymbol>
</fx:Declarations>
<!-- Button Bar Window ~~~~~~~~~~~~~~~ -->
<s:BorderContainer id="buttonBarContainer"
left="352" right="3" top="64" height="134"
borderWeight="2" cornerRadius="5">
<s:Label text="Select an item below:"
x="10" y="10"/>
<s:ButtonBar id="viewMenu" left="5" right="5" top="30" height="21"
dataProvider="{myViewStack}"
requireSelection="true"/>
<!-- change="changeSelection(event)" -->
<s:Group id="layerGroup"
left="5" right="3" top="55" height="80">
<mx:ViewStack id="myViewStack" height="72">
<s:NavigatorContent id="planning" label="Planning">
<s:layout>
<s:TileLayout paddingLeft="10" paddingRight="20"
orientation="columns" columnWidth="175"
requestedColumnCount="-1"/>
</s:layout>
<s:CheckBox id="bCommentCheckBox"
label="Bike Lane Comment"
fontSize="14"
click="bcomBox(event)"/>
<s:CheckBox id="foo1"
label="Foo 1"
fontSize="14"/>
<s:CheckBox id="foo2"
label="Foo 2"
fontSize="14"/>
<s:CheckBox id="foo3"
label="Foo 3"
fontSize="14"/>
<s:CheckBox id="foo4"
label="Foo 4"
fontSize="14"/>
</s:NavigatorContent>
<!-- trans tab ~~~~~~~~~~~~~~-->
<s:NavigatorContent id="trans" label="Transportation">
<s:layout>
<s:TileLayout columnWidth="175" orientation="columns"
paddingLeft="10" paddingRight="20"
requestedColumnCount="-1"/>
</s:layout>
<s:CheckBox id="sCommentCheckBox"
label="Sidewalk Comments"
fontSize="14"
click="scomBox(event)"/>
<s:CheckBox id="sidewalkCheckBox"
label="Sidewalk Inventory"
fontSize="14"
click="sintBox(event)"/>
<s:CheckBox id="bikelaneCheckBox"
label="Bike Lane Inventory"
fontSize="14"
click="bintBox(event)"/>
</s:NavigatorContent>
<s:NavigatorContent id="environ" label="Environmental">
<s:layout>
<s:TileLayout paddingLeft="10" paddingRight="20"
orientation="columns" columnWidth="200"
requestedColumnCount="-1"/>
</s:layout>
<s:CheckBox id="opsCheckBox"
label="Watershed Enhancement"
fontSize="14"
click="opsBox(event)"/>
<s:CheckBox id="foo5"
label="Foo 5"
fontSize="14"/>
<s:CheckBox id="foo6"
label="Foo 7"
fontSize="14"/>
<s:CheckBox id="foo8"
label="Foo 8"
fontSize="14"/>
<s:CheckBox id="foo9"
label="Foo 9"
fontSize="14"/>
<s:CheckBox id="foo10"
label="Foo 10"
fontSize="14"/>
<s:CheckBox id="foo11"
label="Foo 11"
fontSize="14"/>
<s:CheckBox id="foo12"
label="Foo 12"
fontSize="14"/>
<s:CheckBox id="foo13"
label="Foo 13"
fontSize="14"/>
<s:CheckBox id="foo14"
label="Foo 14"
fontSize="14"/>
</s:NavigatorContent>
<s:NavigatorContent id="housing" label="Housing/Social">
<s:layout>
<s:TileLayout paddingLeft="10" paddingRight="20"
orientation="columns" columnWidth="175"
requestedColumnCount="-1"/>
</s:layout>
<s:Label text="Housing and Social Services Maps"/>
</s:NavigatorContent>
<s:NavigatorContent id="built" label="Built Environment">
<s:layout>
<s:TileLayout paddingLeft="10" paddingRight="20"
orientation="columns" columnWidth="175"
requestedColumnCount="-1"/>
</s:layout>
<s:Label text="Built Environment Maps"/>
</s:NavigatorContent>
<s:NavigatorContent id="transit" label="Transit">
<s:layout>
<s:TileLayout paddingLeft="10" paddingRight="20"
orientation="columns" columnWidth="175"
requestedColumnCount="-1"/>
</s:layout>
<s:Label text="Tansit Maps"/>
</s:NavigatorContent>
</mx:ViewStack>
<!--<s:Label id="selectionText"
x="10" y="60"/> -->
</s:Group>
</s:BorderContainer>
<!-- Legend Window ~~~~~~~~~~~~~~~ -->
<s:BorderContainer id="leContainer" left="3" top="140" bottom="3" width="347"
borderColor="#808080" borderWeight="2" cornerRadius="5" fontWeight="bold">
<s:VGroup id="hGroup"
width="333"
height="500"
paddingBottom="11"
paddingLeft="5"
paddingRight="5"
paddingTop="10">
<esri:Legend id="myLegend"
height="100%"
bottom="10"
width="330"
layers="{[ bikelaneMapServer, sidewalkMapServer, sidewalkComments, bikelaneComments, OPS ]}"
map="{myMap}"
respectCurrentMapScale="true"/>
</s:VGroup>
</s:BorderContainer>
<!-- Map Window ~~~~~~~~~~~~~~~ -->
<s:BorderContainer id="mapBorder"
left="352" right="3" top="200" bottom="3"
borderColor="#808080"
borderWeight="2" cornerRadius="5">
<esri:Map id="myMap" left="0" right="0" top="0" bottom="0" wrapAround180="true" logoVisible="false">
<esri:extent>
<esri:Extent id="washco"
xmin="7565269.4485383" ymin="657281.31999349" xmax="7607044.62214942" ymax="696603.368604601">
<esri:SpatialReference wkid="2269"/>
</esri:Extent>
</esri:extent>
<esri:ArcGISTiledMapServiceLayer id="basemap"
url="http://......../Washco_primary_basemap_SP/MapServer"/>
<esri:ArcGISTiledMapServiceLayer id="photo"
url="http://......../Orthos_2010_SP/MapServer"
visible="false"/>
<esri:ArcGISDynamicMapServiceLayer id="bikelaneMapServer"
name=" "
visible="false"
url="http://........DOE_Bikelane/MapServer"/>
<esri:ArcGISDynamicMapServiceLayer id="sidewalkMapServer"
name=" "
visible="false"
url="http://......../DOE_Sidewalk/MapServer"/>
<esri:ArcGISDynamicMapServiceLayer id="OPS"
name=" "
visible="false"
url="http://........Watershed_Enhance/MapServer"/>
<esri:FeatureLayer id="sidewalkComments"
mode="snapshot"
visible="false"
url="http://........./SidewalkComment/FeatureServer/0"/>
<!--
outFields="[Comment, entered]"
-->
<esri:FeatureLayer id="bikelaneComments"
mode="snapshot"
visible="false"
url="http://......../FeatureServer/0"/>
<!--
outFields="[Comment, entered]"
-->
<esri:GraphicsLayer id="myGraphicsLayer"/>
</esri:Map>
</s:Application>Hi Kiran,
U can use ItemRenderer to show button inside a cell of datagrid..!
either inline ItemRenderer or external ItemRenderer as per your conveninent.
sample:
<mx:DataGrid>
<mx:DataGridColumn headerText="Title" dataField="title">
<mx:itemRenderer>
<mx:Component>
<mx:Button lable="Add" width="50" height="50"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:DataGrid>
Go Through this link : http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html
Thanks,
Pradeep -
How to display checkbox within button using skin?
Hi,
I am trying to put checkbox inside spark button using skin. The button looks like -
I want the button to repond mouse event (which is any way responding), but I also want check box too should respond to mouse event when mouse pointer is over check box.
I am able to create button which looks like above. But when I move mouse pointer over button, the button look changed and looks like -
As can be seen that there is no check box. I need check box to be shown always in button and should also be clickable.
Do any one have idea how to solve it?
Thanks,
Prithveesingh Zankat.Hi,
Here is complete skin code-
<s:SparkButtonSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
minWidth="21" minHeight="21"
alpha.disabled="0.5"
width.up="84">
<fx:Metadata>
<![CDATA[
* @copy spark.skins.spark.ApplicationSkin#hostComponent
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>
<fx:Script fb:purpose="styling">
<![CDATA[
import spark.components.Group;
/* Define the skin elements that should not be colorized.
For button, the graphics are colorized but the label is not. */
static private const exclusions:Array = ["labelDisplay"];
* @private
override public function get colorizeExclusions():Array {return exclusions;}
* @private
override protected function initializationComplete():void
useChromeColor = true;
super.initializationComplete();
* @private
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
var cr:Number = getStyle("cornerRadius");
if (cornerRadius != cr)
cornerRadius = cr;
shadow.radiusX = cornerRadius;
fill.radiusX = cornerRadius;
lowlight.radiusX = cornerRadius;
highlight.radiusX = cornerRadius;
border.radiusX = cornerRadius;
if (highlightStroke)
highlightStroke.radiusX = cornerRadius;
if (hldownstroke1)
hldownstroke1.radiusX = cornerRadius;
if (hldownstroke2)
hldownstroke2.radiusX = cornerRadius;
super.updateDisplayList(unscaledWidth, unscaledHeight);
private var cornerRadius:Number = 2;
]]>
</fx:Script>
<!-- states -->
<s:states>
<s:State name="up" />
<s:State name="over" />
<s:State name="down" />
<s:State name="disabled" />
</s:states>
<!-- layer 1: shadow -->
<!--- @private -->
<s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1" radiusX="2">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x000000"
color.down="0xFFFFFF"
alpha="0.01"
alpha.down="0" />
<s:GradientEntry color="0x000000"
color.down="0xFFFFFF"
alpha="0.07"
alpha.down="0.5" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- layer 2: fill -->
<!--- @private -->
<s:Rect id="fill" left="1" right="1" top="1" bottom="1" radiusX="2">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0xFFFFFF"
color.over="0xBBBDBD"
color.down="0xAAAAAA"
alpha="0.85" />
<s:GradientEntry color="0xD8D8D8"
color.over="0x9FA0A1"
color.down="0x929496"
alpha="0.85" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- layer 3: fill lowlight -->
<!--- @private -->
<s:Rect id="lowlight" left="1" right="1" top="1" bottom="1" radiusX="2">
<s:fill>
<s:LinearGradient rotation="270">
<s:GradientEntry color="0x000000" ratio="0.0" alpha="0.0627" />
<s:GradientEntry color="0x000000" ratio="0.48" alpha="0.0099" />
<s:GradientEntry color="0x000000" ratio="0.48001" alpha="0" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- layer 4: fill highlight -->
<!--- @private -->
<s:Rect id="highlight" left="1" right="1" top="1" bottom="1" radiusX="2">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0xFFFFFF"
ratio="0.0"
alpha="0.33"
alpha.over="0.22"
alpha.down="0.12"/>
<s:GradientEntry color="0xFFFFFF"
ratio="0.48"
alpha="0.33"
alpha.over="0.22"
alpha.down="0.12" />
<s:GradientEntry color="0xFFFFFF"
ratio="0.48001"
alpha="0" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- layer 5: highlight stroke (all states except down) -->
<!--- @private -->
<s:Rect id="highlightStroke" left="1" right="1" top="1" bottom="1" radiusX="2" excludeFrom="down">
<s:stroke>
<s:LinearGradientStroke rotation="90" weight="1">
<s:GradientEntry color="0xFFFFFF" alpha.over="0.22" />
<s:GradientEntry color="0xD8D8D8" alpha.over="0.22" />
</s:LinearGradientStroke>
</s:stroke>
</s:Rect>
<!-- layer 6: highlight stroke (down state only) -->
<!--- @private -->
<s:Rect id="hldownstroke1" left="1" right="1" top="1" bottom="1" radiusX="2" includeIn="down">
<s:stroke>
<s:LinearGradientStroke rotation="90" weight="1">
<s:GradientEntry color="0x000000" alpha="0.25" ratio="0.0" />
<s:GradientEntry color="0x000000" alpha="0.25" ratio="0.001" />
<s:GradientEntry color="0x000000" alpha="0.07" ratio="0.0011" />
<s:GradientEntry color="0x000000" alpha="0.07" ratio="0.965" />
<s:GradientEntry color="0x000000" alpha="0.00" ratio="0.9651" />
</s:LinearGradientStroke>
</s:stroke>
</s:Rect>
<!--- @private -->
<s:Rect id="hldownstroke2" left="2" right="2" top="2" bottom="2" radiusX="2" includeIn="down">
<s:stroke>
<s:LinearGradientStroke rotation="90" weight="1">
<s:GradientEntry color="0x000000" alpha="0.09" ratio="0.0" />
<s:GradientEntry color="0x000000" alpha="0.00" ratio="0.0001" />
</s:LinearGradientStroke>
</s:stroke>
</s:Rect>
<!-- layer 7: border - put on top of the fill so it doesn't disappear when scale is less than 1 -->
<!--- @private -->
<s:Rect id="border" left="0" top="0" bottom="0" radiusX="2"
right.disabled="0" width.disabled="69" height.disabled="20"
right.down="0" width.down="69" height.down="20"
right.over="0" width.over="69" height.over="20"
left.up="0" right.up="0" top.up="0" bottom.up="0">
<s:stroke>
<s:LinearGradientStroke rotation="90" weight="1">
<s:GradientEntry color="0x000000"
alpha="0.5625"
alpha.down="0.6375" />
<s:GradientEntry color="0x000000"
alpha="0.75"
alpha.down="0.85" />
</s:LinearGradientStroke>
</s:stroke>
</s:Rect>
<!-- layer 8: text -->
<!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay -->
<s:Label id="labelDisplay" left="10" top="2" bottom="2" maxDisplayedLines="1" textAlign="center"
verticalAlign="middle"
right.disabled="10" horizontalCenter.disabled="0" verticalCenter.disabled="1"
left.down="20" right.down="5" top.down="2" bottom.down="2" horizontalCenter.down="7"
left.over="20" right.over="5" top.over="2" bottom.over="2" horizontalCenter.over="7"
left.up="20" right.up="5" top.up="2" bottom.up="2" horizontalCenter.up="7"
verticalCenter.up="2">
</s:Label>
<s:CheckBox includeIn="up" left="2" top="2" bottom="2" width="16" verticalCenter="0"
right.disabled="10" horizontalCenter.disabled="0" verticalCenter.disabled="0" width.disabled="18"
left.down="2" top.down="2" bottom.down="2" verticalCenter.down="0" width.down="18"
left.over="0" top.over="2" bottom.over="2" verticalCenter.over="0" width.over="18"
left.up="2" top.up="2" bottom.up="2" verticalCenter.up="0" width.up="18"
/>
</s:SparkButtonSkin>
Thank,
Prithveesingh Zankat. -
How to use Checkbox and radio buttons in BI Reporting
Hi BW Experts,
My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I dont know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
Thanks,
RamHi..
Catalog item characteristic
- Data element
- Characteristic type
Entry type
List of catalog characteristics
Designer
Format (character)
Standard characteristic
Alternative: Master characteristic
(used for automatic product
assignment)
Simple entry field
Alternatives:
Dropdown listbox or radio button
list -
I want to open a folder and see how many items theres inside like you could before...
How can you do that on maverick plz ?Open it and choose Show Status Bar from the Finder's View menu.
(112378) -
I can't see how to edit PDF inside Portfolio for Acrobat X. In Acrobat 9 Pro
I can't see how to edit PDF inside Portfolio for Acrobat X. I can do this in Acrobat 9 Pro with the Document pull down menu. Did they take this away in Acrobat X?
Whether it's maxed or not doesn't make any difference.
The bottom part of the image/scroll bar is always under the Windows taskbar any time the URL is opened.
It is always fixed by doing something, either switching to and back from another window, or turning on and off one or more toolbars.
That shouldn't be necessary. The bottom part should be visible when the URL is opened. -
How does Iterate work inside an Action
I'm having trouble figuring out how does <Iterate > work inside an <Action> in a workflow. My <Action> is to call a subprocess that takes several arguments and initiates an approval. Since I need to fire-off several approvals at the same time instead of chaining them I use <Iterate> that loops over a list variable.
Now the subprocess being an approval the workflow gets suspended and divided into multiple parallel paths. My question is that how do these parallel paths assimilate together after approval or they don't assimilate at all and process in separate parallel lines or otherwise whichever approval returns first takes precedence and proceeds with rest of the activities.
TIA,
AndyDevThanks for the reply. But this doesn't answer my question completely.
Say within <Iterate> I specify **for='var_name' in='list_name'** will it continue to run after it has run once for each element in the list. If yes, doesn't it trigger the sub-process multiple times, something I don't want. If no, what happens next ? (that was actually my original ques).
Say if list_name had 5 elements, it triggers one sub-process (which is a multiapproval) for each of them. What happens next ? Does it transition to next activity? Does it wait for all approvals to finish approve/reject? -
How to handle checkbox in struts
Hi,
Can you help me how to handle checkbox in Struts?
When i select/unselect checkbox in one page ,It should be selected/unselected stage when i come next time to that same page.Hi,
Can you help me how to handle checkbox in Struts?
When i select/unselect checkbox in one page ,It should be selected/unselected stage when i come next time to that same page. -
How to create checkbox group and table dynamically?
HI All
How to create checkbox group and table dynamically?
Regards
Ravihi
check this links for creating tables dnamically
How to Create a table dynamically?
Re: how to create a table dynamically in webdynpro
and for checkboxgroup
IWDTransparentContainer rootContainer =
(IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDCheckBox check = (IWDCheckBox)view.createElement(IWDCheckBox.class,"Check"+k);
//Here "check"+k k represents a unique value every time u create so that u wont get a duplicate instance
check.setChecked(false);
rootContainer.addChild(check);
or Re: adding checkboxes dynamically -
How to put checkbox into sap grid display
hi,
how to put checkbox into sap grid display ,when i am selecting the check box it should move to second secondary list.
could u plz explain clearlyHi,
In the layout fill
is_layout-box_fieldname = 'CHECKBOX'
is_layout-box_tabname = 'I_OUTPUT'.
The internal table that you are passing as I_OUTPUT, should have an extra field called CHECKBOX of length 1.
Also refer to tutorial Easy Grid :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf
Cheers,
Simha. -
How to clean the inside of the MagSafe port? It is dirty.
How to clean the inside of the MagSafe port? It is dirty.
dry Qtip and best is a DRY cheap toothbrush (dollar store)
dont use anything wet at all.
Considerations for the long life of your MacBook. Handling and environmental care tips -
How to center chars inside of cells of the comb field (text field)?
Hello gurus,
[Intro]
I'm working on preparation of the legal form for tax return. Due to sophisticated form structure and customer's demand to prepare return of enourmous size (more than thusand pages) I decided to remake obsolete form using "comb of" option in order to reduce size of the source and prevent memory allocation issues on customer side.
[Issue details]
Legal requirement is to have typeface Courier New 16pt-18pt and cells of the certain size.
This is how the form provided by tax authorities looks like:
Here you can see that chars are somehow centered inside of the cells but when I create comb in my livecycle designer it is not the case and I have different layout:
Look how letters are placed inside of the cells. After some research I've found out that there is a left margin which always exists in every cell of the comb, most probably triggered by the border. Tried to edit XML source but didn't achieve any significant success. The issue is not caused by the narrowness of the cells and reproductible even with extra wide ones.
Here is my current XML:
<field h="5.7mm" name="STR_230_TOT_TX" w="60mm" x="4.264278in" y="4.458417in" anchorType="middleCenter">
<ui>
<textEdit hScrollPolicy="off">
<border hand="right">
<edge stroke="dotted"/>
<corner stroke="dotted" thickness="0.176mm"/>
</border>
<margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>
<para hAlign="left" vAlign="top"/>
<comb numberOfCells="15"/>
</textEdit>
</ui>
<font size="16pt" typeface="Courier New"/>
<margin bottomInset="0mm" leftInset="0mm" rightInset="0mm" topInset="0mm"/>
<bind match="dataRef" ref="N140_TAX_AMOUNT"/>
<assist>
<speak disable="1"/>
</assist>
</field>
This is how comb field is supposed to be rendered (screenshot from the documentation):
Everything is centered and it is a behaviour I supposed to see.
Are there any possible solutions how to place chars at center of the cells?Hi Igor,
It's the font that you are using that causes the problem.
I found it weird, your problem, so I quickly made a form with a text field with a comb. I did not have the problem.
So I took your snippet and added it to my form, then I have the same problem. You are using Courier New, a font that has the same width for all characters. I don't know why the problem is there as for me it should be in the center as with all other fonts. I would report this as a bug to support.
I know it's not a solution for you, but that seems to be the root of the problem. Maybe you can look for another font, similar to Courier New, but that does not have a fixed width. I looked it up and it appears that there's a font called Hellschreiber, that uses the same letterforms, but is proportional. The font is not freely downloadable, so I cannot test for the moment. Another page says this: "There is a proportional font that kinda looks like Courier. It is called American Typewriter. " Again, I have not tested.
Hellschreiber Serif is a proportional typeface using Courier letterforms as a basis.
http://en.wikipedia.org/wiki/Courier_(typeface) -
How to obtain checkbox checked/unchecked while editing
Hi All,
My scenorio is,
I have a form and on that form i have text field & checkbox.
I am saving record by entering some value in text box & checking checkbox(if my checkbox checked then I am saving "Y" for that checkbox in DataBase).Its saving both things properly in databse.
While editing , If i click on edit link , my text box value coming properly(i.e. value which I stored in databse. )
But that checkbox is not coming in checked mode(i.e while saving I have checked checkbox)
So how to obtain checkbox at the time of editing checked/unchecked as they were at the time of saving ?
Thanks
SandipHi,
Thanks for your reply.
Sorry my variable is userAdmin.
I have getUserAdmin() method in the C.java(server side pojo )?
But its return type is String.(return type String because I want to save "Y / N") while saving
public class C{ // server side pojo
private String userAdmin; // corresponding getter & setter
lly, I have getUserAdmin() method in cleint side pojo
public class B{ // client side pojo
private boolean userAdmin; // corresponding getter & setter
but while saving I am doing as,
public class SaveClass
public String saveMethod()
C c = new C();
B bb = new B();
if (bb.getUserAdmin() == Boolean.TRUE)
c.setUserAdmin("Y");
else
c.setUserAdmin("N");
// in client side pojo userAdmin variable's return type is boolean for checking as,
if (bb.getUserAdmin() == Boolean.TRUE)
but on server side its String for saving "Y / N",
if (bb.getUserAdmin() == Boolean.TRUE)
aa.setUserAdmin("Y"); /// to save String here
So if I write in JSP,
<h:selectBooleanCheckbox value="#{BeanName.c.userAdmin}"/>
its giving error as,
javax.servlet.ServletException: Expected submitted value of type Boolean for Component : {Component-Path :................. -
How to make checkbox uneditable
I have a problem about how to make checkbox uneditable.
1. the checkbox DO not respond to user mouse click
2. and the text company with checkbox is not greyed.
setenable is not i wanted, because 2 is not satisfied
thanks in advanced.If I understand the question, then my replies in this thread should help you out:
http://forum.java.sun.com/thread.jsp?forum=57&thread=122112 -
How to manage data inside iCloud?
How to manage date inside iCloud, like delete the apps I don't want in iCloud storage?
Hi, thanks I solve this problem already
Maybe you are looking for
-
How do i get face time to work on i phone 4?
How do i get face time to work on my i phone? step by step instructions please How do i get my photos from i phone 4 to display on my TV? as advertised on the television. Thanks
-
I have an eight (8) GB iPhone 3G, but when on iTunes on my Mac, it says my phone only has 6.9 GB of space total. I just want to know why this is, and if I am able to get a new phone because of malfunction. Thanks!
-
Can I delete files from disk that I removed just from LR in error?
Hi, this is a really silly error. I've just deleted 100s of raw files from lightroom, useless stuff that I should have deleted at the time but was too lazy to do so. Am now trying to purge all the rubbish and it's taking me days (it's from the last 3
-
Drill down then navigate in chart/table
Is there a way to drill-down the hierarchy then once at the very bottom member, navigate to a more detailed report. I see that i can either choose "drill" or "navigate" under chart interactions but I really kind of want both. I have a line chart that
-
10 Tech Tips to Increase Your Efficiency
Often 24 hours doesn't feel like enough time to do everything you need to do in a day. But the technology that is supposed to make your life easier can slow you down when you don't use it properly. There are countless tips to help you use technology