Jump to content

david600320@hotmail.com

uniGUI Subscriber
  • Posts

    65
  • Joined

  • Last visited

  • Days Won

    5

david600320@hotmail.com last won the day on June 13 2018

david600320@hotmail.com had the most liked content!

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

5096 profile views

david600320@hotmail.com's Achievements

Member

Member (2/4)

17

Reputation

  1. @AbakSoft , Thanks for your kind explanation !! // calling .... pdfUrl := 'http://127.0.0.1:8077/files/Repo_200218085047701.pdf' RunApp( ' chrome ' , pdfURL); // function RunApp( Ma_cmdLine, Dossier : String ) ChromeBrowserPath := 'cmd.exe /C ' + Ma_cmdLine + ' ' + Dossier ; res := CreateProcessAsUser(hToken, nil, PChar(ChromeBrowserPath), nil, nil, False, CREATE_NEW_CONSOLE, nil, nil, // PChar(WorkDir), StartupInfo, ProcessInfo); As I mentioned above, I wanted to show a pdf file on the new google browser but still Failed. ( In Command line , ' chrome http://127.0.0.1:8077/files/Repo_....pdf is OK - successed !! ) As Result - just 200 ok - , Not showing !! What am i wrong ?
  2. @Oliver , Thank you for your help . By the way , I am not clear that solved was a good way or not. ( The Server is for only as Reporting-server independent of any Front-end ) Could you give me a better Idea ?
  3. in UniGUIServerModuleHTTPCommand. [Solved] pdfUrl := 'http://127.0.0.1:8077/files/Repo_200218085047701.pdf' ShellExecute(0, 'OPEN', PChar(pdfUrl), '', '', SW_SHOWNORMAL); Q. Is this only way to solve ?
  4. @Oliver thanks, btw, Is there a way for this to solve this ? How to open a new Browser in UniGUIServerModuleHTTPCommand ?
  5. Is it not Possible UniSession.BrowserWindow in UniGUIServerModuleHTTPCommand ? - Version 1.90.0.1514 , XE2 In the ServerModule , I made a pdf file from FastReport ( makePdf()) and saved on the /files folder successed . What i want to show the pdf file on the new browser . but failed . What am i wrong ? procedure TUniServerModule.UniGUIServerModuleHTTPCommand( ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean); var r : string ; params : TStrings ; cHost : String ; cHostUrlPortPdfRepoPathFilename : String ; begin ARequestInfo.ContentType := 'application/json;charset=utf-8;' ; //success AResponseInfo.CustomHeaders.AddValue('Access-Control-Allow-Origin', '*'); //CORS AResponseInfo.CustomHeaders.AddValue('Access-Control-Allow-Credentials', 'true'); //CORS params := ARequestInfo.Params ; // 109-2. FastReport -> pdfFile -> show pdfFile on the New BrowserWindow if UpperCase(ARequestInfo.URI) = UpperCase( '/report' ) then begin Handled := true; r := ''; r := MakePDF() ; // (success getting pdf filename as files/Repo_200217184615048.pdf ) cHostUrlPortPdfRepoPathFilename := ARequestInfo.Host + '/' + r ; cHostUrlPortPdfRepoPathFilename := StringReplace( cHostUrlPortPdfRepoPathFilename , '\' , '/' , [rfReplaceAll, rfIgnoreCase] ) ; // failed below all . Read of address 00000017 ) // (Errors both ) ( Access violation at address 007212DA in module 'fastReport_test.exe' ) UniSession.UrlRedirect( cHostUrlPortPdfRepoPathFilename ); UniSession.BrowserWindow( cHostUrlPortPdfRepoPathFilename , 0, 0, '_blank'); //AResponseInfo.ContentText := cHostUrlPortPdfRepoPathFilename ; end; end; thanks ,
  6. hi david,

    Responsive Web App with Unigui webServer + dbfoxScript

    how download ?

    thanks.

  7. @wilton_rad : Thank you. Your advice is really important in implementing the same kind of idea. In fact, it takes a lot of time and effort to create the same kind of site you mentioned. If we need to create a business-related platform at a low cost and in a short period of time, then using the same kind of site as yours is the right choice. I found the simplicity and beauty of using UNIGUI, a nice framework, and realized the need for more efficient development in the process of developing with UNIGUI. Currently, I am happy with how I can make web application easily and quickly through UNIGUI. It is time for me to change the idea like Columbus' egg now.
  8. @Abaksoft Many thanks for interesting of my sample project !! and it gives me many helps . Dinner was ready. 1. 100 tables in a given Database . 2. for mapping with Titles and labe caption , I should input something ( Field Name VS colums caption or Titles of Grid - They can be different each countries ) Today , I am Successed to create in Delphi !! 1. 100 Input forms with labels , dbEdits , dbGrid : possible CRUD ( add , edit . delete , save button events as well ) along with given my development patterns . 2. 100 Filtering form : creating many IF CLAUSES as much as columns in each Table . 3. 100 Reports : Seed reports - Developer can make more reports with it . ( I am using Fast-Report ) 4. 100 Title Captions of each grids : It's also Time-Thief for developer to change in mother-language's title . Creating Seconds : 22 ~ 30 seconds . ( 100 tables in a DATABASE ) * In real world , it should be controlled whether show or not against too many columns . need no show all !! ( by giving options ) * Developer should work for logical things and minimal - remained things only . Next , My Project should be successed in Unigui !! - I need your help !! Best regards ,
  9. Thanks for your advises ! @Abaksoft First of all thank you for your kind and detailed explanation. It's good way , I have reviewed the techniques and concepts you mentioned before. By the way , I am wondering how to develop more by Robot until almost 70~80% , Some parts(20~30%) which programmer can do only are remained for critical parts to developer . - Developers should have chanse for modifying or adding for critical parts of sources . - Paradoxically, Robot should not create a source in real time. All of the source code is created using Delphi outside of Unigui And Develper can reuse sources anytime he wants . ( It is enough for you to give a time to Copy & Paste !! from what has done by Robot in minutes ) My current plan is as follows. 1. Give a DATABASE to Robot. - Robot extracts each column information from table information. 2. Robot should be able to analyze the columns and create input screens that - include unilabels, uniDBEdit, uniDBGrid, uniButtons, and Event procedures for CRUD programming . 3. Robot should analyze the colums in the table and automatically create the necessary conditional clauses in Filtering. - should also be able to create a form for Filtering. This can also shorten development time. - should make columns for filtering as much as you want ( IF ....THEN ..... ) 4. The developer should create a complete Unigui source - so that modifications and additions to very serious areas are always possible. 5. Give some patterns and information of components what you want to develop . - For each developer, it is necessary to assume that the components and framework of each person are different. The developer informs Robot of his development pattern. Robot generates the source according to the development pattern. 6. Robot should be smarter then before . what do you think of these ?
  10. Is it possible to make unigui database programming like a robot , automatically ? Tasks Here , 100 tables in a Database has given . Build a web application in Unigui framework !! step 1 . automatically creation forms for CRUD and searching , reporting as well . 100 input forms - CRUD with buttons and click events , labels , dbUniEdits as much as columns of each data Table . filtering forms or source codes ( ex. IF CLAUSE ) Grids along with tasks in a minute !! step 2 . Modify ( manually ) - these are programmer's . Finally , arrange some positions each labels , editor on input forms copy & paste for Master-detail . less coding for connection to report . critical parts - which programmer can do only !! step 3 . Hide what you have done before your Boss !! Take a rest . enjoy your life with saved time make money more as much as saved hours . Goal - Build web applications in Unigui quickly . what do you think ? - There is no silly question !! -
  11. @delphidude Hi , I remember and appreciate you gave me lots of helps to understand kind of this part . I will look again at your advice. Many thanks !!
  12. @Mohammed Nasman I totally agree. I fall in love with Unigui !! I also use unigui for development of most of my web applications. web applications. Sometimes it is inevitable for customers to use the parts described above. I would like to take a look at this sample project as an attempt to reduce the inconvenience when using HTML5 out of Unigui. Best regards,
×
×
  • Create New...