Sign in to follow this  
Followers 0
michele

Script on button in portal row doesn't show in DDR

6 posts in this topic

Hello,

 

I just discovered something scary.  I wanted to check if a specific script was used on a layout as I wasn't sure anymore.  So I created a DDR.

 

When checking the script in the DDR the 'Layouts that use this script' and 'Scripts that use this script' parts were empty.

Still I felt a bit unsure about deleting my script, so I searched for it manually on my layout and...I found it.

I used it in a portal on a button (=text).

 

Is this a known bug of the DDR or did I miss something?

Share this post


Link to post
Share on other sites

curious did you give the button object a name? - wonder if doing so would force it to be included in the DDR?

Share this post


Link to post
Share on other sites

Your description is unclear. Can you provide an example or provide a more detailed description? What is "button (=text)" ?

Share this post


Link to post
Share on other sites

Was this an HTML DDR or an XML DDR?

 

The HTML DDR is a translation of the XML one so it could have been missed in the translation.

Share this post


Link to post
Share on other sites
When checking the script in the DDR the 'Layouts that use this script' and 'Scripts that use this script' parts were empty.

...

Is this a known bug of the DDR or did I miss something?

 

Hard to tell without being able to reproduce your issue.  Which I cannot do:

post-72594-0-31594300-1405914810_thumb.p

Share this post


Link to post
Share on other sites

I need to apologize.  The DDR consisted of different parent folders and I appear to have a script with the same name in another parent folder.

@Comment it's your picture that made me go back to the DDR to take screen shots and realise there was something different going on. 

I should have tried to reproduce the error myself but I was 'stuck' staring at the script name.

 

Thank you all for your replies.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • By m_fitzgerald
      I've used the PHP simpleXML library as the basis of a simple tool for querying the XML DDR produced by FMPA . It's fairly functional and it has the benefit of being fast. Unlike other tools it doesn't require pre-processing of the XML prior to use.
      I've decided to publish it under the GNU AFFERO licence.
      If you're comfortable running a PHP script under localhost you can install it on your machine and make use of it. It's available from http://www.notyourhomework.net
    • By fm8443
      I have a Layout in Table Mode as (partially) shown in the attachment.
      (Note:  First row will have a Country Code in it - not shown in attachment)
      I want to "fill-down" the last country code in all rows (in the Country Field) UNTIL the country code changes.  Then I want to similarly do it for that one.  Until I reach the end of rows.
      My database will grow from 500 to 10,000 rows of text/number data.  I am uploading in batches from Excel.
      Is this possible?  I've tried various calculations and scripting without much success.  Thanks!
      I'm trying to get something like this:
      COUNTRY
      IT
      IT
      IT
      IT
      IT
      IT
      IT
      IT
      ES
      ES
      ES
      ES
      ES
      AU
      AU
      AU
      AU
      AU
      IN
      IN
      IN
      IN
      .......etc
       

    • By Peter Barfield
      Hi all not sure if this is the right area for this post  however,any Help appreciated
      in a design that i am working on for a small point of sale i have an issue (or challenge)
      the normal price is set as a Retail Price (all good)
      however I have been asked to now fulfill this next part.
      A Multi-buy concept.
      so e.g. a bottle of wine would normally sell for $12.99
      however there is a promotion where you can get 2 for $20 ea (or a breakdown of $10 ea)
      Now I have put a field in inventory table for multi buys i.e. fields 
      1. a checkbox for whether it is a multi buy item.
      2. a field which indicates the qty of item that is applicable as in the above example 2
      3. a field which indicates the multi buy price.
      4. A field which calculates the individual price as in the example above $10. (multi buy price / qty)
      and just to throw a little more into it there is the possibility of a situation whereby it could be 2 OR MORE.
      so I have created a field which is a further checkbox which indicates whether OR MORE is applicable or just the base qty.
      I guess the question is how does one tie this into the POS where an item would usually under normal circumstances be scanned and price picked up from the inventory table 
      I am just a little lost on this. I thought of a script that checks for multi buy applicable then pops the qty and price into variables which could somehow be used back at the POS screenoveriding the "usual price". Then the issue of OR MORE came into play and that is just for me draining my limited grey matter.
      or am i looking at this completely wrong and is there a possible better way ie use of a related table etc.
      Any Ideas would be appreciated.
      I hope this makes sense.
       
    • By kisertn
      I am new to FM, coming to it from a SQL Server/Oracle/Access background.  I have created a database with layouts and while there is certainly much more for me to learn it generally is working as I desire it.  However, I need to perform a task that I do not understand how it would be done in FM.  The example below is not my actual problem but does exemplify my core issue and hopefully is easier to understand than if I described my project.
      I have a table of Users, a table of Entitlements, and a join table of UserEntitlements.    I want to execute SQL that, for a given User, will read from the Entitlements table and insert rows into UserEntitlements for this user.  The query will read from Entitlements, insert a row for every entitlement for this user and, based on data in Entitlements take, will mark some of the entitlements as 'active'.
      Ideally, every time I created a new user this SQL would be called  (I'd have it as a trigger in a SQL or Oracle database, or I'd have a batch process that ran frequently looking for new users).   Basically, as a new user is created I want to create their entitlements profile and activate standard entitlements.
      I don't need/expect a full answer - was just hoping I could get pointed in the right direction: is 'scripts' the area I need to explore?  Is there a SQL capability to FM?  I have not found it if there is.
      Thank you for any assistance you can provide,
      -Neil
       
    • By surfninja13
      Hello All,
      This may have been addressed before and I am very new to scripting in filemaker.  Basically what I am trying to create is a script where I can find records from a carriage return separated list.  I have created a field and a button to execute the script.
      For Example: If I have 50 records for every US State, in the field I could put:
      California
      Nevada
      Oregon
      Thus populating just the 3 records.  
       
      Any help would be greatly appreciated.