Dynamic Listbox Items in Survey
Hi,
in a survey I use listboxes. These listboxes have to be filled dynamic from a customizing-table. I wanted to do this within the PBO-function, that is assigned to the survey.
I thought I can do this with method DYNAMIC_ITEMS_ADD in class CL_CRM_SVY_VALUES but the listbox does not changes.
Any ideas?
TIA
Adrian Ranfft
Simple but efficient.
One has to choose "dynamic list box" in the survey-suite...
Similar Messages
-
Linking a JS object to ScriptUI listbox item
I am writing a script that that takes elements from a document and for each element makes a custom object with its own properties and methods. This list of elements is then spat out into a ScriptsUI listbox.
How do I link each listbox item to its associated obejct? i.e. So if I double click on a listbox item it will run a particular method within that object.
P.S. I dont want to have to store array ids in a column or something hacky like that.Yep, it seems that the Translator component of the MVVM pattern wouldn't be very useful in a ScriptUI perspective.
The most asbtract pattern you have to deal with, I think, is the GenericList widget (ListBox, DropDownList, maybe TreeView?) and its relationship with what we may call a DataProvider (following Flex and .NET terminology). But ScriptUI/ExtendScript does not allow a serious level of data binding.
The whole problem is to emulate something of a dynamic link so that the data provider can notify the List widget of some changing. As a response, the List then would update its items accordingly. A skeleton of this approach could be drawn using custom event notification:
const EXTERNAL_EVENT_TYPE = 'myEventType';
var externalProcess = function F()
if( F.targetWidget )
F.targetWidget.dispatchEvent(new UIEvent(EXTERNAL_EVENT_TYPE));
// =====================================
// UI
// =====================================
var w = new Window('dialog', "Example"),
// register the LB as a target:
lb = externalProcess.targetWidget = w.add('listbox'),
b = w.add('button',undefined,"Test Change");
lb.addEventListener(
EXTERNAL_EVENT_TYPE,
function(){ alert("Something is happening. I need to update my items!"); }
b.onClick = externalProcess;
w.show();
but I'm afraid this code—which, by the way, works!—leads us to an anti-pattern! Indeed, while we have to register and maintain a reference to the List widget in the external object (which is assumed to wrap the data), we still need to tell the list how to access the data provider in order to update the list items. The only benefit of the scheme above is that the external process can notify the list at any moment. Maybe this could make some sense in a non-modal context (palette), but this doesn't solve the original problem.
So, intuitively, I would tend to take the opposite view: instead of making the external process trigger some event in the UI when its data change, let simply provide a generic resync() method to the list widget. The paradigm, here, is that a data provider should always be an array structure whose elements expose a toString() or whatever feature. If the list widget has a reference to some data provider, then it can load and/or resync the list items using always the same abstract routines. Then we have something purely prototypal:
ListBox.prototype.load = DropDownList.prototype.load = function(/*obj[]&*/dp)
// =====================================
// A simple load method based on the assumption that
// all dp items offer a toString() ability
// Manage a reference to the data provider
this.properties||(this.properties={});
this.properties.data||(this.properties.data=[]);
dp?(this.properties.data=dp):(dp=this.properties.data);
// Vars
var CAN_SEP = 'dropdownlist'==this.type,
n = (dp&&dp.length)||0,
i, s;
// Add the ListItem elems
for (
i=0 ;
i < n ;
s=(''+dp[i++]),
this.add(CAN_SEP && '-'==s ? 'separator' : 'item', s)
// One could improve the code to support additional
// keys for: multicol, images, checks, etc.
return this;
ListBox.prototype.resync = DropDownList.prototype.resync = function(/*obj[]&*/dp)
// =====================================
// Resync, or even reload, the data provider items
this.selection = null;
this.removeAll();
return this.load(dp||null);
ListItem.prototype.get = function()
// =====================================
// Return an object instance from the DP (behind this ListItem)
return this.parent.properties.data[this.index] || null;
From that point, what could the client code look like? We basically have two options:
#1 The process is non-modal and then the external object will invoke List.resync(…) when required; in this case it MUST have a reference to the widget.
#2 The process is modal, meaning that the 'external' object in fact is entirely interacted from the UI (e.g. via a button click); in that case no external reference to the list widget is actually required since the UI module itself knows exactly when a List.resync() is required, so why should it delegate the job? Here is a basic example in such a context:
// Let's have some arbitrary 'OOP' stuff available
var MyClass = function(uid,str)
{ // constructor
this.id=uid||0;
this.rename(str||'');
// various methods
MyClass.prototype.rename = function(str){ this.name=str||'<unknown>'; };
// toString()
MyClass.prototype.toString = function(str){ return this.name; };
var myDataProvider = [
// some array of instances
new MyClass(3, "Name 3"),
new MyClass(5, "Name 5"),
new MyClass(7),
new MyClass(11, "Name 11, OK?")
var processChanges = function()
{ // emulate various changes in the data provider
myDataProvider[0].rename("New name (3)");
myDataProvider[2].rename("Finally Born 7");
myDataProvider[myDataProvider.length] = new MyClass(13, "Did you miss 13?");
myDataProvider[myDataProvider.length] = new MyClass(17, "Hello 17");
myDataProvider.splice(1,1);
// Now the User Interface:
var w = new Window('dialog', "Example"),
lb = w.add('listbox').load(myDataProvider),
b = w.add('button', undefined, "Test Changes!");
lb.onDoubleClick = function()
var someInstance = this.selection.get();
alert( "My secret UID is: " + someInstance.id );
b.onClick = function()
processChanges();
lb.resync();
w.show();
Does it make sense?
@+
Marc -
Best Practice: Dynamically changing Item-Level permissions?
Hi all,
Can you share your opinion on the best practice for Dynamically changing item permissions?
For example, given this scenario:
Item Creator can create an initial item.
After item creator creates, the item becomes read-only for him. Other users can create, but they can only see their own entries (Created by).
At any point in time, other users can be given Read access (or any other access) by an Administrator to a specific item.
The item is then given edit permission to a Reviewer and Approver. Reviewers can only edit, and Approvers can only approve.
After the item has been reviewed, the item becomes read-only to everyone.
I read that there is only a specific number of unique permissions for a List / Library before performance issues start to set in. Given the requirements above, it looks like item-level permission is unavoidable.
Do you have certain ideas how best to go with this?
Thank you!Hi,
According to your post, my understanding is that you wanted to change item level permission.
There is no out of the box way to accomplish this with SharePoint.
You can create a custom permission level using Visual Studio to allow users to add & view items, but not edit permission.
Then create a group with the custom permission level. The users in this group would have the permission of create & add permission, but they could no edit the item.
In the CodePlex, there is a custom workflow activities, but by default it only have four permission level:
Full Control , Design ,Contribute and Read.
You should also customize some permission levels for your scenario.
What’s more, when use the SharePoint 2013 designer, you should only use the 2010 platform to create the workflow using this activities,
https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How to populate table rows with selected listbox items?
Hello,
I am trying to populate a table with selected listbox items. Each item should be a new row in the table. The picture below is the listbox and table I am using. I need to get the selected name to populate the Attendee column of the table when the user clicks the Add button. How do you do this with mutltiple attendees selected?
Thank you,
AngieSo you're considering the fact the if the user clicks the button twice, the name will appear twice and you don't want this, right?
Then you must check if any value is the same than the one you are about to add in the row..
for (var i = 0 ; i < ListBox1.length; i++){
if (ListBox1.getItemState(i) == true){
for (var x = 0 ; x < Table1._Row1.count; x++){
var boNewAttendee = true;
var strAttendee = Table1.resolveNode("Row1[" + x.toString() + "]").txtAttendee;
var newAttendee = ListBox1.getDisplayItem(i);
if (strAttendee.rawValue == newAttendee){
boNewAttendee = false;
break;
if (boNewAttendee){
txtAttendee.rawValue = ListBox1.getDisplayItem(i); -
To get the value of Dynamically generated Items
Hi , i am Writting an applications using HTMLDB, i have a page which is an input page for inputting number of hours you worked on different projects i am createing the Input text filed items dynamically through web PL/SQL , what i want to do is when the user click on the sumbit button i want to read the values of the ITem and insert into a table , since they are dynamically created Items how does HTML DB handle them is there a way to get the Value for the items i tried displaying &P9_1. which is one of the items created dynamicaly but empty value is displayed.
Any assiatnce is of great help.
Thanks in advance
BharathThis is done once the page is submitted, and the values are available in the arrays e.g. htmldb_application.g_f01 etc.
This is covered in the manual -
Executing listbox items according to loop
I am making a vi in which we need to execute listbox items according to loop values defined at the begining( shown in the image attached below) , it's like that we start a loop with some values in it e.g loop(2,4,5) and loop ends with END string and all the items between loop and END we need to execute number of times the values we have defined within loop , e.g in this case since only three values are there within loop 2,4,5 so any items present between loop and END we need to execute 3 times, it could be nested loop also, we tried so many solutions but not getting how to do this, some guidance would be great help.
function of the values defined within loop bracket is that we are having instryment list defined within loop and End and we having kept one constant x with every instrument , this x ( and the values defined within loop) are different voltages, x would be replaced every time by the newq loop value until all values are not executed.
below i am attaching the sequence list image.
Attachments:
sequence list.png 76 KBRitu wrote:
i am doing auto indexing but it not working correctly, below attached is the image of what i am doing.
Like this. (However you'll need more algorithm for this to work in nested loops - you'll have to keep a track of outside loop iterations while you execute inside loops.)
-DP
New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI -
How to use dynamic list box in survey builder?
Hello,
Could someone give me a little bit of thread? How to use dynamic list box in survey builder?Hi Liu,
Dynamic combo boxes::A combo box is dynamic if it references a document property for which a value set is defined in the configuration (System Administration ® System Configuration ® Content Management ® Global Services ® Property Metadata ® Properties ® Parameter Allowed Values).
At runtime (when you open the creation form) the system reads these values from the configuration and displays them in the dropdown list.
If you link a combo box for which list entries already exist to a document property with a value set, the system asks whether you want to delete the list entries. it is recommend that you accept this suggestion and delete the list entries from the XML Forms Builder. Otherwise inconsistencies could arise between the entries in the XML Forms Builder and the value set in the configuration. This can cause errors when saving.
Also you may Refer the Link for Further help:
http://help.sap.com/saphelp_crm50/helpdata/en/29/c40d3d2a83752de10000000a114084/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/00/9e7f41969e1809e10000000a155106/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/a7/5a874174a8050de10000000a1550b0/frameset.htm
Hope it Answers your Queries..
Thanks and Regards,
RK. -
Dynamic line items creation Programatically.
My requirement is to manually create Dynamic line items based on
some values from the existing dynamic line item.
During Dynamic Line Item processing; When the Last 3 chars of Z field
ZWBSMOD is changing; then insert a DLI with Material is
MODULE-<3 chars>.
Which the exit for creating DLI programatically ??Hi Amruta,
Your question is not clear, could you please explian where you want to add line item dynamically?
Regards,
Surender -
How to dynamically changes items properties
How to dynamically changes items properties likes position order in tabular view, width, prompt
Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
The following built-in procedures are available for setting object properties at runtime:
- SET_BLOCK_PROPERTY
- SET_CANVAS_PROPERTY
- SET_FORM_PROPERTY
- SET_ITEM_PROPERTY
- SET_LOV_PROPERTY
- SET_MENU_ITEM_PROPERTY
- SET_PARAMETER_ATTR
- SET_RADIO_BUTTON_PROPERTY
- SET_RECORD_PROPERTY
- SET_RELATION_PROPERTY
- SET_VIEW_PROPERTY
- SET_WINDOW_PROPERTY
The built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
Each built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
If Get_Window_Property('my_window',VISIBLE) = 'FALSE' THEN
Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
To determine if a particular property can be set programmatically, refer to the property descriptions in online Help. -
Is there a way I can dynamically render items on a page?
I have a table with item names, types (radio, checkbox, etc), default values and labels. I want to be able to just add rows to this table and have them show up just as if I had manually added the items using the App Builder. After Submit procesing for the page should be able to access the values of the items just as "easily"
ThanksHi, <BR><BR>
Ok, I've created a plsql region as follows to dynamically build my form:<BR><BR>
DECLARE<BR>
--Cursor to pull out all active records from RES_DLV_CONSERVATION table<BR>
cursor c_records is <BR>
select CON_ID, CON_SCHEME <BR>
from RES_DLV_CONSERVATION <BR>
where CON_ACTIVE = 1;<BR>
--Variables to hold the records from the cursor<BR>
v_id number;<BR>
v_record varchar2(4000);<BR><BR>
BEGIN<BR><BR>
--Open a table to hold the manually created Accreditation form<BR>
htp.p('<table>');<BR><BR>
--open cursor and loop through records populating variables<BR>
open c_records;<BR>
loop<BR>
fetch c_records into v_id, v_record;<BR>
exit when c_records%notfound;<BR><BR>
<i>--Build a form dynamically using the variables. <BR>
--Use the record id to create the names of the form items<BR>
--so they can be referenced later. <BR>
--('chk_' prefix for checkboxes, 'inp_' prefix for text)</i><BR><BR>
htp.p('<tr><BR>
<td><font class="label_def">'||v_record||' </font></td><BR>
<td><input type="checkbox" name="chk_'||v_id||'"></input> </td><BR>
<td><font class="label_def">Names of Accredited Staff</font></td><BR>
<td><input type="text" name="inp_'||v_id||'" style="width:300"></input><BR>
Seperate each name with a comma (,)</td><tr>');<BR>
end loop;<BR>
close c_records;<BR><BR>
--Close table<BR>
htp.p('</table>');<BR><BR>
END;<BR><BR>
I've named each of by items using the record id. <BR>
I now have to create an insert function to populate my table from the form<BR>
How do I then reference these items manually to insert the values into my table.<BR><BR>
Cheers<BR>
Yog -
Save listbox items to file with date in filename
Im trying to setup a small program to where when you save listbox items, it saves to a file with a specific name. All works fine, no problems. What I need to do is hen you click save, it saves the file with the specific name BUT with the date &
time added to the filename.
Example: filename-date-time.txt
Currently, Im only able to save as filename.txt
So when you save the list again, it just overwrites the file already there.
Here is what I have:
IO.Directory.CreateDirectory("C:\foldername")
Dim w As New IO.StreamWriter("C:\foldername\filename.txt")
Dim i As Integer
For i = 0 To ListBox1.Items.Count - 1
w.WriteLine(ListBox1.Items.Item(i))
Next
w.Close()
MsgBox("List has been saved to C:\foldername\filename.txt", MsgBoxStyle.OkOnly)
What do I need to add to this line: Dim w As New IO.StreamWriter("C:\foldername\filename.txt") So that it can save it with the date & time?Dim w As New IO.StreamWriter("C:\foldername\filename " & Now.ToString(" MM/dd/yyyy hh:mm:ssf") & ".txt")
Custom Date and Time Format Strings
Format specifier
Description
Examples
"d"
The day of the month, from 1 through 31.
More information:
The "d" Custom Format Specifier.
2009-06-01T13:45:30 -> 1
2009-06-15T13:45:30 -> 15
"dd"
The day of the month, from 01 through 31.
More information:
The "dd" Custom Format Specifier.
2009-06-01T13:45:30 -> 01
2009-06-15T13:45:30 -> 15
"ddd"
The abbreviated name of the day of the week.
More information:
The "ddd" Custom Format Specifier.
2009-06-15T13:45:30 -> Mon (en-US)
2009-06-15T13:45:30 -> Пн (ru-RU)
2009-06-15T13:45:30 -> lun. (fr-FR)
"dddd"
The full name of the day of the week.
More information:
The "dddd" Custom Format Specifier.
2009-06-15T13:45:30 -> Monday (en-US)
2009-06-15T13:45:30 -> понедельник (ru-RU)
2009-06-15T13:45:30 -> lundi (fr-FR)
"f"
The tenths of a second in a date and time value.
More information:
The "f" Custom Format Specifier.
2009-06-15T13:45:30.6170000 -> 6
2009-06-15T13:45:30.05 -> 0
"ff"
The hundredths of a second in a date and time value.
More information:
The "ff" Custom Format Specifier.
2009-06-15T13:45:30.6170000 -> 61
2009-06-15T13:45:30.0500000 -> 00
"fff"
The milliseconds in a date and time value.
More information:
The "fff" Custom Format Specifier.
6/15/2009 13:45:30.617 -> 617
6/15/2009 13:45:30.0005 -> 000
"ffff"
The ten thousandths of a second in a date and time value.
More information:
The "ffff" Custom Format Specifier.
2009-06-15T13:45:30.6175000 -> 6175
2009-06-15T13:45:30.0000500 -> 0000
"fffff"
The hundred thousandths of a second in a date and time value.
More information:
The "fffff" Custom Format Specifier.
2009-06-15T13:45:30.6175400 -> 61754
6/15/2009 13:45:30.000005 -> 00000
"ffffff"
The millionths of a second in a date and time value.
More information:
The "ffffff" Custom Format Specifier.
2009-06-15T13:45:30.6175420 -> 617542
2009-06-15T13:45:30.0000005 -> 000000
"fffffff"
The ten millionths of a second in a date and time value.
More information:
The "fffffff" Custom Format Specifier.
2009-06-15T13:45:30.6175425 -> 6175425
2009-06-15T13:45:30.0001150 -> 0001150
"F"
If non-zero, the tenths of a second in a date and time value.
More information:
The "F" Custom Format Specifier.
2009-06-15T13:45:30.6170000 -> 6
2009-06-15T13:45:30.0500000 -> (no output)
"FF"
If non-zero, the hundredths of a second in a date and time value.
More information:
The "FF" Custom Format Specifier.
2009-06-15T13:45:30.6170000 -> 61
2009-06-15T13:45:30.0050000 -> (no output)
"FFF"
If non-zero, the milliseconds in a date and time value.
More information:
The "FFF" Custom Format Specifier.
2009-06-15T13:45:30.6170000 -> 617
2009-06-15T13:45:30.0005000 -> (no output)
"FFFF"
If non-zero, the ten thousandths of a second in a date and time value.
More information:
The "FFFF" Custom Format Specifier.
2009-06-15T13:45:30.5275000 -> 5275
2009-06-15T13:45:30.0000500 -> (no output)
"FFFFF"
If non-zero, the hundred thousandths of a second in a date and time value.
More information:
The "FFFFF" Custom Format Specifier.
2009-06-15T13:45:30.6175400 -> 61754
2009-06-15T13:45:30.0000050 -> (no output)
"FFFFFF"
If non-zero, the millionths of a second in a date and time value.
More information:
The "FFFFFF" Custom Format Specifier.
2009-06-15T13:45:30.6175420 -> 617542
2009-06-15T13:45:30.0000005 -> (no output)
"FFFFFFF"
If non-zero, the ten millionths of a second in a date and time value.
More information:
The "FFFFFFF" Custom Format Specifier.
2009-06-15T13:45:30.6175425 -> 6175425
2009-06-15T13:45:30.0001150 -> 000115
"g", "gg"
The period or era.
More information:
The "g" or "gg" Custom Format Specifier.
2009-06-15T13:45:30.6170000 -> A.D.
"h"
The hour, using a 12-hour clock from 1 to 12.
More information:
The "h" Custom Format Specifier.
2009-06-15T01:45:30 -> 1
2009-06-15T13:45:30 -> 1
"hh"
The hour, using a 12-hour clock from 01 to 12.
More information:
The "hh" Custom Format Specifier.
2009-06-15T01:45:30 -> 01
2009-06-15T13:45:30 -> 01
"H"
The hour, using a 24-hour clock from 0 to 23.
More information:
The "H" Custom Format Specifier.
2009-06-15T01:45:30 -> 1
2009-06-15T13:45:30 -> 13
"HH"
The hour, using a 24-hour clock from 00 to 23.
More information:
The "HH" Custom Format Specifier.
2009-06-15T01:45:30 -> 01
2009-06-15T13:45:30 -> 13
"K"
Time zone information.
More information:
The "K" Custom Format Specifier.
With DateTime values:
2009-06-15T13:45:30, Kind Unspecified ->
2009-06-15T13:45:30, Kind Utc -> Z
2009-06-15T13:45:30, Kind Local -> -07:00 (depends on local computer settings)
With DateTimeOffset values:
2009-06-15T01:45:30-07:00 --> -07:00
2009-06-15T08:45:30+00:00 --> +00:00
"m"
The minute, from 0 through 59.
More information:
The "m" Custom Format Specifier.
2009-06-15T01:09:30 -> 9
2009-06-15T13:29:30 -> 29
"mm"
The minute, from 00 through 59.
More information:
The "mm" Custom Format Specifier.
2009-06-15T01:09:30 -> 09
2009-06-15T01:45:30 -> 45
"M"
The month, from 1 through 12.
More information:
The "M" Custom Format Specifier.
2009-06-15T13:45:30 -> 6
"MM"
The month, from 01 through 12.
More information:
The "MM" Custom Format Specifier.
2009-06-15T13:45:30 -> 06
"MMM"
The abbreviated name of the month.
More information:
The "MMM" Custom Format Specifier.
2009-06-15T13:45:30 -> Jun (en-US)
2009-06-15T13:45:30 -> juin (fr-FR)
2009-06-15T13:45:30 -> Jun (zu-ZA)
"MMMM"
The full name of the month.
More information:
The "MMMM" Custom Format Specifier.
2009-06-15T13:45:30 -> June (en-US)
2009-06-15T13:45:30 -> juni (da-DK)
2009-06-15T13:45:30 -> uJuni (zu-ZA)
"s"
The second, from 0 through 59.
More information:
The "s" Custom Format Specifier.
2009-06-15T13:45:09 -> 9
"ss"
The second, from 00 through 59.
More information:
The "ss" Custom Format Specifier.
2009-06-15T13:45:09 -> 09
"t"
The first character of the AM/PM designator.
More information:
The "t" Custom Format Specifier.
2009-06-15T13:45:30 -> P (en-US)
2009-06-15T13:45:30 -> 午 (ja-JP)
2009-06-15T13:45:30 -> (fr-FR)
"tt"
The AM/PM designator.
More information:
The "tt" Custom Format Specifier.
2009-06-15T13:45:30 -> PM (en-US)
2009-06-15T13:45:30 -> 午後 (ja-JP)
2009-06-15T13:45:30 -> (fr-FR)
"y"
The year, from 0 to 99.
More information:
The "y" Custom Format Specifier.
0001-01-01T00:00:00 -> 1
0900-01-01T00:00:00 -> 0
1900-01-01T00:00:00 -> 0
2009-06-15T13:45:30 -> 9
2019-06-15T13:45:30 -> 19
"yy"
The year, from 00 to 99.
More information:
The "yy" Custom Format Specifier.
0001-01-01T00:00:00 -> 01
0900-01-01T00:00:00 -> 00
1900-01-01T00:00:00 -> 00
2019-06-15T13:45:30 -> 19
"yyy"
The year, with a minimum of three digits.
More information:
The "yyy" Custom Format Specifier.
0001-01-01T00:00:00 -> 001
0900-01-01T00:00:00 -> 900
1900-01-01T00:00:00 -> 1900
2009-06-15T13:45:30 -> 2009
"yyyy"
The year as a four-digit number.
More information:
The "yyyy" Custom Format Specifier.
0001-01-01T00:00:00 -> 0001
0900-01-01T00:00:00 -> 0900
1900-01-01T00:00:00 -> 1900
2009-06-15T13:45:30 -> 2009
"yyyyy"
The year as a five-digit number.
More information:
The "yyyyy" Custom Format Specifier.
0001-01-01T00:00:00 -> 00001
2009-06-15T13:45:30 -> 02009
"z"
Hours offset from UTC, with no leading zeros.
More information:
The "z" Custom Format Specifier.
2009-06-15T13:45:30-07:00 -> -7
"zz"
Hours offset from UTC, with a leading zero for a single-digit value.
More information:
The "zz" Custom Format Specifier.
2009-06-15T13:45:30-07:00 -> -07
"zzz"
Hours and minutes offset from UTC.
More information:
The "zzz" Custom Format Specifier.
2009-06-15T13:45:30-07:00 -> -07:00
The time separator.
More information:
The ":" Custom Format Specifier.
2009-06-15T13:45:30 -> : (en-US)
2009-06-15T13:45:30 -> . (it-IT)
2009-06-15T13:45:30 -> : (ja-JP)
The date separator.
More Information:
The "/" Custom Format Specifier.
2009-06-15T13:45:30 -> / (en-US)
2009-06-15T13:45:30 -> - (ar-DZ)
2009-06-15T13:45:30 -> . (tr-TR)
"string"
'string'
Literal string delimiter.
2009-06-15T13:45:30 ("arr:" h:m t) -> arr: 1:45 P
2009-06-15T13:45:30 ('arr:' h:m t) -> arr: 1:45 P
Defines the following character as a custom format specifier.
More information: Using Single Custom Format Specifiers.
2009-06-15T13:45:30 (%h) -> 1
The escape character.
2009-06-15T13:45:30 (h \h) -> 1 h
Any other character
The character is copied to the result string unchanged.
More information:
Using the Escape Character.
2009-06-15T01:45:30 (arr hh:mm t) -> arr 01:45 A
La vida loca
gives error when trying save.
The given path's format is not supported. -
Set listbox item as selected dynamically
I have a list that I add items to and then requery a table to refresh the list. I have the item that I added in string variable. I would like to set the listbox to have the variable as the selected listitem and highlight the item in the list. So far I am able to get the variable to be the selected item but can't figure out how to get the list to hightlight the item as if it were selected maually.
myLists.selectedItem = myNewListItem;
NeilIt's the s:List.
The only thing that came close in the API documetation was ensureIndexIsVisible. I tried that and still no luck.
var l:int;
l = myLists.selectedIndex;
myLists.ensureIndexIsVisible(l);
Neil -
Set listbox items from web service response
Hi All
I am trying to set list box items from a web service response. Couple of issues over here:
1. The user should be able to select multiple items from the list. Hence if I set "Allow multiple values" and set Commit on "exit", then after the web service returns the output, no data is displayed in the listbox. I need to click inside the list box to see the data returned by the web service. How to overcome this..?? ( However this problem (clicking inside the listbox to see the items) does not exist if "Allow multiple values" is unchecked and Commit is set on "Select". )
2. After the list box is filled up, certain default values should be selected. This selection is based on one of the response field (which is actually a table with multiple values... ). Hence, how to capture this response field and set the default values in the above list..??
3. The same case for a dropdown. The values are visible in dropdown. However, a default value should be selected and displayed after returning a response from web service. Again, this default value is dependant on another field in the response as in point no.2
I am trying to use postExecute event as described in [this|http://forms.stefcameron.com/2009/03/23/pre-process-web-service-responses/] link...however not able to achieve the functionality. Please provide suggestions / inputs.
Thanks
DeepakHello,
first: I don´t know anything about the right solution. I am unaware of the existence of the solution, because there were quite many of question about this multiple selection problem and I don´t remember a single "answer".
I can recommend you to simplify everything and create the functionality yourself. I have done that before to avoid these "Adobe-standard" problems. If you have a problem with autofill of the object, ask your WS to send you a single string and pass it yourself using scripting (JS).
And if you have problems with multiple selection, create your own field/ object. Get the string of values, parse it, create multiple lines of the dynamic table with some suitable tool to check/ select the rows you need (use checkbox for example, and your text as a table row). This way you can selected anything you want with no problems at all. It wil only cost you some extra work.
Regards, Otto -
How can i add to a listBox items near in a new column other items ?
The items on the right i changed the property of the listBox1 righttoleft to Yes.
My problem is i want to build a new column for the number so each number i'm adding will be next on the left to the belong item string. And not under it like now.
1. Maybe i need to use another control and not listBox ?
2. How can i add column/s and also maybe adding a title to each column like: Names Id Number....?If you want columns, you should consider a
ListView or
DataGridView. -
ListBox Items sometimes not visible on app Resume
Hey,
I have a winRT windowsphone 8.1 app in development and I've come across a strange problem sometimes.
Basically, when my app loads, I pull items from an RSS using syndication feed, store to a data set which is binded to the listbox. This works perfectly.
I can even hold the back button, terminate the app, then reload it and the items repopulate instantly (guessing the app automatically saves state? I didn't program this in) but occasionally, the listbox is empty. Or so I think, turns out the items are still
loaded; I tap the blank screen and an article shows up, I can still even scroll up and down this blank space, tap other blank areas and different articles from that feed load. So clearly the listbox is still populated, Just not visible.
Does anyone know what causes this? Any advice on what I need to be doing here? Can provide code if required.Alright so I worked out part of the problem. The reason it wasnt working on navigating back sometimes is that parts of the code for initialising the listBox resided in the constructor, and not "onnavigatedto". Moving the code into that method fixed
the issue when navigating back pages.
However, the problem still remains on physically closing the app (swiping it away in multitask view). When the app is loaded again, the listbox is blank, but operable (the feed is clearly loaded as selecting the blank screen opens articles). It seems that
this doesnt occur if I change the "bypasscahceonretreive" property on the syndicatedfeed to "true", but if i set this that means the page will always bypasscache when navigated back to it, i dont want this (waste of quota) so i still need
to fix that one.
Im thinking i may need to implement proper resuming when the app is "closedbyuser"? So add an "onloaded" handler, and it the app was closed by user then just bypass the cache and itll probably work (again, not ideal, as id be happy for
it to use the cache).
Does this sound like the correct behaviour?
EDIT:
I had to do this. It worked, but wasnt ideal. So i bypassed cache on app first load and now it always shows up. weird.
Maybe you are looking for
-
Unicode System Error on XI 3.0
Hi, I have installed XI 3.0 on AIX 64 bit on oracle 9.2.0.6. The current patch level is SP14. On trying to save an ouput of screen to local file in html file the following dump is generated. Runtime Error CONNE_IMPORT_CONVERSION_ERROR Except
-
View Link Bug! - JDEV Developers please read.
This has to be a bug. When I am done with my project for the day I check in the files into PVCS. After check in the files are deleted off my local drive. When I recheck out my project and do a rebuild on the project, I get several View link XML files
-
When running the Universal Windows Platform (UWP) BackgroundTansfer sample (C# or C++) in a phone emulator (i.e., Debug Target is Emulator 10.0.1.0) the sample builds and deploys successfully, but clicking any button in "Scenario 1 File Download", "S
-
Camera raw version 6.7 or 7.1
I just noticed a curious point: If I look into bridge métadata photos it is mentionned Camera Raw process version 6.7 but I use 7.1. Any explanation? another point If I go directly into photo properties details it is indicated 7.1
-
Hello The problem: when we change my file.jnlp in the server, for example we add a line and in the client is a older version, java web start never download the new file. If we modify the jar files then jws download the ner jars but never the jnlp fil