Working with an API (PHP) question
I am building a mini-app using an API into another back-end
system. To
extract data from this system, I can use PHP lines like this
$stats = $q->campaignStats($cid);
where the variable "$q" has been previously loaded with
values.
What I want to know is - can I programatically generate this
line? What I'd
LIKE to do would be something like this (analogous to the way
that DW builds
query strings) -
$statsQuery = 'campaign' . $command . "($cid)"
and then I can set $command to any of a number of different
values, e.g.,
"ClickStats", "Bounces", "Unsubscribes", etc.
Now - what I don't know how to do is to then reference this
string in a way
that executes the command, as I'm fairly sure that -
$stats = $q->$statsQuery; would fail (but I'm going to try
it of course).
Is there a special way to handle such things?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
Thanks, Micha! My earlier imagined way didn't work, not
surprisingly!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Michael Fesser" <[email protected]> wrote in message
news:[email protected]..
> .oO(Murray *ACE*)
>
>>I am building a mini-app using an API into another
back-end system. To
>>extract data from this system, I can use PHP lines
like this -
>>
>>$stats = $q->campaignStats($cid);
>>
>>where the variable "$q" has been previously loaded
with values.
>>
>>What I want to know is - can I programatically
generate this line? What
>>I'd
>>LIKE to do would be something like this (analogous to
the way that DW
>>builds
>>query strings) -
>>
>>$statsQuery = 'campaign' . $command . "($cid)"
>>
>>and then I can set $command to any of a number of
different values, e.g.,
>>"ClickStats", "Bounces", "Unsubscribes", etc.
>>
>>Now - what I don't know how to do is to then
reference this string in a
>>way
>>that executes the command, as I'm fairly sure that -
>>
>>$stats = $q->$statsQuery; would fail (but I'm
going to try it of course).
>
> The function name can be taken from a variable, so you
can use something
> like
>
> $statsQuery = "campaign$command";
> $stats = $q->$statsQuery($cid);
>
> For other ways of calling such "dynamic" functions have
a look at
> call_user_func() and call_user_func_array() if
necessary.
>
> Micha
Similar Messages
-
Hi All,
I am facing issues in creating adhoc network in Windows 8.1. After searching in internet, I found that adhoc works with
netsh commands.
1. I have tried neths commands and able to get it work on windows 8.1,
but I want to do it through the WLAN APIs ie. WlanConnect ,
2. I am able to initiate the adhoc network(on Windows 8.1) by using WlanConnect API and other device are also able to connect to the Windows8.1 initiated adhoc network but the DHCP is not working.
-> clients are not able to get the IP address.
Is it possible to create the adhoc network and get it work with WLAN APIs (WlanConnect) instead of netsh commands...?
Thanks
akhilHi,
Did you mean to write a program to implement that creating adhoc via UI? This should be development issue.
But this is Windows 8.1 client forum and there is no professional on develop.
To help you better, I suggest you submit a new case on MSDN forum to help to check your code as they will be more professional on your issue:
This is the MSDN forum link.
http://social.msdn.microsoft.com/Forums/
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Kate Li
TechNet Community Support -
XML parser working with MediaWiki API
I have a little helper for a MediaWiki server. It intended to work the following way:
Client side [GWT] ←rpc→ Server side [GWT] JWBF ←http→ MediaWiki API+
GWT - Google Web Toolkit 2.0.4
JWBF - Java Wiki Bot Framework 1.3.2
MediaWiki 1.16 XML
JDK1.6.0_21
GWT sends and receive utf-8 data between client and server well. But the second half fails to work with its own xml traffic.
JWBF gets the xml file via HTTP (log4j logging):
[DefaultClientConnection ] Receiving response: HTTP/1.1 200 OK
[headers ] << HTTP/1.1 200 OK
[headers ] << Date: Thu, 09 Sep 2010 17:36:34 GMT
[headers ] << Server: Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4
[headers ] << X-Powered-By: PHP/5.2.4
[headers ] << Cache-Control: private
[headers ] << Vary: Accept-Encoding
[headers ] << Content-Length: 1177
[headers ] << Keep-Alive: timeout=5, max=95
[headers ] << Connection: Keep-Alive
[headers ] << Content-Type: text/xml; charset=utf-8
[DefaultRequestDirector ] Connection can be kept alive for 5000 ms
[wire ] << "<?xml version="1.0"?><api><query><pages><page pageid="103" ns="0" title="Bronenosets Potyomkin"><revisions><rev revid="503" parentid="502" user="Anton" timestamp="2010-09-09T09:26:34Z" comment="Undo revision 502" xml:space="preserve">[\n]"
[wire ] << "The Battleship Potemkin ([0xd0][0x91][0xd1][0x80][0xd0][0xbe][0xd0][0xbd][0xd0][0xb5][0xd0][0xbd][0xd0][0xbe][0xd1][0x81][0xd0][0xb5][0xd1][0x86] [0xc2][0xab][0xd0][0x9f][0xd0][0xbe][0xd1][0x82][0xd1][0x91][0xd0][0xbc][0xd0][0xba][0xd0][0xb8][0xd0][0xbd][0xc2][0xbb]) is a film.[\n]"
[wire ] << "[\n]"
[wire ] << "The Odessa Steps sequence editing.</rev></revisions></page></pages></query><query-continue><revisions rvstartid="502" /></query-continue></api>"
[SingleClientConnManager ] Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@dfb098And Java XML parser fails to understand this xml and returns the string as it was ISO-8859-1. After the xml bases a class with SAXBuilder, name in brackets, the one within "rev" element, becomes:
ÐÑоненоÑ�ÐµÑ Â«ÐоÑÑмкин»while it should be
Броненосец «Потёмкин»The whole system (Apache, MediaWiki plus JWBF, GWT, client HTML) is set to utf-8, but Java parser (default settings) still does not agree.
Dear specialists, where could be the error?The problem's been found thanks to DrClap ( [XML converted to string - encoding lost?|http://forums.sun.com/thread.jspa?threadID=610257] ).
JWBF read the HTTP stream using system's default encoding:
+Line 216 in jwbf-1.3.2-262\src\net\sourceforge\jwbf\core\actions\HttpActionClient.java+
BufferedReader br = new BufferedReader(new InputStreamReader(res.getEntity().getContent()));From here the whole chain got the wrongly encoded string, including XML parser.
So, the solution is to define the encoding explicitly:
BufferedReader br = new BufferedReader(new InputStreamReader(res.getEntity().getContent(), "UTF-8"));Thank to the community. -
Working with Pages and Word-questions!
NOTE: Sorry for the similarity of this to my post a few minutes ago titled "Which do I use, Pages or Word)? I learned some things through experimentation and have created subtler and more challenging questions for you.
Help me out here (please). I am now working with Pages, sharing documents with dozens of behind the times colleagues who are using some old program called "Word." It's my job to work with these people and I'm trying to make it as easy for everyone as possible.
Do I have this right? When I create a document (or open an old Word document into pages), in order to be able to share it with people, I save it, and check the box to save a copy in Word format. Then when I send my documents, it works like a charm. Yes?
If I start by opening a Word document, and every time I save I check "save copy to Word," I end up with only one document, no version in Pages. If I start with a Pages document, or save without checking the box, I end up with two separate versions of the document (like when I create a pdf)? It appears that if I I want to keep working in the Word format, every time I save it will give me a dialog box and make me check the box (and possibly select my location). This is cumbersome since I am now in the habit of saving often (you learn that when you work with Word for the Mac for any period of time--bomb, bomb, bomb). So, an I correct in assuming that if I want to save regularly, I really have to work in Pages, and then be scrupulous about saving into Word when I'm done for the day, or just before I send? It's sort of a pain in the butt, although I can learn to do it--I just want to make sure I'm not missing something here. Also, is there an autosave function so I don't have to rely on my discipline? Or does it never ever bomb?
What happens if I open the Word version and make changes to it? Do I have to do something differently to make sure I have both versions identical? Am I better off always to open the Pages document to work on, then save and send?
Do I always then have two versions of the same document (like I would if I did this same thing with pdf)?
How do I make sure that the Word version is always up to date since that is the one I am sending to colleagues? Do I always have to save and check the box, and then select the correct document to send?
I do see that when sending a single document I can easily send it while I am in the document itself. When I do this, selecting to send it as a Word document (or a pdf for that matter), will it send the version I most recently saved, or the version that is on my screen (if I forgot to save changes)?
FInally, I'd be open to any tips from people working regularly with others who must use Word. I want it to work as simply as possible, but want to set up some good habits from the beginning.
Finally, finally, have you had problems with compatibility. I have to say that there have been very few Word document yet that I've opened that I haven't gotten a message that says that Pages doesn't support some aspect of the document and formatting is removed, or spacing is different, etc. The most common is that "paragraph borders operate differently so all borders except outside borders have been removed." I'm a bit nervous about this--will I be getting documents from others that I can't trust? Will I have to ask them to send a pdf as well so I can confirm that I got it right? Can anyone ease my mind? Or am I living in reality?
Thanks a million!
EagerLearner
Message was edited by: eagerlearnerWell yes they are not the same program so there will be differences.
For example Pages only allows a border all the way around a paragraph with few options on the style of line, which is why you got the warning.
A workflow would consist of you doing your work in Pages however you like it and when you have finished and saved, making a Word copy which you despatch to your colleagues and then throw away.
Of course this is more cumbersome than sticking with MsWord which is another option. You choose. It comes down to whether or not you have to tightly conform and interact with Word users. Maybe Pages is not for you, or even NeoOfffice which is a clone of MsOffice.
Test it. If it works and you like it stick with whatever solution works for you. -
Database setup with MySQL and PHP question
Hello all,
I recently had a problem getting a report to work for a site I was updating. This site is written in PHP with a MySQL database. The application is to track customer calls to auto repair stores. The database has a lot of foreign keys because they wanted to update information in only one spot and have multiple records be updated all at once. So, I've got all the information from individual calls saved in the call_log table, and have foreign keys to reference information in other tables (for example this table lists what store received the call referencing the store table). If a store changes locations, they want to have reports automatically update with the new address, connection to conversation number, etc.
In one of the responses to my question on how to get this report to work, I was told that this could be done without using foreign keys (by Normalizing the database using mapping tables). I am still a newbie to MySQL, and after looking though a lot of manuals, tutorials, and forum posts, I am more confused now than ever.
I got the report to work using the foreign keys, but I would like to learn what I should have done with the database (and how to get the information displayed).
So for example one report would be displaying the following:
Store Reason for the Customer Call
breaks oil change shocks tune up total calls
5636 - Bloomington 2 4 0 2 8
8875 - Duluth 1 6 4 8 19
with links on the store name to pull up the information on that specific store. How would I change the database (listed below) to do this without foreign keys? Any help would be greatly appreciated.
call_log (table that contains the following:)
call_id
conv_number
date
camp_type (foreign key to the campaign table so it displays the campaign_id)
reason (foreign key to the call_reason table so it displays the reason_id)
location (foreign key to the store table so it displays the store_id)
associate
call_summary
trainig_issue (foreign key to the training_points table so it displays the training_key_id)
visit_closed
example (foreign key to the example_type table so it displays the example_id)
campaign (table that contains the following:)
campaign_id
campaign_name
campaign_promotion
campaign_coupon
campaign_startdate
campaign_enddate
call_reason (table that contains the following:)
reason_id
reason
store (table that contains the following:)
store_id
store_number
store_address
store_city
store_state
store_postalcode
store_name
store_phone
store_email
store_mgr
training_points (table that contains the following:)
training_key_id
key_issue
policy
example_type (table that contains the following:)
example_id
example_name
example_image
Thank you very much.Frankly, that is way to much of a question to be answered in detail on a forum... There's a lot involved and a lot of general database understanding required. I would highly recommend:
Database Design for Mere Mortals: A Hands-On Guide to Relational Database Design, Second Edition -- by Michael J. Hernandez
This is an invaluable book to get you going in the right direction and on a firm foundation.
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer -
Can't get suexec to work with apache and php
I want to enable php scripts to be executed by a php process that runs as the same user as the owner of the site. In my case I am just using userdir so anything under /home/username/public_html should be run as username. I have mod_suexec.so loaded in my httpd.conf file. In the apache docs it says that:
User directories:
Requests that are processed by mod_userdir will call the suEXEC wrapper to execute CGI programs under the userid of the requested user directory. The only requirement needed for this feature to work is for CGI execution to be enabled for the user and that the script must meet the scrutiny of the security checks above. See also the --with-suexec-userdir compile time option.
I think my file meets the security checks it mentions which are listed on the site: http://httpd.apache.org/docs/2.0/suexec.html So that makes me wonder about CGI execution being enabled for my user and how do I modify that. Is there anything else I need to change to enable it?
Last edited by nLEyETn (2009-07-05 20:50:33)I want to enable php scripts to be executed by a php process that runs as the same user as the owner of the site. In my case I am just using userdir so anything under /home/username/public_html should be run as username. I have mod_suexec.so loaded in my httpd.conf file. In the apache docs it says that:
User directories:
Requests that are processed by mod_userdir will call the suEXEC wrapper to execute CGI programs under the userid of the requested user directory. The only requirement needed for this feature to work is for CGI execution to be enabled for the user and that the script must meet the scrutiny of the security checks above. See also the --with-suexec-userdir compile time option.
I think my file meets the security checks it mentions which are listed on the site: http://httpd.apache.org/docs/2.0/suexec.html So that makes me wonder about CGI execution being enabled for my user and how do I modify that. Is there anything else I need to change to enable it?
Last edited by nLEyETn (2009-07-05 20:50:33) -
ADF wont work with custom LoginModule! Question for Mr. Nimphius!
ive setup login module as shown in:
http://www.oracle.com/technology/products/jdev/howtos/10g/jaassec/index.htm
code:
actionContext.getHttpServletRequest().isUserInRole("Administrators") works! but i also want this code to work in ADF:
appmod.getSession().isUserInRole("Administrators")
with default loginmodule "oracle.security.jazn.tools.Admintool" everything is ok! i can get roles in adf but with custom login module i cant!
in ApplicationModule config i have setup
jbo.security.config =
jbo.security.context = oracle.security.jazn
jbo.security.enforce = Must
jbo.security.loginmodule = oracle.sample.dbloginmodule.DBTableLM.DBTableLoginModule
please help!thank you very much for the reply!!!!
i did what you told but no luck... :(((
i still can not get user role from application module!
this code:
if (AppModule.getSession().isUserInRole("Administrators"))
System.out.println("User is in role! ");
simply does not work!
ive tested on standallone oc4j, ive tested on embeded jdveloper 10.1.2.1 !
i get NullPointerException at at oracle.jbo.server.security.jazn.JboJAZNUserManager.isUserInRole(JboJAZNUserManager.java:113)
the thing is that i can use isUserInRole() from request but i can not from application modulle....
...ive lost hours in decompiling and tracking down ADF code just to realize that there is no way to use custom login module with ADF because the thing is hard coded to use xml or ldap..
the only way i see how to solve the problem is to extend oracle.jbo.server.SessionImpl
and override
getUserRoles()
and
isUserInRole(String s)
i can substitute session class with my own by setting
SessionClass = oracle.jbo.server.ExtendedSessionImpl
in file jboserver.properties (which is inside bc4jmt.jar)
the easier way is to write my own function isUserInRole() in EntityImpl... i always can get user principal name with AppModule.getUserPrincipalName()
what do you think? -
Hi, I am newbie in java programming, I am using a communication API. I am havin some problems so I post the errors I am getting waiting for your help. This are the errors:
../src/sampleapps/tutorial/PrimerApp.java:228: cannot resolve symbol
symbol : method enableRecording (ch.ecma.csta.binding.DeviceID,boolean)
location: class PrimerApp
enableRecording(id, true);
^
../src/sampleapps/tutorial/PrimerApp.java:257: addCallRecordingDeviceListener(ch
.ecma.csta.binding.DeviceID,com.avaya.csta.callrecording.CallRecordingDeviceList
ener) in com.avaya.csta.callrecording.CallRecordingServices cannot be applied to
(ch.ecma.csta.binding.DeviceID,PrimerApp.MyCallRecordingDeviceListener)
recordSvcs.addCallRecordingDeviceListener(id, callRecordListener);
^
../src/sampleapps/tutorial/PrimerApp.java:273: removeCallRecordingDeviceListener
(ch.ecma.csta.binding.DeviceID,com.avaya.csta.callrecording.CallRecordingDeviceL
istener) in com.avaya.csta.callrecording.CallRecordingServices cannot be applied
to (ch.ecma.csta.binding.DeviceID,PrimerApp.MyCallRecordingDeviceListener)
recordSvcs.removeCallRecordingDeviceListener(id, callRecordListener);
^
../src/sampleapps/tutorial/PrimerApp.java:545: PrimerApp.MyCallRecordingDeviceLi
stener is not abstract and does not override abstract method removeCallRecording
DeviceListener(ch.ecma.csta.binding.DeviceID,com.avaya.csta.callrecording.CallRe
cordingDeviceListener) in com.avaya.csta.callrecording.CallRecordingServices
private class MyCallRecordingDeviceListener extends
^
../src/sampleapps/tutorial/PrimerApp.java:553: cannot resolve symbol
symbol : variable getFileName
location: class com.avaya.csta.binding.FileInformationUpdatedEvent
String fileName = event.getFileName;
^
../src/sampleapps/tutorial/PrimerApp.java:554: cannot resolve symbol
symbol : variable getStartTime
location: class com.avaya.csta.binding.FileInformationUpdatedEvent
String startTime = event.getStartTime;
^
../src/sampleapps/tutorial/PrimerApp.java:555: cannot resolve symbol
symbol : variable getEndTime
location: class com.avaya.csta.binding.FileInformationUpdatedEvent
String endTime = event.getEndTime;
^
Note: ../src/sampleapps/tutorial/PrimerApp.java uses or overrides a deprecated A
PI.
Note: Recompile with -deprecation for details.
7 errors
Code is attached for any doubts. I really need to solve this problem fast. Thank you very much!Thank you very much 4 your suggestions, I reviewed the methods and corrected 3 of the errors. I still have three that I dont know how to fix. I compiled with the -deprecation oprion and obtained the followin errors and warnings:
../src/sampleapps/tutorial/PrimerApp.java:73: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
private CallRecordingServices recordSvcs;
^
../src/sampleapps/tutorial/PrimerApp.java:543: warning: com.avaya.csta.callrecording.CallRecordingDeviceListener in com.avaya.csta.callrecording has been deprecated
CallRecordingDeviceListener
^
../src/sampleapps/tutorial/PrimerApp.java:158: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
recordSvcs = CallRecordingServices.getInstance();
^
../src/sampleapps/tutorial/PrimerApp.java:170: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
recordSvcs = (CallRecordingServices) provider.getService(
^
../src/sampleapps/tutorial/PrimerApp.java:171: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
com.avaya.csta.callrecording.CallRecordingServices.class.getName());
^
../src/sampleapps/tutorial/PrimerApp.java:225: cannot resolve symbol
symbol : method enableRecording (ch.ecma.csta.binding.DeviceID,boolean)
location: class PrimerApp
enableRecording(id, true);
^
../src/sampleapps/tutorial/PrimerApp.java:555: cannot resolve symbol
symbol : variable getFileName
location: class com.avaya.csta.binding.FileInformationUpdatedEvent
String fileName = event.getFileName;
^
../src/sampleapps/tutorial/PrimerApp.java:556: cannot resolve symbol
symbol : variable getStartTime
location: class com.avaya.csta.binding.FileInformationUpdatedEvent
String startTime = event.getStartTime;
^
../src/sampleapps/tutorial/PrimerApp.java:557: cannot resolve symbol
symbol : variable getEndTime
location: class com.avaya.csta.binding.FileInformationUpdatedEvent
String endTime = event.getEndTime;
^
4 errors
5 warnings
The APi information about the methods related with the errors is:
enableRecording
public abstract void enableRecording(DeviceID device,
Boolean immediatelyActive)
throws CstaException
public String getEndTime()
Returns the value of field 'endTime'.
Returns:
the value of field 'endTime'.
getStartTime and getFileName have the same structure. They are all methods of the class FileInformationUpdatedEvent.
I want to have this information and I tried like this:
public void recordingFileInformationUpdated (
FileInformationUpdatedEvent event)
//En este momento ha terminado la llamada y ya se puede
//recuperar el archivo FileName
String fileName = event.getFileName;
String startTime = event.getStartTime;
String endTime = event.getEndTime;
And for the boolean error I used the method this way:
enableRecording(id, true);
Sorry if the post is too loong, I'll be waiting for your comments, thanks a lot! -
Why does Updatable Results not work with IOTs? This question has not been asked!
I have looked at the notes
http://technet.oracle.com/doc/oracle8i_816/java.816/a81354/resltse2.htm
and there is no mention of an IOT restriction, but when I execute the updateRow I get the READ ONLY ResultSet error.
Can Oracle verify that this is a problem?I just spent the day tackling the same problem except with rs.deleteRow() instead of rs.updateRow().
I created two tables that are exactly the same except that one is an IOT and the other is not. They contain the same data. I was able to delete row(s) using rs.deleteRow() in the not-IOT but was unable to delete rows in the IOT. Instead I caught the "Invalid operation for read only resultset: deleteRow" exception error.
Does anyone else know what the problem is here? -
Working with Raw Files: Workflow question
I am seriously a novice and need some advice. I have a Nikon D40x and I'm using Aperture software. I am shooting in raw (nef)+ jpg. I have uploaded the pics via aperture. When I import, a pop-up import menu says RAW + JPEG PAIRS: BOTH (JPG as master).
No problem here. Now I want to do some "fancy editing" but all I see is the jpg copy. How to I get to the raw (nef) file? And once I do and make changes, do I need to convert it to something else? HOW?
Any and all advice welcome! (Preferably in layman's terms, though. I'm already overwhelmed by all of the techie jargon).My advice:
Stop wasting your time doing jpg and nefs - just do nefs.
You also need to read the introduction to Aperture and possibly the Aperture manual if you want to get competent in the use of Aperture. Some of the principles and concepts need to be understood before you can use Aperture effectively - forget about "fancy" - you need "fundamentals" first. Might sound like I"m telling you to suck eggs, but this understanding is really important. Who knows - reading the manual might even answer the question you just asked...
Regards,
Calx -
Unable to work with Java APIs in MDM new version 5.5.42.65
Hi,
I developed few java applications using MDM Java APIs in the old version(5.5.41.70) of MDM.
After installing new version(5.5.42.65) of MDM in my system, i tried to execute the java applications,am getting failed to execute the applications.
Does the change in the Version not allowing the Java MDM application to execute or is there any other reason..?
Regards
Praveen KPraveen,
Are you using the new jar files as well? The api jars and the mdm server must be on exactly the same version.
Hope this helps.
Greg -
Objective C, working with C++ API
How to include and use a C++ API in an Objective C app? Any idea, tutorial ... ?
Save all your files as .mm instead. They will then be Objective-C++ files that can understand both languages.
-
Working with multiple .as files question
Hi.
I am trying to find out how to make one .as file code interact with another .as file's code.
like, if I had one .as file that specified options of movies and then when the user clicks on a movie (loaded through xml) it uses code from another .as file to load the correct movie.
can someone point me to a tutorial or tell me what to study up on pls?
thanks fro any help!Okay, sorry about that. I put together an example of what I am trying to do. I hope this better explains it.
package {
public class ImageGalleryOne extends Sprite {
public function ImageGalleryOne() {
contentToStage();
public function contentToStage():void {
btnNext = new BtnNext();
addChild(btnNext);
btnNext.x = 1054;
btnNext.y = 929;
btnBack = new BtnBack();
addChild(btnBack);
btnBack.x = 226;
btnBack.y = 929
imageLoaderHost = new Sprite();
addChild(imageLoaderHost);
imageLoaderHost.x = 250;
imageLoaderHost.y = 640;
package {
public class MainMenu extends Sprite {
public function MainMenu() {
contentToStage();
public function contentToStage():void {
mainSprite = new Sprite();
addChild(mainSprite);
backgroundGfc = new Background();
mainSprite.addChild(backgroundGfc);
backgroundGfc.x = 0;
backgroundGfc.y = 0;
backgroundTop = new BackgroundTop();
mainSprite.addChild(backgroundTop);
backgroundTop.x = 0;
backgroundTop.y = 165;
backgroundBottom = new BackgroundBottom();
mainSprite.addChild(backgroundBottom);
backgroundBottom.x = 0;
backgroundBottom.y = 847;
buttonOne = new ButtonOne();
addChild(buttonOne);
buttonOne.x = 50;
buttonOne.y = 350;
buttonOne.addEventListener(MouseEvent.CLICK, galleryOne);
buttonTwo = new ButtonTwo();
addChild(buttonTwo);
buttonTwo.x = 300;
buttonTwo.y = 350;
buttonTwo.addEventListener(MouseEvent.CLICK, galleryTwo);
buttonThree = new ButtonThree();
addChild(buttonThree);
buttonThree.x = 550;
buttonThree.y = 350;
buttonThree.addEventListener(MouseEvent.CLICK, galleryThree);
public function galleryOne():void {
imageGalleryAS = new ImageGalleryOne;
mainSprite.addChild(imageGalleryAS);
mainSprite.setChildIndex(backgroundTop, mainSprite.numChildren -1);
mainSprite.setChildIndex(backgroundBottom, mainSprite.numChildren -2);
//I am trying to get btnBack and btnNext (from imageGalleryAS) above backgroundBottom in the display hierchy -
Java API to work with Oracle Workflow
Hi,
I'm new to Oracle Workflow. Currently, I'm starting to work on a java front-end to work with some features of Oracle Workflow.
The only thing I know, is that I should be using workflow 2.6.3, and someone gave me a jar which is supposed to be the java API to the workflow, and a link to some online info:
http://download-uk.oracle.com/docs/cd/B19306_01/workflow.102/b15855/toc.htm
The api I received, was a jar file named "wfapi.jar". It was sent to me by email, don't know where they got it from.
And that's it ... it's the only info I received.
Searching the web, I found this interesting article:
http://www.oracle.com/technology/products/ias/workflow/release262/wfjavawp.pdf
That teaches me how to work with the java API, but the document itself is intended for release 2.6.2 (november 2001). So I started doing the first coding, and found that I have no way of implementing the instruction: "import oracle.apps.fnd.common.*;"
Seems I don't have the "common" part of the package ... that just pops up two reasons:
1. I don't have the complete java API;
2. This code is for version 2.6.2, and in version 2.6.3 of the API the "common" was removed (which I think it would be quite odd).
So I endup with no way of testing, and don't know the product well enough to start working and learning with it.
Anyone can give me some lights?
Where can I find a complete and definite complete java API?
What about some guide with some examples on how to start working with the API?
Where can I search the demo java programs?
If I download the Oracle Workflow 2.6.3 from oracle.com, will I be able to get that API? Will I need to install it to get the API? Do I need the Oracle DB to be installed first?
I would appreciate some help on how I can startup using this, or what should I look for, and most importantly, where?
Thank you very much.
----- code example -----
To test using what I got, I've ran the following code:
String sUser = "myuser";
String sPass = "mypass";
String sJdbc = "jdbc:oracle:thin:@";
String sStrg = "myserver:1520:mysid";
String sCharSet = null;
WFDB myDB;
WFContext ctx;
myDB = new WFDB(sUser, sPass, sJdbc, sStrg);
sCharSet = System.getProperty("CHARSET");
if(sCharSet==null) { //cannot be null
sCharSet = "UTF8";
This just gives me the following message:
[22-11-2005 14:58:54:328 GMT] 7b4542dd WebGroup E SRVE0026E: [Servlet Error]-[oracle/apps/fnd/common/VersionInfo]: java.lang.NoClassDefFoundError: oracle/apps/fnd/common/VersionInfo
at at oracle.apps.fnd.wf.WFDB.<clinit>(WFDB.java:27).null(Unknown Source)
So it seems the "common" is needed after all ...Hi,
Can any one Please Help me out am Stuck up with the following Exception While trying to invoke a External java Function.
Step 1: Written the attached Java Class from "Oracle WorkFlow's Developers's" guide.
Ref: http://www.stanford.edu/dept/itss/docs/oracle/10g/workflow.101/b10284/deffa02.htm#stdjfa
Step 2: In builder created a process and created a Java Function
<package-name>.<class-name>
Step 3: Compiled the Java Class,and Created a jar file and included the jar and the required .jar files [which are required to make that class compile free] in the class path.
Step 4: We modified the wfjvlsnr.bat by including the custom jar file which was created and the dependent jar files in the classpath and ran the Java Agent.
Step 5: Invoked the Process from client, once the process is invoked we are getting
Unable to load class gov.oracle.apps.fnd.wf.SampleWF
java.lang.ClassNotFoundException: gov.oracle.apps.fnd.wf.SampleWF
Tue Oct 10 14:33:38 GMT+05:30 2006 Enqueuing VAC02/VAC02 gov.oracle.apps.fnd.wf.SampleWF
null
Unable to load class gov.oracle.apps.fnd.wf.SampleWF
: java.lang.ClassNotFoundEx
ception: gov.oracle.apps.fnd.wf.SampleWF
please do reply to my mail [email protected] -
Creating a flash website to work with php & MYSQL for MMORPG
Hi i have a website which is a gangster MMORPG, it using PHP,
CSS, HTML and some javascript but however with the amount of game
similar to mine i want to make it unique so i bought "building
flash websites for dummies" i have read must of it and understand
most of it. but however don't really have a clue i it could
actually work with my website.
what i want to know is can it work with my current PHP &
MYSQL, so for example i want to create a logging page with flash to
replace my old PHP/HTML one this will be my first crack at it. but
will flash be able to check the MYSQL database and send error
messages back to the view etc.Yeah, this can work... My recommendations would be to read a
couple articles in the dev center on this topic, that should get
you started...
http://www.adobe.com/devnet/flash/articles/flash_databases.html
http://www.adobe.com/devnet/flash/articles/datawizards.html
http://www.adobe.com/devnet/flash/articles/ria_dataservices.html
Maybe you are looking for
-
Regrding upgradation from sap r/3 4.6 to ECC 6.0
Hi Friends, We want to upgrade from 4.6C to ECC6.0 . Pls can any one suggest me which tool i have to use . Possible pls send me some docs on this one. Thanks & Regards, Ramnaresh.P
-
Is there an easier or neater way to code this...
Hi there, just another quickie... Is there an easier way to write the following code (especially if i'm going to have a lot of these types of "if" statements that might need to be edited down the track)? Thanks in advance
-
I'm trying to view this application in Russian: http://www.h-ck.ru/map/address.php3?x=237&y=176 But it's showing up in Unicode or Western. How can I change the encoding in the flash application? I've played with all the encoding settings in both Fire
-
60fps Go Pro Footage playing at 30fps on Premier Pro?
When I start a new sequence to match my footage I get: For editing clips recorded in AVC-Intra 100 codec. 16:9 progressive 720p HD video at 59.94 frames per second. 48kHz audio. General Editing mode: AVC-Intra 100 720p 60Hz Timebase: 59.94fps Right n
-
Uploading a corrected calendar after fixing it
After uploading my calendar, I printed some of the photos and discovered resolution problems as well as scratches on a photo. I went back and cleaned up the problem, but I can't upload the new photos and or the corrected calendar.