Problem writing a New ToPass inheriting from ToCustom.class
Hi,
we are writing a new ToPass but we have two problems:
For a deletion of a user we need two parameters, but the method "deleteEntryCustom(String arg0)" only supports one parameter. We tried to concatenate two parameters and split them within the method, but we always get the same error-Message "putNextEntry failed storing ....".
Is anybody out there, who can help?
Kind regards,
Achim Heinekamp
Hi Dominik,
thank you for your Reply.
I think, the problem is not the InitCustom().
We use the InitCustom() to establish a connection to the target.
With the entry "changetype = delete" in the ToPass-Configuration the method "deleteEntryCustom()" is going to be started, isn't it?
I tried returncodes "0" and "1" für "deleteEntryCustom". I haven't tried any other numbers.
I tried the method "logIt()" several times but it didn't help me with this particular problem.
I forgot the information, that the deletion was executed.
best regards,
Achim
Edited by: Achim Heinekamp on Aug 13, 2008 1:35 PM
Similar Messages
-
TIJ has a section on inheriting from inner classes, but the author didn't illustrate a scenario. What could be the possible usage? Why would one want to only inherit the inner case, but have to initialize the outter class (which it doesn't want to inherit)?
Example code in the book:
//: c08:InheritInner.java
// Inheriting an inner class.
class WithInner {
class Inner {}
public class InheritInner extends WithInner.Inner {
//! InheritInner() {} // Won't compile
InheritInner(WithInner wi) {
wi.super();
public static void main(String[] args) {
WithInner wi = new WithInner();
InheritInner ii = new InheritInner(wi);
} ///:~I've certainly never felt the need to extend inner
classes. As far as I'm concerned, inner classes are
great for certain uses, all of which involve them
being private. I've yet to find a scenario where a
non-private inner class is preferable to a 'proper'
class.To make the outer class act as a factory. The inner class is public but the constructors are private. -
Problem writing metadata to Jpegs originating from Macs
Everything works great when trying to write metadata to a JPEG that originates from a PC. But since my company runs a website, we have to be able to handle JPEGs that come from Macs. I've run across an issue where trying to write metadata to a Mac-JEPG causes an error.
Specifically it occurs in TIFF_MemoryReader::ParseMemoryStream(*), where the code tries to find the tnailIFDOffset value. For PC-JPEGs, it returns a sensible value, but with Mac-JPEGS, the value is 0x65005020. Which is clearly beyond the image size.
The result being that no metadata is saved to the image. A workaround is to download the image, open in a PC Photoshop, and try again with that new image. This suggests the problem is in the file structure of Mac-JPEGs.
Does the toolkit support these images? Is there a better code-centric workaround? Do I have to re-encode the image to PC format before I use the toolkit?Hi,
I have just started working with XMP data manipulation using XMP toolkit.
I am able to read and update XMP data successfully, but not getting an idea to write back to JPEG file.
Is there any API in XMP Toolkit to perform this task?
If not, Please give me some guidelines for this....
Thanks. -
Problems with synching new Curve 8330 from/to Outlook Calendar.
I am hoping someone can help with my problem - after two days I have run out of ideas.
1.I am running a Vista 64bit Laptop with Microsoft Office 2007 including Outlook.
2. Yesterday I purchased a Blackberry 8330 and initially downloaded the included DM, version 4.5. After some intitial hiccups with the synch I was able to synch the contacts, the tasks and the memo databases.
3. With the initial synch the Calendar did download to the device but the contact file was so messed up I had to wipe everything and try again - since then I am unable to synch the Calendar either to or from the device:
I have tried the following:
I have uninstalled and installed DM three times - the most recent is the 4.7 version of the DM with the media manager.
I have wiped the device clean and started from scratch twice.
I have also removed the battery and then reinserted it.
I have tried two way and one way synchs - none worked.
I have tried entering something in the device calendar and seeing if it will synch back to Outlook. To no avail.
I have spent three hours on the phone with Verizon and finally they pointed me to this board.
I found a thread which had a solution from someone who seemed very knowledgeable. His solution involved something to do with the two emails on the device but just as I got started on that solution my Explorer froze and dumped the browser - and now I cannot find the thread again.
Not a great day so far and I am working on hour # 14 with no luck - that's just today.......
Can anyone help?
many thanks
t
Solved!
Go to Solution.when you try to sync the calendar, does it stop at a certain part? which part? does it give you an error?
Have you tried going to control panel, mail, profiles, create a test profile. make it the default(dont add an email... just cancel the wizard)
open outlook(which will now be the new default test profile)
create a test entry and try syncing that
also on your device.. open options-advanced options- default services... which email is set for calendar?
on device, open your calendar, click menu button, and options
how many calendars do you see there, and if you click on each one, how many entries do each one have?
check and see if you have facebook 1.5 installed... go through its options, you may see some check boxes for facebook to take over calendar -
Problems with installing new itune, different from the problems described.
Ok, so this morning when I was trying to access itunes, it said "error, send error report" or something like that. I retried it several times, but it would not work. So I uninstalled it and installed the new version. Then, I when I was trying to download it, it said something is wrong with my "Windows Installer Package"...and it just skips installing itunes... Please help me, thank you.
Then, I when I was trying to download it, it said something is wrong with my "Windows Installer Package"...and it just skips installing itunes
instead of running the install on line, download and save a copy of the iTunes installer to your hard drive, and run the install from there.
if you still get the message then, could you post back with the precise text of the message? -
The title might be a bit confusing so here is the layout.
- classHForm inherits System.Windows.Forms.Form
- frmDoStuff inherits classHForm (written by someone else and used in several applications)
- does not have a constructor specifically defined, so I added the following thinking it would override the parent
Sub Public New()
End Sub
Sub Public New(byval data as string)
'do stuff
End Sub
In my code, I want to instantiate frmDoStuff, but I need to overload it's constructor and populate fields within this form. The problem I'm running into is that when I run this, it is using the constructor from classHForm and ignores any constructor in frmDoStuff.
I guess you can't override the parent constructor? Is that why it won't work?
I didn't want to overload the classHForm constructor, but I will if that's the way to go.
my code:
dim frm as new frmDoStuff(myString)
Note: I would love to show actual code, but not allowed. Against company rules.Your code is similar. The value I pass into frmDoStuff is supposed to set a value for a textfield.
Public Class frmDoStuff
Inherits classHForm
Public Sub New(ByVal s As String, ByVal gridData() as String)
txtMyTextField.text = s LoadGrid(gridData)
End Sub
I also have a datagridview I need to populate in frmDoStuff and thought I would have another string or string array as a second parameter to the constructor and then call a routine from the constructor to populate the datagrid.
of course, when I run it this way, the code is not being reached. I'll build an example as COR suggested and maybe someone will see where I'm going wrong.
[UPDATE]
I created a simple example and it worked. So, now I need to try to understand what is different in the actual code.
Here is my example:
Parent Class inherits form
Imports System.Windows.Forms
Public Class classMyForm
Inherits System.Windows.Forms.Form
Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
End Class
Public Class frmDoStuff
Inherits classMyForm
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Public Sub New(ByVal sStuff As String)
MyBase.New()
InitializeComponent()
'Populate the textbox
TextBox1.Text = sStuff
End Sub
End Class
Public Class frmMyForm
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim frm As New frmDoStuff(TextBox1.Text)
frm.Show()
End Sub
End Class
Just to recap. The actual parent was created a few years ago and the child form that I'm calling, "frmDoStuff" was created a couple years back and is used in several applications. I need to use it in my application, but I need to populate a couple
controls when the form is loaded. As you can see in this example, I successfully overloaded the constructor to populate the textbox in frmDoStuff.
In my real life situation, my overloaded constructor seems to be getting ignored when i step through the code. I'll go back and do some more testing. -
Problem-Writing datas to a Servlet thro' URLConnection class
Hi,
Iam trying to post some string data to a servlet.
The servlet reads 2 parameters from url.And reads the xml string message thro post method.
So in the client program, I added those parameters to the URL directly like this,
"http://localhost/servlet/test?action1=value1&action2=value2" ,and created url object .
And using URLConnection iam trying to post the xml string.
But the servlet does not read the parameter values.Is my approach is correct?
client code:
package test;
import java.net.*;
import java.io.*;
import java.util.*;
public class Testxml{
public static void main(String ars[])
String XML="<?xml version='1.0'?><Test><msg>test message</msg></Test>";
String server="http://localhost/servlet/test";
String encodeString = URLEncoder.encode("action1") + "=" + URLEncoder.encode("something1")+"&"+URLEncoder.encode("action2") + "=" + URLEncoder.encode("something2");
try{
URL u = new URL(server+"?"+encodeString);
URLConnection uc = u.openConnection();
uc.setDoOutput(true);
uc.setUseCaches(false);
uc.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
OutputStream out = uc.getOutputStream();
PrintWriter wout = new PrintWriter(out);
wout.write(alertXML);
wout.flush();
wout.close();
System.out.println("finished");
catch(Exception e) {
System.out.println(e);
Servlet code:
package test;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class test extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
performTask(req, res);
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
performTask(req, res);
public void performTask(HttpServletRequest request, HttpServletResponse response) {
try{
String action1=request.getParameter("action1");
String action2=request.getParameter("action2");
if(action1.equals("something1") && action1.equals("something2") )
ServletInputStream in = request.getInputStream();
byte[] buffer = new byte[1024];
String xmlMsg = "";
int len = in.read(buffer,0,buffer.length);
if(len>0)
while (len > 0 ){
xmlMsg += new String(buffer,0,len);
len = in.read(buffer);
System.out.println("xml : "+xmlMsg);
This is not working.Even,it does not invoke servlet.Is this approach is correct?.
Thanx,
Rahul.Hi,
Did you get the answer to your problem? I am facing the same problem, so if you have the solution, please share the same.
TIA
Anup -
Problem adding to the display list from a class
If I try to convert as3 in an mxml file into a class file and
create an instance of the class, I am unable to add the instance to
the display list. The original mxml file is at the bottom of the
page. The modified mxml file and its associated class are below.
The problem is that I cannot use addChild(myComponent); So how to I
add the UIComponent to the Display list?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import LoadSwf
private var myLoader:LoadSwf
public function init():void{
myLoader=new LoadSwf()
]]>
</mx:Script>
</mx:Application>
Class:
package{
import flash.display.MovieClip;
import com.adobe.viewsource.ViewSource;
import flash.events.Event
import mx.core.UIComponent
import flash.display.Loader
import flash.events.TimerEvent;
import flash.events.StatusEvent
import flash.net.LocalConnection
import flash.net.URLRequest
import flash.net.URLVariables
import flash.utils.Timer;
public class LoadSwf{
private var request:URLRequest
private var loader:Loader = new Loader();
private var conn:LocalConnection = new LocalConnection();
private var myComponent:UIComponent=new UIComponent();
private var swfTimer:Timer;
private var myParameters:URLVariables ;
public function LoadSwf(){
request= new URLRequest("Login.swf");
myParameters= new URLVariables()
myParameters.loginID = "101";
myComponent.addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
finishedLoading);
loader.load(request);
private function finishedLoading(e:Event):void{
//PROBLEM IN THE FOLLOWING LINE!!!!!!!
addChild(myComponent);
swfTimer = new Timer(10);
swfTimer.addEventListener(TimerEvent.TIMER,sendData);
swfTimer.start();
private function sendData(e:Event):void{
conn.addEventListener(StatusEvent.STATUS, onStatus);
conn.send("myConnection", "lcHandler",
myParameters.loginID);
private function onStatus(event:StatusEvent):void {
if (event.level=="status") {
trace("LocalConnection connected");
swfTimer.stop();
}else if (event.level=="error"){
trace("FAILED to connect")
}"SiHoop" <[email protected]> wrote in
message
news:[email protected]...
> If I try to convert as3 in an mxml file into a class
file and create an
> instance of the class, I am unable to add the instance
to the display
> list. The
> original mxml file is at the bottom of the page. The
modified mxml file
> and its
> associated class are below. The problem is that I cannot
use
> addChild(myComponent); So how to I add the UIComponent
to the Display
> list?
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
> layout="absolute"
> creationComplete="init()">
> <mx:Script>
> <![CDATA[
> import LoadSwf
> private var myLoader:LoadSwf
> public function init():void{
> myLoader=new LoadSwf()
> }
> ]]>
> </mx:Script>
> </mx:Application>
> Class:
> package{
> import flash.display.MovieClip;
> import com.adobe.viewsource.ViewSource;
> import flash.events.Event
> import mx.core.UIComponent
> import flash.display.Loader
> import flash.events.TimerEvent;
> import flash.events.StatusEvent
> import flash.net.LocalConnection
> import flash.net.URLRequest
> import flash.net.URLVariables
> import flash.utils.Timer;
> public class LoadSwf{
> private var request:URLRequest
> private var loader:Loader = new Loader();
> private var conn:LocalConnection = new
LocalConnection();
> private var myComponent:UIComponent=new UIComponent();
> private var swfTimer:Timer;
> private var myParameters:URLVariables ;
> public function LoadSwf(){
> request= new URLRequest("Login.swf");
> myParameters= new URLVariables()
> myParameters.loginID = "101";
> myComponent.addChild(loader);
>
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> finishedLoading);
> loader.load(request);
> }
> private function finishedLoading(e:Event):void{
> //PROBLEM IN THE FOLLOWING LINE!!!!!!!
> addChild(myComponent);
You didn't add this component to the Application, so I
wouldn't expect to
see anything you add in this component in the Application.
HTH;
Amy -
We are migrating code developed in eVC++4.0 to Visual Studio 2008. We are facing a Problem as descripted below. We are using Pocket PC 2003 emulator.
We are creating a class inherited from CPropertySheet. As below:
In Header File:
class COptionsSheet :
public CPropertySheet
DECLARE_DYNAMIC(COptionsSheet)
#if(WINVER == 0x400)// This works for MenuBAr inherited from CDialog classes.
CCommandBar m_cb;
#else
CCeCommandBar m_cb;
#endif
public:
virtual BOOL OnInitDialog();
We are drawing menu bar on the property window as below:
In .CPP file:
IMPLEMENT_DYNAMIC(COrderSheet, CPropertySheet)
BEGIN_MESSAGE_MAP(COrderSheet, CPropertySheet)
ON_COMMAND(ID_CUSTOMER_COLLECTPAYMENT, OnCustomerCollectpayment)
ON_WM_INITMENUPOPUP()
ON_NOTIFY(GN_CONTEXTMENU, 0, OnContextMenu)
END_MESSAGE_MAP()
BOOL COrderSheet::OnInitDialog()
BOOL bResult = CPropertySheet::OnInitDialog();
m_cb.Create(this);//This we have changed for VS 2008 as menu was not appearing for class inherited from CDialog class as well. In eVC++
4.0 code we have used. Please see m_cb in header file discription
m_cb.InsertMenuBar(IDR_ORDER1);// This calis unable to draw mwnu bar
CMenu *pMenu = CWnd::GetMenu();
//pMenu becomes NULL in very next line as we are passing it as parameter below.
gPromotion.LoadSalesPromotions(pMenu,
"Sales", SRC_TRACE_START);
We tried this as well but it’s also not working:
CMenu *pMenu = new CMenu;
BOOL cehckStatus = pMenu->LoadMenu(IDR_ORDER1);
SetMenu(pMenu);
CRect r; GetWindowRect(&r);
r.bottom += GetSystemMetrics(SM_CYMENU);
MoveWindow(r);
Do we have to change or add something more for the menu bar in case of Property Sheet. Is there any change between eVC++ and Visual studio 2008 that we need to incorporate here.This forum is for POSReady. Please try one of the Windows CE forums:
http://social.msdn.microsoft.com/Forums/en-US/category/windowsembeddedcompact
-Sean
www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET -
Generate new License Request from ELM
Hello everyone,
I am having a problem generating a new License Request from ELM.
It was required to me by Cisco Licensing in order for them to provide me a new License file.
Here are the steps that I made in generating a new License Request from ELM. (See attached file ELMaccess, LR1 & LR2)
I first accessed the ELM under CUCM administration.
Select License tab> Other Fulfillment Options> Generate License Request> Save to my computer
I received a .txt file (lic_req_201.....) and that certain file was the one I sent to Cisco Licensing.
Cisco Licensing replied:
"It is still the same license request that you have here, just regenerated. What is needed is an entirely new and different ELM License request."
I am not really certain for what kind of License Request file that he wanted, or maybe there is a different procedure in doing this?
Can someone help on this?
If I am missing something or if there is another procedure on generating a new License Request kindly guide me.
Thank you so much.
Kind regards,
Art
Network Engineer
Net Pacific Philippines
CCNA R&S
CSCO12379161Hi mkchandak,
Thank you for your response!
Yes we did, we actually at first generated a license request, submitted it to licensing and they provided us a license file. Now, upon the installation of the license file we received this error message "Insufficient Licenses".
We went back to cisco Licensing, a new engineer assigned to us, provided all the details he requires, our license case was approved by their Product Manager and now he requests for a "Newly Generated License Request".
I followed the same steps in generating a new License Request:
I accessed the ELM under CUCM administration.
Select License tab> Other Fulfillment Options> Generate License Request> Save to my computer
I received a .txt file (lic_req_201.....) and that certain file was the one I sent to Cisco Licensing.
Cisco Licensing replied:
"It is still the same license request that you have here, just regenerated. What is needed is an entirely new and different ELM License request."
So maybe he is referring to something other than the License Request that I have provided.
Maybe there is a different procedure in generating a "fresh and newly generated License Request"
If you know a step-by-step procedure in achieving this, please guide me.
Any help would be greatly appreciated.
Thanks again!
Cheers,
Art
Network Engineer
Net Pacific Philippines
CCNA R&S
CSCO12379161 -
Inheritanc​e from CNiGraph class
I create a new class inheriting from CNiGraph class, and add codes which display a popup menu when OnRButtonDown event occurs in the new class. However, all menu items are grayed and cannot be changed using MF_ENABLED flag.
If I create a new class inheriting from CButton class and repeat the same process, the menu is enabled. Or if I directly respond to OnRButtonDown event of CNiGraph class, everything is ok as well.
So, how to inherit a class in Measurement Studio?VI server properties are grouped by more and more specific as you go from top to bottom. This property is in the bottom set. LabVIEW 2009 SP1 version attached.
This account is no longer active. Contact ShadesOfGray for current posts and information.
Attachments:
SetParentClass.vi 17 KB -
Lost all photos on my iPhoto and get the ERROR WRITING TO DISK when trying to reload from Time Machine. iPhoto cannot import your photos because there was a problem writing to the volume containing your iPHOTO LIBRARY . Looking for solution.
Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
First, empty the Trash, if possible.
Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) 2>&- | wc -l | pbcopy
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign ($) to appear.
The output of the command will be a number. It's automatically copied to the Clipboard. Please paste it into a reply.
The Terminal window doesn't show the output. Please don't copy anything from there. -
hello
I have problem with regist my visa and I cannot buy from store
the message came in the end of form is says
the phone number must be a 7-digit number
and I have writed but not accepted
iam from saudi arabia
my mobile is 966504850992
pls answer
thanks
dfr aldossaryWow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum. Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is. Apple is not here. It's users, like you.
If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off. -
Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?
The_Tonmoy wrote:
I have no communication with my that friend :/ So it means i need to delete those apps? There's no other solution to update those apps?
No. purchases are forever tied to the apple ID used to buy them. Delete them and buy your own copies. -
I have sent my iPod back for servicing because it is cracked, with some dispute with Apple I have managed to get a brand new iPod Touch. Just wondering if anyone has had this problem how long did it take from "Replacement Product Pending" to get back to the UK
Not really. Is say "pending"
pend·ing
/ˈpendiNG/
Adjective
Awaiting decision or settlement.
Preposition
Until (something) happens or takes place: "they were released on bail pending an appeal".
Synonyms
adjective.
pendent - undecided - unsettled - outstanding - pendant
preposition.
during - until - till - to
Maybe you are looking for
-
The CONTENT tab has NOTHING in it, how can I get it back to change settings?
Under Tools - Options - Content: The screen has no options, the screen is blank. How can I get it back so I can change the settings for pop-up blockers and such? This is driving me CRAZY!!!!
-
How to avoid booking of stock every time, when ever I make Delivery
Hello friends, Need your help again 1) When I am making the delivery, at the time of PGI, system asks for sale order stock. I donu2019t want to book stock of material against sales order, whenever I make delivery. How can I avoid booking of stoc
-
Says I already have flash player installed but I don't?
Trying to download the latest flashplayer, but when I get to 66% it tells me I already have it installed although I've uninstalled it from my c drive, any experience of this, or help you can offer? Thanks, Terry
-
Handling m3u8/mpeg-ts files in Flash
I am trying to implement HTTP Live Streaming. I have Apache serving the m3u8 playlists and *.ts video segments successfully (tested on iPhone and in VLC). However, I cannot figure out how to handle these file types in AsctionScript ... Does Flash CS5
-
How do I get an additional text on rollover?
Hi guys, So I'm looking to get an extra text to show when hovering over a thumbnail. Situation: I have a thumbnail linking to a page (frame in timeline) with a YouTube video on it. So I want the title of the video to show up under the thumbnail upon