Smartview function to set text list measure
Hi All,
In an adhoc analysis, I am able to set the text 'High' (ID = 3) to a member, on a seperate sheet, I am able to retrieve the text value of this member using HsGetValue.
How do you set a text member using the HsSetValue function? entering a valid number against this function (e.g. 1) does not result in HsGetValue retrieving the corresponding text value (e.g. Low) and entering the value Low against this function results in the error '#Invalid Input', can you only update text lists via data load rules and adhoc analysis?
Thanks,
recently, we had a similar issue when a user was trying to copy a text (same as smartlist label from one excel sheet) and save to a smartlist value in a web-form. After copy, system used to show the copied values but on save non of them were getting saved. We observed that it requires ids (numeric values) instead of text.
If you copy the smartlist label from web-form and paste to normal excel sheet, you will see the id and not the label. Similarly, if you copy numeric value (say 2) from excel and paste on a cell (smartlist) in a web-form, system will show and save the value without any issues,
I believe that you are facing similar issue.
Similar Messages
-
Dynamically update values in Text Lists for typed measures
Hi,
We have an alpha-numeric data column in our fact table. This is a data coulmn and we want to store its content as data value in one of the measures. The value in this column is highly dynamic and it is not restricted to a fixed set of values. To store the values we need to use typed measures, but is there way in which I can define the text list itself dynamically? Meaning, we will build the text list dynamically as and when the data comes in the fact table. Is this possible. We are using 11.1.2.1.
Regards,
KrishnaI don't think we have a MaxL (I can be worng) to update Text Lists. You can try creating .slt file dynamically and then manually import them before data load.
.slt will have entries like
#MISSING NoData
#OUTOFRANGE OutOfRange
3 Bad
2 Average
1 Good
Edited by: Celvin Kattookaran on Mar 21, 2013 12:33 PM -
Smartview 11.1.2.5- Cannot change value in Text-List Dropdowns- Excel Crashes
Using latest/greatest Smartview with 64-bit Office and Windows 7. I have a native essbase app utilizing text-lists. I am trying to update text-value through smartview. Smartview automatically produces a drop down to select a value from the linked text-list. However- as soon as a different value is entered or selcted in this cell with the drop-down list- Excel crashs. I have reproduced this consistently everytime. I have no way to change values for text-measure accounts linked to text-lists. I feel this is and incompatabiliyt issue with office 64-bit.
SmartView using the forms. It appears this issue has been logged as issue number 6566082 as seen here: http://docs.oracle.com/cd/E17236_01/epm.1112/readme/sv_1112200_readme.html
But I can't seem to find out where I can get information on the status of this issue and whether it's been patched in future versions. -
Newly installed horizontal drop down menu works in IE. In Firefox, it displays as a vertical text list. Any hints?
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
* Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove the Cookies" from sites causing problems:
* Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
* https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Set text of layer problem (escaping ' and " in javascript)
Hi all
I am using the Dreamweaver behaviour "set text of layer" and
I am having problems with escaping
single AND double quotes in the javascript.
Because the text I want to set the Layer with contains some
javascript.
So the text of my layer contains both single and double
quotes.
I can escape the single quotes like this:
But I can't escape the double quotes the same way for some
reason.
even if I use \" javascript thinks it's the end of the
javascript function.
So I have tried using " in the javascript of the
text to set, but strangely, although it works
in Safari, it does not work in FireFox and IE.
When I mouse over my javascript link set in the layer, the
browser status bar shows the right thing
in Safari, but in IE and FireFox, it shows extra double
quotes...
onClick="MM_setTextOfLayer('list','','<a
href="javascript:;"
onClick="MM_showHideLayers(\'options\',\'\',\'show\')">designers</a>')"
Anybody knows the answer to this one?
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing ListWhat about using the " entity? That *should* work.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"(_seb_)" <[email protected]> wrote in message
news:[email protected]...
> doubling the quotes did not work.
> But I solved the problem by removing the quotes all
together:
>
> onClick="MM_setTextOfLayer('list','','<a
href=javascript: ...
>
> that does it!
>
> Randy Edmunds wrote:
>> Try doubling the quotes to escape them, for example:
>>
>> onClick="MM_setTextOfLayer('list','','<a
href=""javascript:"" ...
>>
>> HTH,
>> Randy
>>
>>
>>> I am using the Dreamweaver behaviour "set text
of layer" and I am having
>>> problems with escaping single AND double quotes
in the javascript.
>>>
>>> Because the text I want to set the Layer with
contains some javascript.
>>>
>>> So the text of my layer contains both single and
double quotes.
>>>
>>> I can escape the single quotes like this:
>>> \'
>>> But I can't escape the double quotes the same
way for some reason.
>>> even if I use \" javascript thinks it's the end
of the javascript
>>> function.
>>>
>>> So I have tried using " in the
javascript of the text to set, but
>>> strangely, although it works in Safari, it does
not work in FireFox and
>>> IE.
>>> When I mouse over my javascript link set in the
layer, the browser
>>> status bar shows the right thing in Safari, but
in IE and FireFox, it
>>> shows extra double quotes...
>>>
>>> onClick="MM_setTextOfLayer('list','','<a
href="javascript:;"
>>>
onClick="MM_showHideLayers(\'options\',\'\',\'show\')">designers</a>')"
>>> Anybody knows the answer to this one?
>
>
> --
> seb ( [email protected])
>
http://webtrans1.com | high-end web
design
> Downloads: Slide Show, Directory Browser, Mailing List -
Setting currency and measurement unit for a field in an ALV report
Plz give sample code to set currency and measurement unit for a field in an ALV report
dear friend
i am seanding you
the display form
if you need select form
and process form also pls keep in touch.
if help full rewards are expecting.
yours
vivek
FORM build_field_catalog .
DATA: w_dthigh(10).
CLEAR fcat.
fcat-fieldname = 'VBELN'.
fcat-outputlen = 10.
fcat-seltext_s = 'COMMERCIAL INVOICE'.
fcat-seltext_m = 'Commercial Invoice'.
fcat-seltext_l = 'COMMERCIAL INVOICE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
fcat-hotspot = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'EXNUM'.
fcat-outputlen = 10.
fcat-seltext_s = 'EXCISE INVOICE'.
fcat-seltext_m = 'Excise Invoice'.
fcat-seltext_l = 'EXCISE INVOICE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-hotspot = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'EXDAT'.
fcat-outputlen = 10.
fcat-seltext_s = 'EXCISE DATE'.
fcat-seltext_m = 'Excise Date'.
fcat-seltext_l = 'EXCISE DATE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'D'.
fcat-datatype = 'DATS'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'NAME1'.
fcat-outputlen = 30.
fcat-seltext_s = 'CUSTOMER'.
fcat-seltext_m = 'Customer'.
fcat-seltext_l = 'CUSTOMER'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'ZZPD'.
fcat-outputlen = 15.
fcat-seltext_s = 'COUNTRY'.
fcat-seltext_m = 'COUNTRY'.
fcat-seltext_l = 'COUNTRY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'WERKS'.
fcat-outputlen = 4.
fcat-seltext_s = 'PLANT'.
fcat-seltext_m = 'Plant'.
fcat-seltext_l = 'PLANT'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'ARKTX'.
fcat-outputlen = 40.
fcat-seltext_s = 'MATERIAL DESCRIPTION'.
fcat-seltext_m = 'Material Description'.
fcat-seltext_l = 'MATERIAL DESCRIPTION'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FKART'.
fcat-outputlen = 4.
fcat-seltext_s = 'Billing type'.
fcat-seltext_m = 'Billing type'.
fcat-seltext_l = 'Billing type'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'INCO1'.
fcat-outputlen = 5.
fcat-seltext_s = 'INCO TERMS'.
fcat-seltext_m = 'INCO TERMS'.
fcat-seltext_l = 'INCO TERMS'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'INCO2'.
fcat-outputlen = 10.
fcat-seltext_s = 'INCO TERMS DES'.
fcat-seltext_m = 'INCO TERMS DES'.
fcat-seltext_l = 'INCO TERMS DES'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FKIMG'.
fcat-outputlen = 14.
fcat-seltext_s = 'QUANTITY'.
fcat-seltext_m = 'Quantity'.
fcat-seltext_l = 'QUANTITY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'QUAN'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FKLMG'.
fcat-outputlen = 10.
fcat-seltext_s = 'QUANTITY'.
fcat-seltext_m = 'QUANTITY'.
fcat-seltext_l = 'QUANTITY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'QUAN'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'MEINS'.
fcat-outputlen = 5.
fcat-seltext_s = 'UNIT'.
fcat-seltext_m = 'UNIT'.
fcat-seltext_l = 'UNIT'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'KBETR'.
fcat-outputlen = 8.
fcat-seltext_s = 'RATE'.
fcat-seltext_m = 'Rate'.
fcat-seltext_l = 'RATE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'NSR'.
fcat-outputlen = 8.
fcat-seltext_s = 'Exmill'.
fcat-seltext_m = 'Exmill'.
fcat-seltext_l = 'Exmill'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'KURSK'.
fcat-outputlen = 8.
fcat-seltext_s = 'EXCHANGE RATE'.
fcat-seltext_m = 'Exchange Rate'.
fcat-seltext_l = 'Exchange Rate'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'WAERK'.
fcat-outputlen = 5.
fcat-seltext_s = 'CURRENCY'.
fcat-seltext_m = 'Currency'.
fcat-seltext_l = 'CURRENCY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CUKY'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'LCURR1'.
fcat-outputlen = 14.
fcat-seltext_s = 'GROSS AMT'.
fcat-seltext_m = 'Gross Amt'.
fcat-seltext_l = 'GROSS AMT'.
fcat-ddictxt = 'L'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
fcat-do_sum = 'X'.
APPEND fcat.
================================= *****************
fheader-typ = 'H'.
SELECT SINGLE butxt
FROM t001
INTO fheader-info
WHERE bukrs EQ '1000'.
APPEND fheader.
CLEAR fheader.
fheader-typ = 'H'.
fheader-info = 'Daily Shipments For Exp'.
APPEND fheader.
CLEAR fheader.
Plant
SORT s_werks BY low.
READ TABLE s_werks INDEX 1.
fheader-typ = 'S'.
WRITE s_werks-low TO fheader-key.
SORT s_werks BY high DESCENDING.
READ TABLE s_werks INDEX 1.
IF s_werks-high NE space.
CONCATENATE fheader-key 'TO' s_werks-high INTO fheader-info
SEPARATED BY space.
ELSE.
WRITE fheader-key TO fheader-info.
ENDIF.
CLEAR fheader-key.
fheader-key = 'PLANT : '.
APPEND fheader.
CLEAR fheader.
Billing Typ
SORT S_FKART BY LOW.
READ TABLE S_FKART INDEX 1.
FHEADER-TYP = 'S'.
WRITE S_FKART-LOW TO FHEADER-KEY.
SORT S_FKART BY HIGH DESCENDING.
READ TABLE S_FKART INDEX 1.
IF S_FKART-HIGH NE SPACE.
CONCATENATE FHEADER-KEY 'TO' S_FKART-HIGH INTO FHEADER-INFO
SEPARATED BY SPACE.
ELSE.
WRITE FHEADER-KEY TO FHEADER-INFO.
ENDIF.
CLEAR FHEADER-KEY.
FHEADER-KEY = 'DOCUMENT TYPE : '.
APPEND FHEADER.
CLEAR FHEADER.
Date...
fheader-typ = 'S'.
FHEADER-KEY = S_FKDAT-LOW.
WRITE s_fkdat-low TO fheader-key.
WRITE s_fkdat-high TO w_dthigh.
CONCATENATE fheader-key 'TO' w_dthigh INTO fheader-info
SEPARATED BY space.
CLEAR fheader-key.
fheader-key = 'PERIOD : '.
APPEND fheader.
CLEAR fheader.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = fevents[]
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc = 0.
fevents-form = 'TOPOFPAGE'.
MODIFY fevents INDEX sy-tabix.
CLEAR fevents.
ENDIF.
rptname = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = rptname
it_fieldcat = fcat[]
i_default = 'S'
it_events = fevents[]
i_save = 'X'
TABLES
t_outtab = it_output[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " BUILD_FIELD_CATALOG -
Retrieve files from a text list and copy them to other location?
Hi,
I work as a photographer: my clients often send me their final selections of my pictures as a text list (i.e. file001.jpg file 004.jpg file 054.jpg and so on), so I have to go back and pick each picture "by hand": this is a huge waste of time since I'm dealing with hundreds of picks in thousands of files.
My question is: is there a way to retrieve and copy the selected files automatically? I was thinking about feeding the list of files to Automator, but I can't seem to find a way to do it.
any hints?
thanks in advance
Andreaok I seemed to have it sorted out...
Niel, I'm no programmer at all, but thanx to your script I was able to come up with this:
tell application "Finder"
set source_folder to choose folder with prompt "Select folder with all pictures"
set the_files to every paragraph of (read (choose file with prompt "Select text file with the names of the pictures to be copied"))
set target_folder to choose folder with prompt "Select destination folder"
repeat with this_file in the_files
try
duplicate item this_file of source_folder to target_folder
end try
end repeat
end tell
that seems to work!
needs some fine tuning, like including subfolders of the first folder chosen!
THANX AGAIN!
Message was edited by: SAPO!! -
How can I generate a text list of the library?
I'd like to know how to generate a simple
Artist - Album
text list of my iTunes library.
I'm curious why this hasn't already been added as a feature?
The export library command is not what I'm looking for. I just want something that generates a .txt without all the XML mumbo jumbo.
Thanks for the help.I like that!
And if you want tab delimiters and column headings, you can do this:
tell application "iTunes"
set the_output to "TITLE" & tab & "ARTIST" & tab & "ALBUM" & return & return
--set counter to 0
repeat with this_track in every track of playlist "Music"
--set counter to counter + 1
--if counter = 50 then exit repeat
tell this_track
set the_output to the_output & name & tab & artist & tab & album & return
end tell
end repeat
return the_output
end tell
If the library is big, it takes forever to collect the text, but you can try it out on just the first 50 tracks by un-commenting (or deleting) all the "counter" lines I added.
It would be nice to have it write directly to an untitled TextEdit document (especially if there's a lot of text to copy/paste), but I'm a beginner with AppleScript so I don't know how or if it's even possible. -
Currently I have a webpage I designed for a company where I have multiple text list boxes side by side for the purpose of displaying data in each one based on a category in the database. So a text list box for the primary key, name, serial number, etc. I have to use Firefox as it typically works best for printing and functionality for the page. The single issue we are having is that in Firefox if the field is null as far as text the text are shrinks meaning all the data in that list box shifts up and is no longer in line with its congruent data in the other text list boxes. In other browsers that's not a problem and everything stays lined up regardless of whether there's text in the box or not.
Unfortunately I cannot provide a link but if contacted I will provide screen shots.Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
http://forums.mozillazine.org/viewforum.php?f=25 <br />
You'll need to register and login to be able to post in that forum. -
Is there a way to use SPD workflow to enhance the alert function in a SharePoint list?
I have a request to achieve this:
the Alert function in a list only allows a user to get alert when anything changes or created, but there is no way to specify notification before a certain field date. For Example, users want to be able to choose to receive a reminder
10 days before expiry date.
The requirement:
1) A user can set a reminder if they wish - so cannot be systematic automatic reminder
2) A user can choose how many days before expiry to receive reminder
I tried workflow by adding additional columns to set the user name to receive reminder and # of days before expiry day to send reminder. But that setting can only apply to one user at time, and the user has to set one item at time, e.g. if user A sets
5 days prior for the reminder on an item. then user B changed it to 4 days, then user A's setting if overwritten.
So this is really a customization of the alert function, but wonder if it can be achieved by workflow created in SPD (or NinTex?)
Thanks in Advance for any tips!One option i can think of is, you can set the Create and Edit access: in Advanced Setting from List setting to Create items and edit items that were created by the user, so that other users can't override the items created by other
users.
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
I have tried to set numbered lists for headings in Pages 5.2 but have not succeeded. I have read similar questions concerning this but this has not helped me...
When I say numbered lists I mean something extremely important and simple, for instance:
1. Introduction
1.1. Background
1.2. Purpose and Questions
2. The Legality of Clause X
2.1. Legality under Article 101.1
2.2. Legality under Article 101.3
And so on...
Heading 1. is selected as "Heading", 1.1 is selected as "Heading 2", and if I had 1.1.1 it would be selected as "Heading 3" and so on...
I have navigated my way to the Format window, and under the tab "Style" and down to "Bullets & Lists". I have here selected the following: Numbered, Numbers, 1. 2. 3. 4., Tiered Numbers, Continue from previous.
There are several problems with this currently.
First, based on the example it becomes "2. Background" when it should be "1.1 Background" instead.
Second, after writing some body text between the headings and then select a new heading, all the previously selected settings I mentioned above in "Bullets & Lists" have to be reselected.
So, how do I set numbered lists for headings, or so called sub-headings, in Pages 5.2? And how do I keep that selected system of numbered lists saved so I don't have to retype it for every new heading I type? (e.g. so that Pages knows that every time I choose Heading 2, I want it to number the heading in the way selected)
Obviously, manually writing the numbers for every heading is not a viable option, as it makes table of contents problematic and is simply tedious. You need an automatic way of doing it, especially if you write long documents where keeping headings in order is absolutely essential.
Also, reverting back to previous Pages versions (like v. 9 I think?) is not an option as that does not exist on my recently purchased Macbook Pro.
I need to be able to do this on Pages 5.2 and do it automatically.
I appreciate any help with this.iWork '09 is not "outdated" it still works and works extremely well and whilst not perfect with MsWord it is far far better than Pages 5.2 which has a stream of major issues with exporting. It is also way better and faster to use than Microsoft Office.
So what is your time and work actually worth? If it is less than $19.99 for 6 months, you may as well just chuck it in and take that job on minimum wages.
You are assuming things for Office 2014 with absolutely no inside knowledge. Much as we assumed Pages 5 was going to be the long awaited improvement, but ended up being a downgrade to match the iOS version, Microsoft is headed the same way with their mobile versions.
This is not like getting the "latest" pair of pants where you go with the crowd and throw out your cigarette legs which replaced the flares, which replaced your low cuts which replaced your cigarette legs, which replaced…
This is work.
If it does the job and does it well, use it. There is nothing out there to really match what Pages '09 does. Yet.
LibreOffice can do most but not all, but has a UI that only a mother could love. It's great redemption is that it uses both open formats and the standard Microsoft formats and is under active development. It also opens and saves to just about everything. When they finally work out the Pages formats, I'm sure they will open those as well.
I use a lot of professional software. Just because the publisher's marketing department says change the product so we can sell more, doesn't mean you have to pay any attention whatsoever. Adobe being a classical example. Most designers are just ignoring their latest subscription based bloatware and getting on with their work.
Peter -
I have tried to find ways around this, but i must set text into a panel. but there is no .setText(), like there is for text fields. So how would i set text into a TextArea?
BTW: what i am trying to do is be able to constatly add things without replacing what has been put up there.
thank youBigDaddyLoveHandles wrote:
sys5 wrote:
I have tried to find ways around this, but i must set text into a panel. but there is no .setText(), like there is for text fields. So how would i set text into a TextArea?
BTW: what i am trying to do is be able to constatly add things without replacing what has been put up there.
thank youCould it be that you are not aware of the documentation?
http://java.sun.com/javase/6/docs/api/
By the way, JTextArea does have a setText method, but it replaces the current text with the given text. It sounds like you want to use ---- but wait, it's better if you find that out yourself. Big hint: it's the first method listed on JTextArea's API page.
edit: too late!If he wasn't aware of the documentation, he probably would have tried using setText(), and found that it worked. That he thought it didn't exist suggests that he looked at the API but only looked in the method summary area, and not below at the "methods inherited from..." sections.
(sorry to ruin your surprise) -
How to set Dropdown list in tablen whith others Dropdown values in each row
how to set Dropdown list in tablen whith others Dropdown values in each row of the table
hi ,
You have to add the parent element before adding data to the child node ...you follow the below steps it will work
1) Take ContextStructure as follows ...
tabledata (valuenode)
ddownbyindex( value node) --within the tabledata node
value (attribute)
2)Binding to your layout
tabledata (node) ---bind this to the dataSource property of your table
ddownbyindex( node)
Value (attribute)--bind to the texts property of you DDbyIndex
3)In wdinit() method add the following code
IPrivate<Your view name>.ITabledataElement tabledataElement =wdContext.createTabledataElement();
wdContext.nodeTabledata().addElement(tabledataElement);
for(int i=0;i<5;i++)
IPrivate<Your viewname>.IDdownbyindexElement ddbyindexElement=wdContext.createDdownbyindexElement();
ddbyindexElement.setValue("Value"+i);
wdContext.nodeDdownbyindex().addElement(ddbyindexElement);
And set the cardinality property of the table node as 0..n
and dropdownbyinex node to 1..n
You try it ...
Regards
Madhavi
Edited by: madhavi kotra on Sep 2, 2008 6:00 PM -
Set text of TextBox coming from Facebook API
I developing an app in which I need to set some data of user from facebook. So using WebAuthentication broker I get the user to login and then fetch the information and set it to the textbox values. The information is fetched properly but the values are
not set in Textbox. I can't figure out the reason. Can somebody help? This is my function for setting the data.
async public void SignUpUsingFacebook(string response)
if (Utility.isInternetAvailable())
try { MainPage.StartAnimation();
MainPage.loaderGrid.Visibility = Visibility.Visible;
catch
setAnimation();
StartAnimation();
loaderGrid.Visibility = Visibility.Visible;
string token = response.Substring(response.IndexOf('=') + 1);
string fbGetInfo = "https://graph.facebook.com/me?access_token=" + token;
HttpResponseMessage msg = await new HttpClient().GetAsync(new Uri(fbGetInfo), HttpCompletionOption.ResponseContentRead);
if (msg.IsSuccessStatusCode)
try
string fbData = await msg.Content.ReadAsStringAsync();
JObject j = JObject.Parse(fbData);
string fbId = j["id"].ToString();
txt_user_Name.Text = fbId;
txt_user_Name.Visibility = Visibility.Collapsed;
txt_first_Name.Text = j["first_name"].ToString();
txt_last_Name.Text = j["last_name"].ToString();
txt_email_Address.Text = j["email"].ToString();
txt_retype_email_Address.Text = j["email"].ToString();
gender = j["gender"].ToString();
if (gender.Equals("male", StringComparison.OrdinalIgnoreCase) || gender.Equals("boy", StringComparison.OrdinalIgnoreCase))
boy.Visibility = Visibility.Collapsed;
boySelected.Visibility = Visibility.Visible;
girlSelected.Visibility = Visibility.Collapsed;
girl.Visibility = Visibility.Visible;
else if (gender.Equals("female", StringComparison.OrdinalIgnoreCase) || gender.Equals("girl", StringComparison.OrdinalIgnoreCase))
girlSelected.Visibility = Visibility.Visible;
boySelected.Visibility = Visibility.Collapsed;
girl.Visibility = Visibility.Collapsed;
boy.Visibility = Visibility.Visible;
catch { }
try { MainPage.loaderGrid.Visibility = Visibility.Collapsed;
MainPage.StopAnimation();
catch
loaderGrid.Visibility = Visibility.Collapsed;
StopAnimation();
else
Utility.notifyUser("Your information from facebook could not be fetched", "");
else
Utility.showMessage(Utility.msgType.InternetError);The WebAuthenticationBroker has nothing to do with the issue of your textboxes not showing the values they were set to show.
You are basically just setting string values to textboxes on your page. This shouldn't fail unless you are doing something else that is invalidating the values. Are you setting the values on a different page and viewing the changes on another?
Abdulwahab Suleiman -
A Very Easy Question.
I attempt to "set text of layer." I click on the plus sign on
the behaviors window, and set text to layer. A cute little box pops
up. In the Layer drop down box is a host of "unnamed
<span>"s. None of my divs are listed. In the body of this
page are Plenty of ID'd divs. I have named layers out the wazoo.
Why Are My Named Layers Not Listed In the Layer Drop Down
Box?> seen it done many times over in rss readers, although
when I look at the
> page
> source I secretly hope that it's not as complicated as
it appears.
It would depend entirely on your level of HTML expertise.
One way to solve the problem would be to use an IFrame to
contain the
external content on the page, but a frame is a frame is a
frame. By that I
mean that IFrames usually provide all the user problems that
frames do.
> With the accordion widget I'm using as the main visual
feature of the site
> I'm
> creating, I find it unnacceptable to think I'll have to
reload the entire
> page
> every time a user wants click on something to view
information; I thought
> programming like that was a thing of the past.
Linking from one page to another is how static HTML pages
work. Having a
single page to display multiple content elements as loaded
from a database
requires that the page return to the server to fetch new
content from the
database on each click. Either method requires a page
refresh.
Linking to content that is placed within an IFrame doesn't
require this page
refresh, but carries other disadvantages as mentioned above.
Does that help at all?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"iiinsomniiiac" <[email protected]> wrote in
message
news:[email protected]...
> Well, my apologies for not knowing exactly what you mean
by
> "round-trip"ing -
> but - I suppose I'm simply looking for the easiest way
to do just what I
> explained: an onclick event that loads an html file into
a div or td.
> I've
> seen it done many times over in rss readers, although
when I look at the
> page
> source I secretly hope that it's not as complicated as
it appears.
>
> With the accordion widget I'm using as the main visual
feature of the site
> I'm
> creating, I find it unnacceptable to think I'll have to
reload the entire
> page
> every time a user wants click on something to view
information; I thought
> programming like that was a thing of the past.
>
Maybe you are looking for
-
"iTunes has encountered a problem and needs to close"-won't even open!
For the last day or so, every time I try to open iTunes, I get that error message. When this started, I had not updated or made any changes. It just happened all of a sudden for apparently no reason. Since then, I have re-downloaded iTunes and Quickt
-
My sync confirmation mail doesn't work
for the first time when i tried to set my sync option up on my nexus7 device my confirmation mail on gmail didn't work. when i click werify button this message (below) appeares Verification link damaged The link you clicked was missing characters, an
-
Help viewer is weird to display topics
Hi, When I try to get help with the help viewer, I enter a word in the little window for a keyword search and Help always display that He can't find anything (Aucune rubrique d'aide correspondante n'a pu être trouvée in french) Per exemple : if I ent
-
Edit in HD, memory problem?
Hi there, Just starting for editing HD footage but wondering should I get more memory for computer because testing to editing a 15 min. footage when export only first 2-5 min. movie I got, the rest is a still image (only last freeze frame when reach
-
Error in CC monitoring.
HI, I am getting this error in RWB--> CC Monitoring. Unable to execute statement for table or stored procedure. 'null' (Structure 'ELIEF') due to java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 Please guide me, what can be the cause and the so