9 Replies Latest reply on Jan 17, 2012 3:35 PM by TSGal

    Script problems

    enversucek_1

      Title

      Script problems

      Post

       Hello I have problem with write script in screenshot you can see green zone and there I have 4 columns in 1 row and I must write script to open me a new row with another 4 columns and later another and another and ...........

      Also in yellow zone there is number 1 and when will be open another row it must be another number 2 later 3 and ..... but layout id can not grow up (2/35)

      Can somebody help me wıth this Thank You

      example_layout.jpg

        • 1. Re: Script problems
          TSGal

          enver sucek:

          Thank you for your post.

          What are the scripts steps you are currently using to add a new row to the related table?

          What is the script attached to the button?  I suspect you are creating a new Layout; not a new record.  Please post the complete script.

          TSGal
          FileMaker, Inc.

          • 2. Re: Script problems
            enversucek_1

             I cant copy script in .txt But i can send to you my all file. You can see my tables. Maybe you can find any mistake. How i can send to you this file?

            • 3. Re: Script problems
              TSGal

              enver sucek:

              No need to send the entire file.  Just enter the script steps, as others may also reply with suggestions.  If you want to handle one at a time, that's fine, too.  Just enter the script steps you are using to add a new row to the related table.

              TSGal
              FileMaker, Inc.

              • 4. Re: Script problems
                enversucek_1

                 I cant copy script to word or .txt I have filemaker turkish. How i can copy script to .txt?

                • 5. Re: Script problems
                  enversucek_1

                   I save script XPS format. I add and sending my script.

                  • 6. Re: Script problems
                    philmodjunk

                    To post a script to the forum:

                    1. You can upload a screen shot of your script by using the Upload an Image controls located just below Post A Answer.
                    2. You can print a script to a PDF, open the PDF and then select and copy the script as text from the opened PDF to your clipboard for pasting here.
                    3. If You have FileMaker advanced, you can generate a database design report and copy the script as text from there.
                    4. If you paste a text form of the script, you can use the Script Pretty box in the Known Bugs List database to paste a version that is single spaced and indented for a more professional and easier to read format. (Use the HTML option on the database tab panel and paste the text into the forum's HTML editor.)
                    • 7. Re: Script problems
                      enversucek_1

                      I send screen shot

                      • 8. Re: Script problems
                        enversucek_1

                         

                         Allow User Abort [Off]

                         

                        Set Variable [$Kayıt No: Value: Kontrol::Kayıt NO]

                         

                        Go to Layout ["Hasta Kabul" (Hasta kabul)]

                        Go to Object [Object Name:Kontrol::Kayıt No]

                        Go to Portal Row [Select First]

                        Set Variable[$Kayıt No:Value:Kontrol::Kayıt No]

                        Go to Portal Row [Select ;Next;Exit after last]

                        New Record/Requests

                        Set Field[Kontrol::Kayıt No;Kontrol::Kayıt No]

                        Commit Records/Requests [Skip data entry validation:No dialog]

                         

                        Go to Layout[orginal layout]

                        Set Field [Muayene::Şikayeti:$$Şikayeti]

                        Set Field [Muayene::Muayene Bulguları;$$Muayene Bulguları]

                        Set Field [Muayene::Hikayesi;$$Hikayesi]

                        Set Field [Muayene:Plan;$$Plan]

                        Set Field [Muayene:TANI 1;$$TANI 1]

                        Set Field [Muayene:TANI 2;$$TANI 2]

                        Set Field [Muayene:Boy;$$Boy]

                        Set Field [Muayene:Kilo;$$Kilo]

                        Set Field [Muayene:Tansiyon Büyük;$$Tansiyon Büyük]

                        Set Field [Muayene:Tansiyon Küçük;$$Tansiyon Büyük]

                        Set Field [Muayene:Ateş;$$Ateş]

                        Set Field [Muayene:Nabıx;$$Nabız]

                        Set Field [Muayene:Baş Çevresi;$$Baş Çevresi]

                        Set Field [Muayene:Divabet Hastası;$$Divabet Hastası]

                        Set Field [Muayene:Omuz Muayene Testleri;$$Omuz Muayene Testleri]

                        Set Field [Muayene:Kalça Muayene Testleri;$$Kalça Muayene Testleri]

                        Set Field [Muayene:Diz Muayene Testleri;$$Diz Muayene Testleri]

                         

                        GO to Field[Kontrol::Muayene Tipi]

                        • 9. Re: Script problems
                          TSGal

                          enver sucek:

                          Thanks for the script steps.

                          I see that you are adding a new record to the "Hasta Kabul" Layout, and then you are setting the "Kontrol::Kayt No field to itself (Kontro::Kayt No).  What is the reason behind this?  If this information isn't auto-entered, what did you want to happen?  Or, were you expecting to enter the contents from the variable $Kaynt No?

                          Then, you continue on and update information in another table and layout.  In essence, each time you run this script, you will be adding a new record to this table.

                          Anything else you can provide may be helpful in determining what you are trying to accomplish.

                          TSGal
                          FileMaker, Inc.