Tour de Flex Sample - Using the ChannelSet API - 13500
comments
The sample tester is broken. We're going to have it fixed in the next couple of weeks (right after Adobe MAX).
If you want to see what your sample will look like, you can always hand-edit the XML file. Look for the file objects-desktop2.xml. That is the catalog of samples. You can put your own URLs into that file and test.
NOTE: the objects-desktop2.xml file is replaced very time we publish a new sample, so your changes will be overwritten at any time.
If you accidently break the file, simply delete it and re-run Tour de Flex.
We'll have a new sample tester shortly. If you have samples to contribute, please contact me at gwilson (at) adobe com.
Thanks!
Greg
Similar Messages
-
Tour de Flex Sample - Using the ChannelSet API - 14000
comments
The sample tester is broken. We're going to have it fixed in the next couple of weeks (right after Adobe MAX).
If you want to see what your sample will look like, you can always hand-edit the XML file. Look for the file objects-desktop2.xml. That is the catalog of samples. You can put your own URLs into that file and test.
NOTE: the objects-desktop2.xml file is replaced very time we publish a new sample, so your changes will be overwritten at any time.
If you accidently break the file, simply delete it and re-run Tour de Flex.
We'll have a new sample tester shortly. If you have samples to contribute, please contact me at gwilson (at) adobe com.
Thanks!
Greg -
Problems while uploading files using the FileReference API
I've built an image uploader module in Flex using the FileReference API and PHP.
While this works perfect for images upto 1 MB, What I'm noticing is that for images greater that 1 MB even after the Event.COMPLETE has triggered, the file hasn't yet been uploaded into the folder.. its only after a couple of seconds or minutes after the Event.COMPLETE, that the image actually shows up in the FTP folder. Morever I also noticed that for such files the DataEvent.UPLOAD_COMPLETE_DATA that we are using to get feedback from PHP never gets called.
I thought it would be related to the PHP script getting timed out... but the PHP script does get executed and the images do show up in the folder but thats way after the Event.Complete has been triggered and more importantly DataEvent.UPLOAD_COMPLETE_DATA doesnt get called.
Everything seems to work fine as long as the file size is under 1 MB
Did others too face similar problems and any ideas on how to fix it?
Thanks in advanceI don't believe there is, as the browse button renders out as an html input type file component, and this has no ability to get native file size from the client. The only way to do it is to check the file size server side, but that kind of defeats the purpose to some extent, as the file is required to be uploaded before the file size can be checked.
There is no way to do this on the client short of using a third party client side component - ie. java, flash or some other active component that gets file system level access.
Ben -
Tour de Flex Samples needed Adobe AIR plugin to PC to run ?
Where I may find free/open-source sample autonomus Adobe AIR Apps?
How I test if Adobe AIR success installed?
Tour de Flex Samples needed Adobe AIR plugin to PC to run ?Hello,
Solution is very simple, just uncheck the "Group items by category" to display last version of Tour de Flex feauture which is default checked
and if you uncheck the "Show only the latest versions.." you will see all other versions.
Regards,
Goze -
How to create a campaign based on a template using the REST API
Hi CodeIt-ers,
I'm using the REST API to create campaigns in Eloqua 10, all works well except for 1 thing: I can't seem to create a campaign based on an existing Campaign template.
Based on the documentation on REST API - Accessing Campaigns I've tried using "sourceTemplateId" (code snippet below) but that did not do the trick.
Does that functionality simply not work or am I missing something?
Thanks!
Ferry
$campaign_data = new Campaign();
$campaign_data->sourceTemplateId='442';
$campaign_data->folderId='1137';
$campaign_data->currentStatus='draft';Hi Richard,
Unfortunately no. I reached out to support, they informed me "sourceTemplateId" could not be used to create new campaigns based on a template, instead they advised to use the "Elements " property as shown in this example: Eloqua REST API - Create a Campaign with a Segment and Email
Thanks
Ferry -
How to count number of lines inside methods() using the Doclet API
Wrote a custom doclet using the [Doclet API|http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/doclet/index.html ] .
The purpose for the doclet is to load Java source files and create stubs (which are identical Java source files but do not contain any method implementation details).
Instead, the method implementation details need to be replaced with blank lines...
public class MyDoclet {
private static String TAB = "\t";
public static boolean start(RootDoc root) {
ClassDoc[] classes = root.classes();
// Parse through class or interface
for (ClassDoc clazz : classes) {
Type superClass = clazz.superclassType();
// Print Methods
MethodDoc[] methods = clazz.methods();
for (MethodDoc method : methods) {
Parameter[] parameters = method.parameters();
println();
if (!method.isPrivate()) {
print(TAB + method.modifiers() + " "
+ method.returnType().simpleTypeName() + " " + method.name());
print("(");
for (int i=0; i < parameters.length; i++) {
Parameter parameter = (Parameter) parameters;
print(parameter.type().simpleTypeName() + " " + parameter.name());
if (i != parameters.length - 1) {
print(", ");
print(")");
println(" {");
println("\n");
println(TAB + "}");
return true;
As one can see, I am just creating the method and placing the opening and closing curly braces (along with a new \n line escape sequence, in between).
Am not really that familiar with the Doclet API...
Question(s):
(1) What is the best way to figure out how many lines of code are inside each method and then use a for loop to insert the exact same number of blank lines inside the methods?
(2) Is there a way to do it using the com.sun.javadoc.SourcePosition.line() method?
Would really appreciate it if someone could help me because this is an important requirement (hence the 10 Duke Stars).
Happy coding to all,
MikeThis is not possible using the Doclet API, because JavaDoc does not store any information regarding implementation detail. Although MethodDoc#position will give you the line where the method is declared, there is no way to determine where the method body starts and ends.
If you need that much information, maybe you would be better of using a tool such as Eclipse's Abstract Syntax Tree parser. AST will provide you with line numbers for each code expression, hence it is relatively easy to compute the first and last line in a method body. -
How do I create a user, in my context in OID using the Java API
How do I create a user, with subschema, in my context in OID using the JAVA API
I need to be able to create new users in my OID, I was doing it in our old iPlant Directory, but I don't seem to see the same methods in the Oracle LDAP API. I figured out how to get and modify the attributes of a user, but I can't seem to figure out how to add a new one.Try this code , modify it accordingly
------- cut here -------
import oracle.ldap.util.*;
import oracle.ldap.util.jndi.*;
import javax.naming.NamingException;
import javax.naming.directory.*;
import java.io.*;
import java.util.*;
public class NewUser
final static String ldapServerName = "yourLdapServer";
final static String ldapServerPort = "4032";
final static String rootdn = "cn=orcladmin";
final static String rootpass = "welcome1";
public static void main(String argv[]) throws NamingException
// Create the connection to the ldap server
InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx(ldapServerName,
ldapServerPort,
rootdn,
rootpass);
// Create the subscriber object using the default subscriber
Subscriber mysub = null;
String [] mystr = null;
try {
RootOracleContext roc = new RootOracleContext(ctx);
mysub = roc.getSubscriber(ctx, Util.IDTYPE_DN, "o=dec", mystr);
catch (UtilException e) {
e.printStackTrace();
// Create ModPropertySet with user information
ModPropertySet mps = new ModPropertySet();
mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"cn", "Steve.Harvey");
mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"sn", "Harvey");
mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"uid", "SHarvey");
mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"givenname", "Steve");
mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"mail", "[email protected]");
mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"userpassword", "welcome1");
// Create the user
User newUser = null;
try {
newUser = mysub.createUser(ctx, mps, true);
System.out.println("New User DN: " + newUser.getDN(ctx));
catch (UtilException e) {
e.printStacktrace();
------- end cut --------
Enjoy.
Suhail -
How to use the UME api in order to search the LDAP?
Hello,
I have an application which connects to the LDAP the portal is connecting to and search users according to a certain search criteria.
Here is the relevant piece of code:
Hashtable env = new Hashtable();
DirContext ctx = new InitialDirContext(env);
SearchControls controls = new SearchControls();
String filter = "firstName=..."
NamingEnumeration results = ctx.search("OU=OUs", filter, controls);
I would like to do this same search using the UME API.
Can someone please show me the equivalent code to it using the UME API?Hi Roy,
you find the Configuration File you are using in your portal via System Administration -> System Configuration -> UM Configuration -> Data Sources
or in sapume.properties where you can find
##xml file that configures the persistence except roles
ume.persistence.data_source_configuration=YOUR_DATASOURCE_CONFIG_FILE.xml
In this xml file, there is the entry
<principal type="user">:
<principal type="user">
<nameSpaces>
<nameSpace name="com.sap.security.core.usermanagement">
<attributes>
<attribute name="firstname" populateInitially="true"/><attribute name="displayname" populateInitially="true"/> <attribute name="lastname" populateInitially="true"/> <attribute name="fax"/> <attribute name="email"/> <attribute name="title"/> <attribute name="department"/> <attribute name="extensionAttribute2"/> <attribute name="mobile"/> <attribute name="telephone"/> <attribute name="streetaddress"/> <attribute name="pobox"/> <attribute name="location"/> <attribute name="telephoneShort"/> </attributes>
</nameSpace>
<nameSpace name="com.sap.security.core.usermanagement.relation">
<attributes>
<attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
</attributes>
</nameSpace>
</nameSpaces>
</principal>
According to your company LDAP attributes, you will have to extend the above attributes, telephoneShort for example is an attribute within our company.
The UME API does the rest.
All you have to do, is request the right attribute (in my above example it was the last name).
(Sorry for the format, but it is quite cumbersome to format it properly with the available editor )
Kind regards,
Rebecca -
How to use the windows API GetCaretPos with FireFox? It works with IE
I want to get caret position from a windows desktop application using the Windows API GetCaretPos. It works in any windows Application and in IE. It worked also in FireFox for some minutes in version 3.6.8 but than it stopped working. Can anyone tell me how to make it work?
== This happened ==
Every time Firefox openedMany site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
Note: ''This will temporarily log you out of all sites you're logged in to.''
To clear cache and cookies do the following:
#Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
#Under "Time range to clear", select "Everything".
#Now, click the arrow next to Details to toggle the Details list active.
#From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
#Now click the ''Clear now'' button.
Did this fix your problems? Please report back to us! -
Error while using the UWL APIs?
Hi All,
I am using the UWL APIs for Task generation.
Following line is giving error in my code :
<b>IUWLService uwlService =
(IUWLService) PortalRuntime.getRuntimeResources().getService(
IUWLService.ALIAS_KEY);
UWLContext myContext = new UWLContext();
try {
IUWLSession mySession = uwlService.getUwlSessionForWebDynproClient(myContext);
catch (Exception e) {
response.write("Can not create session");
[</b>
The error is " The method getUwlSessionForWebDynproClient is undefined for the type IUWLService
Please help. I am using the right jar
<b><property name="ServicesReference" value="SAPJ2EE::library:tckmcbc.uwl~api"/></b>
Please help.
Marks given for early and helpful replies.
SumitHi All,
This is just to share my experience.
I haved solved the problem by adding the SAP:J2EE library reference to the above library in Deployment Descriptor.
Sumit -
How to filter tasks on the Creation date using the IWorklist API in Java
Hi all,
I'm currently developing a java gui application to display usertasks set by the BPM.
I use the WorkList API to communicate with the TaskActionActionHandler.
I only want the tasks that has a creation that is after a specified date. Therefore I add a filter. The code for retrieving the usertasks now becomes:
Map filterMap = new HashMap();
SimpleDateFormat d = new SimpleDateFormat("dd-mm-yyyy");
Date date = d.parse((String) dForm.get("filterdate"));
Calendar cal = Calendar.getInstance();
cal.setTime(date);
filterMap.put(IWorklistService.FILTER_TYPE_CREATE_DATE_FROM_FILTER,
cal);
RemoteWorklistServiceClient client = new RemoteWorklistServiceClient();
client.init();
IWorklistContext ctx = client.authenticateUser(user, password);
List tasks = client.getWorklistTasks(ctx, filterMap,
IWorklistService.SORT_FIELD_TASK_TITLE,
IWorklistService.SORT_ORDER_ASCENDING);
You can see from the above code-fragment that I specify a FILTER_TYPE_CREATE_DATE_FROM_FILTER filter that is given a Calendar object. This is not working properly. Also a Date value gives a runtime error.
The error I get is :
ORABPEL-10150 Worklist Service Task List Error. An error occured in the Worklist Service while retrieving the task list for user jcooper. Check the task filter criterion and the error stack and fix the cause of the error. Contact oracle support if error is not fixable. at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1602) at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553) at
Can anyone tell me what kind of dateformat I have to specify for the filter option FILTER_TYPE_CREATE_DATE_FROM_FILTER?
Thanks in advance!
TomHi,
Enter the format that you have defined in the configuration of the property in the Additional Metadata parameter. Use the syntax customFormat=<pattern>.
In this link, you have at the end screenshots where to navigate in KM to see the property metadatas of your property:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf
Here see the Defenitions of the KM Metadata Properties:
https://wiki.sdn.sap.com/wiki/display/KMC/DefenitionsoftheKMMetadata+Properties
Regards,
Praveen Gudapati -
"select into" query statements using the DI API
I am trying to use the DI API (6.5) t create a temp table based on an existing table. For example, here is a query string....
select * into ORDR_TEMP from ORDR
Code...
oRecordSet := IRecordset(oCompany.GetBusinessObject(BoRecordset));
oRecordset.DoQuery(sSql);
Error I get...
1). [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot use SELECT INTO in browse mode. 2). [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared
For any other regular select statements the previous code works. Does anyone know for sure if a "select into" statement is not possible using the DI API?Hi Bill,
I´m not really sure if select into is avaiable. But here you´ve got a hint: You could use a user defined function to do it, and just call the function from your code.
SELECT dbo.MyFunction()
Having this function defined in your SQL Server:
CREATE function MyFunction ()
returns char(2)
AS
Begin
select * into ORDR_TEMP from ORDR
Return ('OK')
End
Hope this helps,
Ibai Peñ -
Creating junit test cases using the reflection API
In order to use the reflection API to get information about a *.java file's class name and methods, I need to compile the *.java file first, and then get info through the *.class file. Am I right?
Eclipse, the Java IDE, can create junit test cases for java files the user selects right after the *.java files have been created, and even before the *.java files have been compiled by the user. I guess Eclipse internally compiles the java files before creating JUnit test cases for them. Does anyone know about it? Thanks.Let me explain my problem in more details.
Given any java source tree, my program is supposed to create junit test cases for each class using java reflection. My approach is to scan through the source tree to keep the list of classes available, then compile all the java files in the given source tree, then do Class.forName() to load them to get their methods... Obviously I don't know what classes I will have at compilation time. I create a temp_classes directory as the output directory for the given source tree java files, and I add temp_classes to my classpath when I strart up my own program. However, that won't work..
D:\eclipse\workspace\cmpe271_hw4\classes>java -classpath ..\classes;..\temp_classes Test
javac -classpath .\temp_classes; -d .\temp_classes @temp_classes\javalist.txt
java.lang.ClassNotFoundException: Factory
java.lang.ClassNotFoundException: InvalidDateFormatException
java.lang.ClassNotFoundException: MyUtility
java.lang.ClassNotFoundException: Storage -
Why to use the Java API in MDM
Hi Experts,
I am new to the MDM.
We are having the requirement of inetration between Portal and MDM.Can u please tell me when to use the following coponents like the scenorio's.
Why to install the MDM Business packages in Portal?
why to use the JAVA API.
Please give me the complete information.
RegardsHi Vijay,
Standard Business Package is use to provide interaction between MDM Server and the Portal. It consists of MDM iViews like Item Detail iView (allows to create,edit and delete the records) , Resultset iView (Displays the records, allows to add the records in workflows etc), Search iViews (for searching)i.e. Data Manager functionality.
Java API are used when you need some functionality that standard MDM iViews dont have.MDM Java API consists of set of classes and interfaces with the help of which customization can be done.
Regards,
Jitesh Talreja -
Reading sub folders in ifs using the ifs api
hi,
Is there any way i could get all the sub folders under the parent folders ,using the ifs api.
i am able to get the all the folders starting from the root ( parent folders) but i am unable to get the folders under each parent folder.
for example
at my root level i have folders x, y ,z etc..
and under x i have folders a,b,c etc.
i am able to get x,y,z but not able to get the sub folders under x i.e a, b,c folders etc.
Thanks
ArvindA much more elegant method would be to utilize the oracle.ifs.search package!
You will see in there a Folder Restrict Qualification.
You can set your search class to be Folder.CLASS_NAME
Matt.
Maybe you are looking for
-
My story with suspended account
Please note that I am using another account (NOT the suspended one) to post this message. I have been using skype account for about 10 years. I used it every week, sometimes every day. I am not using the free services. I pay regularly since I have sk
-
Hello, I updated my Revel account to premium and nothing has changed in my account since my purchase, I still have a 2 Gig limited imposed even though I received the confirmation email below. Also why does it say creative cloud as opposed to Revel, i
-
Weird issue. Captivate 6 not letting me select a script for an Advanced Action
Hi, So i'm facing this really weird issue on a captivate 6 project that i built. I need to add an Advance Action on a slide Exit action. This was previously set as "Continue" and now I want to set this to "Execute Advanced Action" (an Advanced Action
-
How to install front row on the dock ?
how to install front row on the dock ?
-
Delta Report (/sapapo/ccr) in the background
Hi Gurus, Is it possible to execute /sapapo/ccr in the background which also includes automatically executing iteration in the background? I tried scheduling a job with /sapapo/cif_deltareport3 in the background, but it seems what it does is to only