Trace point will be activated in running store procedure only after restarting of procedure.
1.Place TRACE in method Editor
2.Abort process with store procedure
3.Start a new process with store procedure
25 August 2008
22 August 2008
fonts size - using of EM tag
There are two types of length units: relative and absolute. Relative length units specify a length relative to another length property. Style sheets that use relative units will more easily scale from one medium to another (e.g., from a computer display to a laser printer). - W3C Relative units are:
* em: the 'font-size' of the relevant font
* ex: the 'x-height' of the relevant font
* px: pixels, relative to the viewing device
The .em unit can be troublesome, though theoretically it is ideal. Read the following from the W3C specs and note the potential pitfalls: The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element. It may be used for vertical or horizontal measurement. (This unit is also sometimes called the quad-width in typographic texts.)
The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element. It may be used for vertical or horizontal measurement. (This unit is also sometimes called the quad-width in typographic texts.)
»em« nicht nur für Schriftgrößen!
Wie man sieht, muß bei verschachtelten Elementen die Abhängigkeit von den Schriftgrößen der Elternelemente beachtet werden. Darüber hinaus kann ein Bug bei manchen Installationen des Internet Explorers unter Windows dazu führen, daß unter 0.8em formatierte Schriften mikroskopisch klein dargestellt werden. Abhilfe schafft hier, wie bei Efa - Einfach für alle nachzulesen ist, die folgende Angabe:
body { font-size:100.1%; } (die empfehlenswerte Voreinstellung)
Формула конвертирования пикселей в емы (px to ems)
1 / parent font-size * required pixel value = em value
Под "относительнымы" размерами шрифта подразумевается:
1.Что em вычисляются основываясь на размерах родительского элемента. Например если размер шрифта для родительского контейнера 16px, то размер шрифта для вложенных элементов будет тоже равен 16px. Если относительный размер шрифта для вложенного элемента определить как 0.75em то точный размер шрифта для этого элемента будет равен 0.75 * 16px = 12px.
2. Если пользователь увеличивает или уменьшает размер шрифта в браузере, то текст растягивается или сжимается соответственно.
Эластичный интерфейс гибкий и доступный для пользователей и по своей точности почти не уступают пикселям (px) и Вы сможете легко использовать относительные размеры (em) как только полностью поймете разницу между em и px.
Нет ничего проще, чем em. Где нужны масштабируемые размеры, будь то шрифт, будь то бэкграунд, будь то поля и отступы, использую em. Где масштабирование не нужно или искажает верстку - px.
Приведение в body: если основной текст сайта 16px, то font-size:100.1%. Если 14px, то font-size:87.5% и т.д.
Господа, читайте Э.Мейера - все ваши вопросы и заблуждения разрешатся.
* em: the 'font-size' of the relevant font
* ex: the 'x-height' of the relevant font
* px: pixels, relative to the viewing device
The .em unit can be troublesome, though theoretically it is ideal. Read the following from the W3C specs and note the potential pitfalls: The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element. It may be used for vertical or horizontal measurement. (This unit is also sometimes called the quad-width in typographic texts.)
The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element. It may be used for vertical or horizontal measurement. (This unit is also sometimes called the quad-width in typographic texts.)
»em« nicht nur für Schriftgrößen!
Wie man sieht, muß bei verschachtelten Elementen die Abhängigkeit von den Schriftgrößen der Elternelemente beachtet werden. Darüber hinaus kann ein Bug bei manchen Installationen des Internet Explorers unter Windows dazu führen, daß unter 0.8em formatierte Schriften mikroskopisch klein dargestellt werden. Abhilfe schafft hier, wie bei Efa - Einfach für alle nachzulesen ist, die folgende Angabe:
body { font-size:100.1%; } (die empfehlenswerte Voreinstellung)
Формула конвертирования пикселей в емы (px to ems)
1 / parent font-size * required pixel value = em value
Под "относительнымы" размерами шрифта подразумевается:
1.Что em вычисляются основываясь на размерах родительского элемента. Например если размер шрифта для родительского контейнера 16px, то размер шрифта для вложенных элементов будет тоже равен 16px. Если относительный размер шрифта для вложенного элемента определить как 0.75em то точный размер шрифта для этого элемента будет равен 0.75 * 16px = 12px.
2. Если пользователь увеличивает или уменьшает размер шрифта в браузере, то текст растягивается или сжимается соответственно.
Эластичный интерфейс гибкий и доступный для пользователей и по своей точности почти не уступают пикселям (px) и Вы сможете легко использовать относительные размеры (em) как только полностью поймете разницу между em и px.
Нет ничего проще, чем em. Где нужны масштабируемые размеры, будь то шрифт, будь то бэкграунд, будь то поля и отступы, использую em. Где масштабирование не нужно или искажает верстку - px.
Приведение в body: если основной текст сайта 16px, то font-size:100.1%. Если 14px, то font-size:87.5% и т.д.
Господа, читайте Э.Мейера - все ваши вопросы и заблуждения разрешатся.
HTML form width of select element
By default select boxes expand to the size of their content.
Since Netscape 4 has only the proprietary attribute that will give the desired effect, it will not hurt anything to combine the use of CSS and the WIDTH attribute.
<select NAME="foo" WIDTH="300" STYLE="width: 300px">
<option>one
<option>two
<option>three
</select>
Since Netscape 4 has only the proprietary attribute that will give the desired effect, it will not hurt anything to combine the use of CSS and the WIDTH attribute.
<select NAME="foo" WIDTH="300" STYLE="width: 300px">
<option>one
<option>two
<option>three
</select>
20 August 2008
FLEX: add arrays to ArrayCollection to use as DataProvider
Web Service call return in Flex two arrays (a_RowColumn and a_RowColumnProperties) , to use these arrays as source in DataGrid we can put them in ArrayCollection and then use this ArrayCollection as DataProvider for DataGrid.
Code example:
[Bindable]
private var arrCol:ArrayCollection = new ArrayCollection();
arrCol.removeAll();
var newRow : Object;
var i:int;
for (i = 0; i < a_RowColumn.length; i++)
{
newRow = new Object();
newRow.col1 = a_RowColumn[i];
newRow.col2 = a_RowColumnProperties[i];
arrCol.addItem(newRow);
}
dg_FieldList.dataProvider=arrCol;
<mx:DataGrid x="47" y="95" width="90%" height="90%" id="dg_FieldList">
<mx:columns>
<mx:DataGridColumn headerText="Field-Number" dataField="col1"/>
<mx:DataGridColumn headerText="Field-Description" dataField="col2"/>
</mx:columns>
</mx:DataGrid>
Is there any other way to use arrays from Web Service response as DataProvider for DataGrid?
Code example:
[Bindable]
private var arrCol:ArrayCollection = new ArrayCollection();
arrCol.removeAll();
var newRow : Object;
var i:int;
for (i = 0; i < a_RowColumn.length; i++)
{
newRow = new Object();
newRow.col1 = a_RowColumn[i];
newRow.col2 = a_RowColumnProperties[i];
arrCol.addItem(newRow);
}
dg_FieldList.dataProvider=arrCol;
<mx:DataGrid x="47" y="95" width="90%" height="90%" id="dg_FieldList">
<mx:columns>
<mx:DataGridColumn headerText="Field-Number" dataField="col1"/>
<mx:DataGridColumn headerText="Field-Description" dataField="col2"/>
</mx:columns>
</mx:DataGrid>
Is there any other way to use arrays from Web Service response as DataProvider for DataGrid?
using arrays as DataProvider
Converting an array of String objects to an array of Object objects in Flex
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/03/26/converting-an-array-of-string-objects-to-an-array-of-object-objects-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Script>
<![CDATA[
private var arrayOfString:Array;
private var arrayOfObject:Array;
private function init():void {
arrayOfString = ["test", "test", "fork", "test"];
arrayOfObject = stringArrayToObjectArray(arrayOfString);
}
private function stringArrayToObjectArray(sourceArray:Array, key:String = "label"):Array {
var returnArray:Array = new Array();
var idx:uint;
var len:uint = sourceArray.length;
for (idx=0; idx<len; idx++) {
var obj:Object = {};
obj[key] = sourceArray[idx];
returnArray.push(obj);
}
return returnArray;
}
]]>
</mx:Script>
<mx:ApplicationControlBar dock="true">
<mx:Button label="Array of String"
click="list.dataProvider = arrayOfString;" />
<mx:Button label="Array of Object"
click="list.dataProvider = arrayOfObject;" />
</mx:ApplicationControlBar>
<mx:List id="list"
width="100"
rowCount="6"
initialize="init();" />
</mx:Application>
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/03/26/converting-an-array-of-string-objects-to-an-array-of-object-objects-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Script>
<![CDATA[
private var arrayOfString:Array;
private var arrayOfObject:Array;
private function init():void {
arrayOfString = ["test", "test", "fork", "test"];
arrayOfObject = stringArrayToObjectArray(arrayOfString);
}
private function stringArrayToObjectArray(sourceArray:Array, key:String = "label"):Array {
var returnArray:Array = new Array();
var idx:uint;
var len:uint = sourceArray.length;
for (idx=0; idx<len; idx++) {
var obj:Object = {};
obj[key] = sourceArray[idx];
returnArray.push(obj);
}
return returnArray;
}
]]>
</mx:Script>
<mx:ApplicationControlBar dock="true">
<mx:Button label="Array of String"
click="list.dataProvider = arrayOfString;" />
<mx:Button label="Array of Object"
click="list.dataProvider = arrayOfObject;" />
</mx:ApplicationControlBar>
<mx:List id="list"
width="100"
rowCount="6"
initialize="init();" />
</mx:Application>
Arrays in ArrayCollection zusammenpacken
ArrayCollection aus Arrays
Sind es Arrays oder ArrayCollections? Wenn es normale Arrays sind, dann per concat:
Code:
var array1:Array = event.result[0] as Array; var array2:Array = event.result[1] as Array; var dp:Array = array1.concat(array2);
wenn es ArrayCollections sind dann so:
Code:
var array1:ArrayCollection = event.result[0] as ArrayCollection ; var array2:ArrayCollection = event.result[1] as ArrayCollection ; var dp:Array = array1.source.concat(array2.source);
das Array in dp kannst Du dann als dataProvider verwenden.
Sind es Arrays oder ArrayCollections? Wenn es normale Arrays sind, dann per concat:
Code:
var array1:Array = event.result[0] as Array; var array2:Array = event.result[1] as Array; var dp:Array = array1.concat(array2);
wenn es ArrayCollections sind dann so:
Code:
var array1:ArrayCollection = event.result[0] as ArrayCollection ; var array2:ArrayCollection = event.result[1] as ArrayCollection ; var dp:Array = array1.source.concat(array2.source);
das Array in dp kannst Du dann als dataProvider verwenden.
9 August 2008
Subscribe to:
Posts (Atom)