Hi, i've been trying to refresh my table view in Xcode 7 and for some reason it is just not working? - xcode7

strong textSo what i have is a tableView on 'ViewController' and when the user moves to 'TimeTableCreater' they can input a value which will be able to change the number of rows in the table. however it is not refreshing the table. Also this all happens on the a button press. here is my code ViewController().tableView.reloadData()

Assuming TimeTableCreater is a different ViewController and the code for adding values to your table is correct (please add this next time), move the tableView.reloadData() into the ViewDidAppear in the "ViewController"

Related

I need to Click on table cell value of a web page in automation anywhere tool

I am new to Automation Anywhere. I am trying to click on specific cell value of a web page table.
I have cloned the table object and applied action "Click on cell by index" provided by automation anywhere tool on specific row and column.
Secondly, I tried Mouse Click functionality but, on search base position of cell where to click will not always be the same that's why cant implement mouse click.
Screenshot is attached what I have done so far, Nothing happens by click on the cell. I want to click on the value present in the cell.
I want to click on highlighted portion mentioned in below screenshot:
Any kind of help will be appreciated.
Could you attach a screenshot of the full search criteria? I'm sure it has to be something with the path and DomXpath.
Make sure that below points have been checked:
The object properties should be unique and non changing. This is required to identify the object correctly during execution
Check whether object cloning is working properly with current screen resolution. If not, you need to change the screen resolution

Highlight fields in form that have been modified

I was wondering if someone can give me a general guideline or example for the following. I have created a form with several input box fields. When a user inputs something, the field highlights it orange. When a user goes to another field, the highlight goes away and the new box gets highlighted. When the user hits "save" button, the form gets saved. When the user hits "modify" button, it allows them to change the values in the fields. However, this time I would like to have the highlighted box stay highlighted on all the fields that have been changed (and obviously the fields that are not touched remain not highlighted). Is there anyway someone can send me a tutorial or create a quick example to demonstrate this? I am using Angular 1.5 and used Bootstrap to create a simple form.
Thank you
You Can use $touched property to know whether user clicked on that particular form field.
Ex:
custFrom.inputName.$touched
To know actual value modification use $dirty in the same way
Ex:
custFrom.inputName.$dirty
Please find working plunker

DOM - Select Value from a Field that has a Search Component and a Drop Down

I have been working on this forever. I have attached a first picture of the steps I am trying to do in VBA. This particular field that I have having trouble populating for a client of mine appears to be a drop down but when you click it, it has a search field. I know the option value I want the field to be set to but using doc.getElementbyID("id_referrer").selectedIndex = fieldValue is not working. See the first picture for the steps of what I'm trying to do, then the second picture for the behind the scenes look at the classes and then all the different commands that I've tried to populate this field. The save button works, but nothing ever is populated for the Referrer or it bombs.

Get value of textbox in a table (GAS)

I know that this is something discussed sooo many times, but I can't get the value of a textbox that is placed in a table. I know how to get the value of a textbox (e.parameter.textBoxName), usually it's working without any problems.
The only difference now is that I have a gadget containing 5 tabs, each with some intro text and a table. Each table contains approximately 30 rows, each with two textboxes and a button to submit the value of two textboxes in the specific row to a spreadsheet. Everything is working fine, all the names (and IDs as well) are unique, but the problem is that when I submit textboxes, I get "undefined" (in my spreadsheet).
I guess the problem lays somewhere in the complexity of the script, so this:
function buttonClick(e) {
var app = UiApp.getActiveApplication();
var theValue = e.parameter.textBoxName;
...something...
}
..is simply not enough to define which textbox it is. However I'm getting the button ID without any problem with
var buttId = new String(e.parameter.source);
I'm trying to get my head around this for a couple of days without any results. I'm not that good with GAS and I'm completely out when it comes to objective programming. Do you have some ideas how to get this value? I can get the ID of the table if that helps, but what to use then?
Thank you very much in advance!
EDIT:
I tried .addCallbackElement(textbox) to the textbox - I'm getting an error. I tried .addCallbackElement(textbox) to the submit button together with .addCallbackElement(button) and I'm still getting "undefined".
the callbackElement must be added to the handler, not to the widget nor to the button.
The easiest (and safest) way to get it done correctly is to choose the highest level parent as callbackElement.
I your case it would probably be the tab panel or eventually another panel that contains your 5 tabs if you used one.
Note also that there might be really a lot of widgets in the same UI without causing any issue... I have an app with about 200 textBoxes that works flawlessly and I'm not aware of any limit nor if a limit even exists...

Updating cell values in JTable in real time while typing

I am using a JTable and I let the user fill it in with integers in one of the columns (the interface with the table pops out in a seperate window). When I type a value and press "ENTER" and then close the window everything saves fine. However, if I just type something in one of the cells and close the window, when I reopen it the new cell values are not there.
I would like the values to be updated in real time as I type every single character. Is it possible? I've tried applying a TableCellEditor, but I couldn't get it to work.
I've also tried add a KeyListener to the JTable, but the KeyPressed wouldn't invoke at all.
(making my comment an answer, so you can close it :-)
Assuming the input field is the editor inside the table itself, set the client property:
table.putClientProperty("terminateEditOnFocusLost", Boolean.True)