Discussion:
SRD file back to pbl
(too old to reply)
D. Raucci
19 years ago
Permalink
IM 10.2.1 build 9004

I need to modify a report. I need to enlarge a computed
field so that when a user saves the report as CSV, it is more
than 2 characters in size.

I know I can save it as srd and edit that file, but how do I
get it back to use as a pbl. Is there a way to do it in InfoMaker
or do I need PowerBuilder? Thanks!
Chris Pollach
19 years ago
Permalink
I am pretty sure that you will have to use PowerBuilder!
Post by D. Raucci
IM 10.2.1 build 9004
I need to modify a report. I need to enlarge a computed
field so that when a user saves the report as CSV, it is more
than 2 characters in size.
I know I can save it as srd and edit that file, but how do I
get it back to use as a pbl. Is there a way to do it in InfoMaker
or do I need PowerBuilder? Thanks!
Terry Dykstra
19 years ago
Permalink
You can do it in IM10 using a little registry hack. The hack enables the
import/export options in the library painter.
Save the enclosed registry file, changing its extension back to .reg.
Doubleclick the file and you'll have two new buttons in the library painter:
Export & Import.
--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://www.pb9books.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
Post by Chris Pollach
I am pretty sure that you will have to use PowerBuilder!
Post by D. Raucci
IM 10.2.1 build 9004
I need to modify a report. I need to enlarge a computed
field so that when a user saves the report as CSV, it is more
than 2 characters in size.
I know I can save it as srd and edit that file, but how do I
get it back to use as a pbl. Is there a way to do it in InfoMaker
or do I need PowerBuilder? Thanks!
begin 666 im10_library_toolbar.regx
M__Y7`&D`;@!D`&\`=P!S`" `4@!E`&<`:0!S`'0`<@!Y`" `10!D`&D`= !O
M`'(`( !6`&4`<@!S`&D`;P!N`" `-0`N`# `, `-``H`#0`*`%L`2 !+`$4`
M60!?`$,`50!2`%(`10!.`%0`7P!5`%,`10!2`%P`4P!O`&8`= !W`&$`<@!E
M`%P`4P!Y`&(`80!S`&4`7 !)`&X`9@!O`$T`80!K`&4`<@!<`#$`, `N`# `
M7 !4`&\`;P!L`&(`80!R`%P`,0`P`# `- `@`# `70`-``H`(@!)`'0`90!M
M`',`(@`]`"(`,0`R`#8`. `@`"T`,0`@`#$`-@`S`# `( `Q`#(`-@`R`" `
M,0`V`#$`. `@`#$`,@`V`#8`( `Q`#8`,0`T`" `,0`V`#$`-@`@`#$`-@`R
M`# `( `Q`#0`-0`V`" `,0`S`#(`,@`@`"T`,0`@`#$`-@`T`# `( `R`#(`
..0`P`"(`#0`*``T`"@``
`
end
D. Raucci
19 years ago
Permalink
Where would I see this new buttons?
...
Terry Dykstra
19 years ago
Permalink
In the library painter.
--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://www.pb9books.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
...
unknown
19 years ago
Permalink
Hi Terry - I've downloaded and tried the registry file
without success. It will create the registry key, but no
entries beneath it. The file appears to be abnormally
truncated:

[HKEY_CURRENT_USER\Software\Sybase\InfoMaker\10.0\Toolbar\1004
0]
"Items"="1268 -1 1630 1262 1618 1266 1614 1616 1620 1456
1322 -1 1640
22&#58424;&#49152;&#34816;&#13312;&#10240;&#13312;&#10240;

Would you be able to verify the file is bad and replace it?

Many thanks, John
...
Terry Dykstra
19 years ago
Permalink
What OS are you using?
--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://www.pb9books.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
...
unknown
19 years ago
Permalink
Windows XP Pro, SP2
...
Chris Pollach
19 years ago
Permalink
Terry;

Fyi: It does not work for me on W2000 or XP pro either for IM 10.2.1.

Regards ... Chris
...
unknown
19 years ago
Permalink
Chris and Terry:

With a little trial and error I have a corrected registry
entry (attached) that is working for me. It adds export and
import buttons to PainterBar1 in the Library view. An .srd
file can be imported into a pbl file by:
1) setting the destination library as the working library
2) clicking the new import button (opens a "Select Import
Files" dialog)
3) browsing to and selecting the desired .srd file
4) clicking the Open button
The imported object does not display until you Refresh the
Library view.

Thanks Terry - this is is a nifty tool!
...
unknown
19 years ago
Permalink
P.S. You may notice the registry file is set up for
InfoMaker 10.5 (the version I am running); of course, it
will need to be tweaked if you are running an older release
of IM10 (e.g., 10.0 or 10.2.1).
...
Chris Pollach
19 years ago
Permalink
All;

Here are the Registry files for 10.0, 10.5 and 11.0 Beta II (just
released yesterday with PB 11.net ...
http://www.sybase.com/detail?id=1043611 )
These all work great for me under XP SP2!

Regards ... Chris
...
begin 666 IM10_5_library_toolbar.reg
M__Y7`&D`;@!D`&\`=P!S`" `4@!E`&<`:0!S`'0`<@!Y`" `10!D`&D`= !O
M`'(`( !6`&4`<@!S`&D`;P!N`" `-0`N`# `, `-``H`#0`*`%L`2 !+`$4`
M60!?`$,`50!2`%(`10!.`%0`7P!5`%,`10!2`%P`4P!O`&8`= !W`&$`<@!E
M`%P`4P!Y`&(`80!S`&4`7 !)`&X`9@!O`$T`80!K`&4`<@!<`#$`, `N`#4`
M7 !4`&\`;P!L`&(`80!R`%P`,0`P`# `- `@`# `70`-``H`(@!)`'0`90!M
M`',`(@`]`"(`,0`R`#8`. `@`"T`,0`@`#$`-@`S`# `( `Q`#(`-@`R`" `
M,0`V`#$`. `@`#$`,@`V`#8`( `Q`#8`,0`T`" `,0`V`#$`-@`@`#$`-@`R
M`# `( `Q`#0`-0`V`" `,0`S`#(`,@`@`"T`,0`@`#$`-@`T`# `( `M`#$`
,( `R`#(`.0`P`"(`
`
end

begin 666 IM10_0_library_toolbar.reg
M__Y7`&D`;@!D`&\`=P!S`" `4@!E`&<`:0!S`'0`<@!Y`" `10!D`&D`= !O
M`'(`( !6`&4`<@!S`&D`;P!N`" `-0`N`# `, `-``H`#0`*`%L`2 !+`$4`
M60!?`$,`50!2`%(`10!.`%0`7P!5`%,`10!2`%P`4P!O`&8`= !W`&$`<@!E
M`%P`4P!Y`&(`80!S`&4`7 !)`&X`9@!O`$T`80!K`&4`<@!<`#$`, `N`# `
M7 !4`&\`;P!L`&(`80!R`%P`,0`P`# `- `@`# `70`-``H`(@!)`'0`90!M
M`',`(@`]`"(`,0`R`#8`. `@`"T`,0`@`#$`-@`S`# `( `Q`#(`-@`R`" `
M,0`V`#$`. `@`#$`,@`V`#8`( `Q`#8`,0`T`" `,0`V`#$`-@`@`#$`-@`R
M`# `( `Q`#0`-0`V`" `,0`S`#(`,@`@`"T`,0`@`#$`-@`T`# `( `M`#$`
,( `R`#(`.0`P`"(`
`
end

begin 666 IM11_0_library_toolbar.reg
M__Y7`&D`;@!D`&\`=P!S`" `4@!E`&<`:0!S`'0`<@!Y`" `10!D`&D`= !O
M`'(`( !6`&4`<@!S`&D`;P!N`" `-0`N`# `, `-``H`#0`*`%L`2 !+`$4`
M60!?`$,`50!2`%(`10!.`%0`7P!5`%,`10!2`%P`4P!O`&8`= !W`&$`<@!E
M`%P`4P!Y`&(`80!S`&4`7 !)`&X`9@!O`$T`80!K`&4`<@!<`#$`,0`N`# `
M7 !4`&\`;P!L`&(`80!R`%P`,0`P`# `- `@`# `70`-``H`(@!)`'0`90!M
M`',`(@`]`"(`,0`R`#8`. `@`"T`,0`@`#$`-@`S`# `( `Q`#(`-@`R`" `
M,0`V`#$`. `@`#$`,@`V`#8`( `Q`#8`,0`T`" `,0`V`#$`-@`@`#$`-@`R
M`# `( `Q`#0`-0`V`" `,0`S`#(`,@`@`"T`,0`@`#$`-@`T`# `( `M`#$`
,( `R`#(`.0`P`"(`
`
end

Chris Pollach
19 years ago
Permalink
Thanks John, this works great on my IM 10.5!
...
Loading...