Add your file association code to link the file extension to this program and run it. This version should work with Web Executable builds as well.
Announcement
Collapse
No announcement yet.
I Need Help With File Association
Collapse
X
-
Originally posted by charliechaps View PostDid you try the project plugin by Centauri , it gives you the file path of the calling file
So then you can use that to load your file into Grid / Input / Para etc - That is assuming that you have got your file assocation to open your program
Actions >> On Startup
Code:dosyaTablo = Project.GetFileCode(".rkl"); if dosyaTablo.Code == 1 then dosya = dosyaTablo.File; Page.Jump("KListesi"); elseif dosyaTablo.Code == -1 then Dialog.Message("Hata", "Ne yazık ki bu dosya türünü tanımıyoruz."); end
I thank you a million times for your help!
Comment
-
-
Originally posted by mburaksaglik View Post
This is exactly what I was looking for!
Actions >> On Startup
Code:dosyaTablo = Project.GetFileCode(".rkl"); if dosyaTablo.Code == 1 then dosya = dosyaTablo.File; Page.Jump("KListesi"); elseif dosyaTablo.Code == -1 then Dialog.Message("Hata", "Ne yazık ki bu dosya türünü tanımıyoruz."); end
I thank you a million times for your help!
Project plugin is no longer available because the AAA plugin license period has expired.
Please help me to fix this issue 🙏😢
Or if you know a method where I can do the same function without using a plugin, please share it with me.1 Photo
Comment
-
-
I managed to solve the problem by getting faster results without using an external plugin.
Solution :
Global Functions
Code:function DosyaUzantisiAl(url) return url:match("^.+(%..+)$") end function dosyakontrol() local degiskenturu = type(_CommandLineArgs[1]); if (degiskenturu == "string") then dosyauzantisi = DosyaUzantisiAl(dosyaTablo.File); dosyaTablo.Code = 1; end end
Code:dosyakontrol(); if (dosyaTablo.Code == 1) then if (dosyauzantisi == ".rkl") then dosya = dosyaTablo.File; Page.Jump("KListesi"); else Dialog.Message("Hata", "Ne yazık ki bu dosya türünü tanımıyoruz."); end end
Comment
-
Comment