Re: Printing Form With Table
Do you have your FormOutput() set to “Top”?
Van: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io]
Namens steve.greenfield@...
I have a number of printed document outputs which are forms with a fixed size table - like an Invoice developed in uniPaaS 1.8d. The main output form is set as a Detail area with things like address, dates, invoice number etc. at the top and then the table containing the lines. Everything was fine, there is a Group defined and the output is in the suffix of the Group - this all worked until we needed to add some extra information to some of the lines. The extra information is a 1-to-many relationship to the existing lines and stored in a separate table, it needs to be printed as extra form lines beneath the main line. Not every main line has these sub-records. What I have done is define a sub-task to scan the 1-to-many records and output them in the sub-task using the form and I/O from the parent task (most fields in the form table are virtuals but not all). The result is my former single page output now comes out as multiple pages (everything correct headers etc.) - printing the extra information line is causing a "new page" after each extra line.
Is this new behavior what people would expect or is there something I have missed?
Best Regards
Steve Greenfield DataFormation Limited UK
|
||||||||
|
||||||||
Re: Android play sound - Solution
Todd Baremore
So it turns out that "R" or "r" are reserved variables. Changing "r" to "rngtone" solved the problem. I suppose p, q or s would have worked as well.
toggle quoted messageShow quoted text
Using "target=android-23" in \PublishedApplications\[My App]\Android\source\settings.properties , this is the Sound.java that works for me: ------------------------------------------------------------------------------------------------------------------------------- package com.magicsoftware.magicdev; import android.net.Uri; import android.media.Ringtone; import android.media.RingtoneManager; import com.magicsoftware.core.CoreApplication; public class Sound { public static void playSound() { try { Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); Ringtone rngtone = RingtoneManager.getRingtone(CoreApplication.getInstance().getApplicationContext(),notification); rngtone.play(); } catch (Exception e) {} } } -------------------------------------------------------------------------------------------------------------------------------- Todd
On 1/19/2017 11:11 PM, Todd Baremore wrote:
XPA 3.2
|
||||||||
|
||||||||
Re: Do we have PropertyGrid for .NET objects?
harry@...
Hi Gadi, Very interesting. Great video! I didn't know you could do that. Saves a lot of time trying to set something in the toolkit and then check/see what it actually does in runtime. Thanks! Best regards, Harry Kleinsmit.
|
||||||||
|
||||||||
Re: Android play sound
Todd Baremore
Thanks Joseph. I'm not able to get your code to compile. The problems appears that be that "R" is not defined in mp = MediaPlayer.create(CoreApplication.getInstance().currentActivity, R.raw.tethys); Todd
On 1/22/2017 5:53 AM, Joseph
Knickerbocker wrote:
|
||||||||
|
||||||||
Re: Do we have PropertyGrid for .NET objects?
You may find relevant information in the new post on my blog that addresses that very question, along with a short video. http://gadibirman.blogspot.co.il/2017/01/magnet-propertygrid.html It shows how you can use a standard PropertGrid control to show and set properties of .Net controls and objects at runtime. Hope this helps. Gadi Birman
|
||||||||
|
||||||||
Re: Android play sound
Joseph Knickerbocker
Alright, no problem. Here is the code with 2 different sounds (that I supplied, they are just stock nexus sounds, but you can supply anything you want) First, put your sound files in "RIAModules -> Android -> Source -> res -> raw" The call to the code "ClientNativeCodeExecute('Sound.playSound','A40','tethys',100)" tethys is the name of the sound file I want to use, and 100 is the length of the vibration in ms (I believe, its been a while since I built this). package com.magicsoftware.magicdev; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.media.MediaPlayer.OnCompletionListener; import android.media.AudioManager; import android.os.Vibrator; import com.magicsoftware.core.CoreApplication; public class Sound { public static void playSound(String soundName, int vibLength) { String sound = soundName; Vibrator v = (Vibrator) CoreApplication.getInstance().currentActivity.getSystemService(CoreApplication.getInstance().currentActivity.VIBRATOR_SERVICE); v.vibrate(vibLength); MediaPlayer mp = null; if (sound.equals("tethys")) { mp = MediaPlayer.create(CoreApplication.getInstance().currentActivity, R.raw.tethys); } if (sound.equals("titan")) { mp = MediaPlayer.create(CoreApplication.getInstance().currentActivity, R.raw.titan); } mp.setOnCompletionListener(new OnCompletionListener() { @Override public void onCompletion(MediaPlayer mp) { mp.release(); } }); mp.start(); } }
|
||||||||
|
||||||||
Re: Do we have PropertyGrid for .NET objects?
harry@...
Property sheets are only for controls you put on the form. For .NET you can see these at the normal properties in Magic and expand the 'Object properties' at the .NET section. If you want to see the options while using DNSet then simply press a dot and you will see all available options. Just start typing after the dot and you'll see all available options with containing that string (=intellisense). Documentation of these options can usually be found on the internet (MS websites if they are standard .NET routines). Best regards, Harry Kleinsmit.
|
||||||||
|
||||||||
Re: uniPaaS 1.9d - All Control files suddenly left to 1 KB
Heidi Schuppenhauer
The edp file is a very simple and short xml file. You can actually use some other edp file in it's place ... it looks for the source in the "source" directory one level down. Now the ecf file is a little more complicated, and you can't really look at that one.
On Thu, Jan 19, 2017 at 7:04 AM, Lado Wali <ladowali@...> wrote:
|
||||||||
|
||||||||
Do we have PropertyGrid for .NET objects?
mimi_4s2000@...
Is there any XPA demo or something for geeting propertygrid? It would be much much easier to set options for .net cotrols instead of DNSet bunch of stuff.
|
||||||||
|
||||||||
Re: XPA-3 bug: Verify op. in Main program ignores the display-mode property
Avgerinos
I can even guess why it's working only within Studio ;-)
XPA seems to have issues in a basic sector: Testing something in Studio's Runtime does not assure you that
your Client will see the same in his plain Runtime Avgerinos
On 21/1/2017 12:32 πμ, Avgerinos wrote:
|
||||||||
|
||||||||
Re: FlexLM serving both uniPaas & XPA3 studio licenses
Avgerinos
Yes, you 're right, normally you don't .
toggle quoted messageShow quoted text
For special reasons, FlexLM is a desirable setting in my case ;-) Avgerinos
On 20/1/2017 5:58 μμ, Chris de Bijl wrote:
No. But normally you don't need flexlm license server.
|
||||||||
|
||||||||
Re: XPA-3 bug: Verify op. in Main program ignores the display-mode property
Avgerinos
Hi Govert
Did you try on the Runtime on it's own?
It is working only when you open the Runtime within Studio. It is not working when you run the Runtime normally, on its own.
Regards Avgerinos
On 20/1/2017 1:40 μμ, Govert Schipper
wrote:
|
||||||||
|
||||||||
Printing Form With Table
Steve Greenfield
I have a number of printed document outputs which are forms with a fixed size table - like an Invoice developed in uniPaaS 1.8d. The main output form is set as a Detail area with things like address, dates, invoice number etc. at the top and then the table containing the lines. Everything was fine, there is a Group defined and the output is in the suffix of the Group - this all worked until we needed to add some extra information to some of the lines. The extra information is a 1-to-many relationship to the existing lines and stored in a separate table, it needs to be printed as extra form lines beneath the main line. Not every main line has these sub-records. What I have done is define a sub-task to scan the 1-to-many records and output them in the sub-task using the form and I/O from the parent task (most fields in the form table are virtuals but not all). The result is my former single page output now comes out as multiple pages (everything correct headers etc.) - printing the extra information line is causing a "new page" after each extra line. Is this new behavior what people would expect or is there something I have missed? Best Regards
Steve Greenfield DataFormation Limited UK
|
||||||||
|
||||||||
Re: FlexLM serving both uniPaas & XPA3 studio licenses
Chris de Bijl
No. But normally you don't need flexlm license server.
Just point to the right license file in your magic.ini -----Oorspronkelijk bericht----- From: Avgerinos Sent: Friday, January 20, 2017 7:52 AM To: main@magicu-l.groups.io Subject: Re: [magicu-l] FlexLM serving both uniPaas & XPA3 studio licenses Hi Chris Is FlexLM capable of loading 2 separate files at the same time? Avgerinos On 19/1/2017 8:38 μμ, Chris de Bijl wrote: Avgerinos
|
||||||||
|
||||||||
Re: Android play sound
Todd Baremore
Joseph, Tried using currentActivity, but continue to get the same error.
I would like to take you up on your offer to try your code. Thanks Todd
On 1/20/2017 7:37 AM, Joseph
Knickerbocker wrote:
|
||||||||
|
||||||||
Re: Android play sound
Joseph Knickerbocker
I found some issues using the sample code as well. Try replacing "CoreApplication.getInstance().getApplicationContext()" with "CoreApplication.getInstance().currentActivity" If that doesnt work, I can offer you my code I used. You can specify a vibration length and the specific sound you want to play (if you want to supply your own sound, can be adapted to use the default notification too)
|
||||||||
|
||||||||
Re: Screen recording software
Steven Burrows
OBS is good, free, allows you to capture a specific window etc. https://obsproject.com/
From: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io]
On Behalf Of Brenda Bullorini
Sent: 20 January 2017 11:10 To: main@magicu-l.groups.io Subject: Re: [magicu-l] Screen recording software
I use BB FlashBack
El 20/1/2017 5:46, "Avgerinos" <mento@...> escribió:
|
||||||||
|
||||||||
Re: XPA-3 bug: Verify op. in Main program ignores the display-mode property
Govert Schipper
No problems here (3.1). Works as expected. Van: main@magicu-l.groups.io <main@magicu-l.groups.io> namens Avgerinos <mento@...>
Verzonden: vrijdag 20 januari 2017 08:08 Aan: main@magicu-l.groups.io Onderwerp: [magicu-l] XPA-3 bug: Verify op. in Main program ignores the display-mode property Hi magicians
Documenting an issue noticed in XPA3 (tested up to 3.2) A Verify operation in MAIN program's TaskPrefix always ignores the property "Display=Status" Instead it is always shown as a popup-alert That was not the behavior in uniPaaS 1.9 Anyone else noticed it? Regards Avgerinos
|
||||||||
|
||||||||
Re: Screen recording software
Brenda Bullorini
I use BB FlashBack
El 20/1/2017 5:46, "Avgerinos" <mento@...> escribió: Hi magicians
|
||||||||
|
||||||||
Re: Screen recording software
XPA 2.5 ;)
-----Oorspronkelijk bericht-----
Van: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io] Namens Avgerinos Verzonden: vrijdag 20 januari 2017 9:46 Aan: main@magicu-l.groups.io Onderwerp: [magicu-l] Screen recording software Hi magicians I 'm going to demonstrate a Magic desktop-app on Monday and I plan to capture it, so that I can reuse later. What is your favorite utility for this? Regards Avgerinos
|
||||||||
|