Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all 7329 articles
Browse latest View live

DLL, OCX or PDB ?

$
0
0

If you want to create a PowerBuilder object to be reused by other PowerBuilder applications without exposing the source code you would create:

 

     PowerBuilder Classic:  a PBD

      PowerBuilder.Net:  a PowerBuilder Assembly


Adding new dddw to source control issue!!!!..Please help

$
0
0

I trying to add a new file  from PW12.0 to the source control (pvcs) but I am getting  the error below:

---------- Source Control
Adding selected items to source control...
ChangeMan Version Manager Info: pvcs.suite.PvcsLockedByOtherUserException: ChangeMan Version Manager could not access this Project "share_lib" because it is in use by another user. Try to access this Project at a later time.
ChangeMan Version Manager Info: An error occurred while checking in your files.  Any associated operations have been canceled.
Access to SCC Provider failed during SccAdd(). Try again.
ChangeMan Version Manager Info: pvcs.suite.PvcsLockedByOtherUserException: ChangeMan Version Manager could not access this Project "share_lib" because it is in use by another user. Try to access this Project at a later time.
ChangeMan Version Manager Info: An error occurred while checking in your files.  Any associated operations have been canceled.
Access to SCC Provider failed during SccAdd(). Try again.
Error checking in .PBG file. Verify that new entries are correct and check in .PBG file manually.
Failed to add c:\msxd_52\Client\share_lib\d_dddw_employees_admin.srd
Operation Completed
---------- Done Source Control

Please advise

Hilaire

 

Re: Powerbuilder 11.5.1 on Windows 8?

$
0
0

>>Bruce & Chris, thanks (it was Powerbuilder 11.5, not 12.5 by the way).

 

Understood that.  Just not using that version anymore, so couldn't speak to that.  Just passing along what I knew.

Re: Adding new dddw to source control issue!!!!..Please help

Re: InkPictureControl distorts the loaded background

Re: DLL, OCX or PDB ?

$
0
0

Hi Bruce;

 

  PB Classic can create a .Net Assembly as well.

 

Regards ... Chris

Re: DLL, OCX or PDB ?

$
0
0

Hi GS;

 

  Appeon can use (consume) DLL's, OCX or .Net Assemblies as well by including them in the application deployment profile. I use a DLL and .Net assembly that way via Appeon for MRZ support in my web applications ( http://en.wikipedia.org/wiki/Machine-readable_passport )

 

You can also use Appeon's great Web Service support to encapsulate that functionality and consume it from Appeon.

 

Regards ... Chris

Re: InkPictureControl distorts the loaded background


Re: TargetInvocationException

$
0
0

More details on the error:

System.Windows.Data Error: 6 : 'TargetDefaultValueConverter' converter failed to convert value '' (type 'String'); fallback value will be used, if available. BindingExpression:Path=LibraryName; DataItem='TabPage' (Name='tab_main_tabpage_academic_programmer'); target element is 'UserObject' (Name=''); target property is 'ObjectType' (type 'PBUserObjects') FormatException:'System.FormatException:  is not a valid value for PBUserObjects. ---> System.ArgumentException: Must specify valid information for parsing in the string.

   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)

   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)

   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)

   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

   --- End of inner exception stack trace ---

   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

   at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)

   at MS.Internal.Data.TargetDefaultValueConverter.Convert(Object o, Type type, Object parameter, CultureInfo culture)

   at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'

System.Windows.Data Error: 6 : 'SystemConvertConverter' converter failed to convert value '' (type 'String'); fallback value will be used, if available. BindingExpression:Path=LibraryName; DataItem='TabPage' (Name='tab_main_tabpage_comments'); target element is 'UserObject' (Name=''); target property is 'LinesPerPage' (type 'Int16') FormatException:'System.FormatException: Input string was not in a correct format.

   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

   at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info)

   at System.String.System.IConvertible.ToInt16(IFormatProvider provider)

   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)

   at MS.Internal.Data.SystemConvertConverter.Convert(Object o, Type type, Object parameter, CultureInfo culture)

   at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'

System.Windows.Data Error: 6 : 'TargetDefaultValueConverter' converter failed to convert value '' (type 'String'); fallback value will be used, if available. BindingExpression:Path=LibraryName; DataItem='TabPage' (Name='tab_main_tabpage_comments'); target element is 'UserObject' (Name=''); target property is 'ObjectType' (type 'PBUserObjects') FormatException:'System.FormatException:  is not a valid value for PBUserObjects. ---> System.ArgumentException: Must specify valid information for parsing in the string.

   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)

   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)

   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)

   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

   --- End of inner exception stack trace ---

   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

   at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)

   at MS.Internal.Data.TargetDefaultValueConverter.Convert(Object o, Type type, Object parameter, CultureInfo culture)

   at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'

'c2k.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationUI\v4.0_4.0.0.0__31bf3856ad364e35\PresentationUI.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in Sybase.PowerBuilder.Common.dll

An exception of type 'System.Reflection.TargetInvocationException' occurred in Sybase.PowerBuilder.Common.dll but was not handled in user code

 

 

Additional information: Exception has been thrown by the target of an invocation.

Re: How to build PB workspace from source control

$
0
0

Please keep in mind this is not recommended by me; I'm just saying it's possible. I probably haven't tried something like this in 20 years, so no guarantees I've covered all the bases.

 

  1. Create all your empty PBLs with Library Painter.
  2. Create a target to include all your empty PBLs
  3. Start importing (using Library Painter) object exports dumped from source control
    1. If there are no errors in the object, move on (you should get a few of these)
    2. If there are errors (and assuming it was a compiling system before, this is an error referencing an object that isn't compiled yet or isn't complete), either
      1. Comment out the reference in the export, make a note to come back and remove the comment later, and re-import, or
      2. Import the referenced objects, repeating the above error processing

 

If you're in needy spiritual health, this is a good exercise, because after the first couple of hundred error-ridden imports, every import will be accompanied by a prayer, increasingly involuntarily.

 

I'd rather rewrite in LISP than do this.

 

Good luck,

 

Terry.

Re: Powerbuilder - comparing data between two datawindows (datastores)

$
0
0

I'm not entirely clear what you're after. I'm not clear whether your trying to identify rows that are different, or row/columns that are different. Other things that might impact possibilities are:

  • Is this for a specific data set or a generic routine against any data set?
  • Is this a big data set (will loading a couple of sets of the data into memory cause problems?) or not?
  • Is there an expected proportion of expected differences, or is that unknown? (you can compare sets of rows, dumped as a string, if the expectation is low proportion of differences, but if you end up burrowing down into each row because of a high proportion of differences, you'll end up with cases where you're slower)

 

There's also the possibility of cleaning up the algorithm you've got. For example, if you're using .object. notation to grab single column values, IME, you're almost always better off doing the data type management yourself, and CHOOSE CASEing into the correct GetItem*() function call. The flip side of that is that you're almost always better off, from a performance perspective, getting sets of data out (often .object. can  be good here, if not required) as long as you don't blow out your memory.

 

There's a boatload of possibilities, but a lot will depend on your circumstances and what trade-offs you're willing to make. For example, now that they're in a DataWindow, blowing that data to a database and let it do what it does best may make sense if you're using a local database, but the idea would suck if you had hundreds of thousands of rows that had to travel a sub-oceanic line to a server on another continent. It's hard to say what would be best for you.

 

Good luck,

 

Terry.

Re: Content moderation is in effect....

$
0
0

It appears that the modifications have addressed the situation.  If you still have problems registering for SCN or are seeing long delays before your posts appears, please let me know.

The future of EAServer

$
0
0

Sybase/SAP have been quiet about EAServer for a long time. Is it yet another good product that will be allowed to wither until it is discontinued?

 

I have some ideas about EAServer futures and would like to hear what everyone else thinks.

 

I think that they should go back to the version 5.5 code line, clean out all the Java only stuff, change the name back to Jaguar and make full production use of it included with the PowerBuilder license.

The future of EAServer

$
0
0

The discussion I've heard lately is towards making PowerBuilder components deployable as servlets into NetWeaver.  Given that direction, I would expect to see EAServer wither until it's discontinued.  They probably don't need to have two application server offerings, and it looks like NetWeaver would be the candidate to continue with going forward.  Sorry, but just my $0.02.

Re: The future of EAServer

$
0
0

Hi Roland;

 

  I would have to agree with Bruce's observation at this juncture in EAS's product life. All SAP needs to do is resurrect the "Application Server Plug-In" piece of EAS and make it work with SAP's Application Server (AS) NetWeaver (NW). That would allow NW to host the PBVM and expose NVUO's as a JavaBean or Web Service from inside of NW. At that time - it would make no sense (to me at least) to keep two AS's around.

 

  The EAS architect and original project manager have been out of the EAS piture for quite some time and no new development has been seen for years now either. So I suspect that it will just be left to "wither away" - as you said - as more people look for alternative AS platforms.

 

Regards ... Chris


Access to EBFs on sybase.com oddities

$
0
0

This just showed up on the PowerBuilder facebook page:

"PowerBuilder Customers -

Several of you have noticed that you're unable to get EBFs - we are working to quickly resolve this issue.

We will be notifying customers through a more formal channel soon that we have had to remove a 3rd party product from PowerBuilder and no longer have ability to redistribute versions of PowerBuilder that have this software.

Engineering has built version 12.5.2 to be a shelf-replacement of PowerBuilder 12.5.1.

As of APRIL 15, 2013, It will be the only version that we can distribute.

We are reposting the EBFs for versions 11.x through 12.5.1 and encourage you to download these EBFs as soon as you are able.

I will post again when the EBFs are back up - should be today, Monday April 7."

Re: Dynamic procedure works in PB9 not in PB12

$
0
0

Note, I'm not sure why format 4 of dynamic sql is being used, as all columns of the result set are known at compile time.  In fact it's a return value, not a result set, that is being used.  Here's where the results of the stored procedure are being used.  So maybe the dynamic sql is more complex than it needs to be?  But I can't match the PB documentation with what I'm seeing.  The only SQL I've got experience with is embedded sql....

 

Here's what the stored procedure does

    

return-101

.

.

Return 1  

 

etc.  

 

Here's how PB uses it   

 

if SQLCA.SQLCode = 0 then

  FETCH stu_sp_waitlist12 USING DESCRIPTOR SQLDA;

  if SQLCA.SQLCode = 0 then

   ai_rv = GetDynamicNumber (SQLDA, 1)

   choose case ai_rv

    case 1

     // successful

     // Set waitlist_registered to "Y".  That displays a blue checkmark.

etc.

 

I don't understand how GetDynamicNumber(SQLDA, 1) gets the return value in pb9.  In other words, I don't understand the code, never mind why it's failing.

Re: PB 12.5.2 and IM 12.5.2 only from SPDC ?

$
0
0

This just showed up on the PowerBuilder facebook page. It relates to the issue.

 

"PowerBuilder Customers -

Several of you have noticed that you're unable to get EBFs - we are working to quickly resolve this issue.

We will be notifying customers through a more formal channel soon that we have had to remove a 3rd party product from PowerBuilder and no longer have ability to redistribute versions of PowerBuilder that have this software.

Engineering has built version 12.5.2 to be a shelf-replacement of PowerBuilder 12.5.1.

As of APRIL 15, 2013, It will be the only version that we can distribute.

We are reposting the EBFs for versions 11.x through 12.5.1 and encourage you to download these EBFs as soon as you are able.

I will post again when the EBFs are back up - should be today, Monday April 7."

Re: Have I been black balled???

$
0
0

Also, it looks like everybody's reputation points have gone away, at least temporarily.  I saw something like that at one point the last time time they had moderation on.  Might be related.

Re: Have I been black balled???

$
0
0

I have no doubt your posts will show up.  I had two posts that I made on Friday that just came through.  In fact, I'm posting a response on here to not only let you know that, but so that I can hopefully bump my reputation points up too!!

 

Stinks that they couldn't take the thousands of points I would have had from the old forums.  

 

Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN

Viewing all 7329 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>